summaryrefslogtreecommitdiff
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* update doc (remove ref to activestate recipe)bind-socketGiampaolo Rodola2019-03-282-2/+1
|
* Merge branch 'master' into bind-socketGiampaolo Rodola2019-03-28100-1081/+3572
|\
| * bpo-29515: add missing socket.IPPROTO_* constants on Windows (GH-12183)Giampaolo Rodola2019-03-281-0/+19
| |
| * bpo-36452: dictiter: track maximum iteration count (GH-12596)Thomas Perl2019-03-281-0/+9
| |
| * bpo-31292: Fixed distutils check --restructuredtext for include directives ↵Philipp A2019-03-273-2/+18
| | | | | | | | | | | | (GH-10605)
| * Add missing docstrings for TarInfo objects (#12555)Raymond Hettinger2019-03-272-9/+48
| |
| * bpo-36443: Disable C locale coercion and UTF-8 Mode by default (GH-12589)Victor Stinner2019-03-271-4/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bpo-36443, bpo-36202: Since Python 3.7.0, calling Py_DecodeLocale() before Py_Initialize() produces mojibake if the LC_CTYPE locale is coerced and/or if the UTF-8 Mode is enabled by the user configuration. This change fix the issue by disabling LC_CTYPE coercion and UTF-8 Mode by default. They must now be enabled explicitly (opt-in) using the new _Py_PreInitialize() API with _PyPreConfig. When embedding Python, set coerce_c_locale and utf8_mode attributes of _PyPreConfig to -1 to enable automatically these parameters depending on the LC_CTYPE locale, environment variables and command line arguments Alternative: Setting Py_UTF8Mode to 1 always explicitly enables the UTF-8 Mode. Changes: * _PyPreConfig_INIT now sets coerce_c_locale and utf8_mode to 0 by default. * _Py_InitializeFromArgs() and _Py_InitializeFromWideArgs() can now be called with config=NULL.
| * bpo-36441: Fixes creating a venv when debug binaries are installed. (#12566)Steve Dower2019-03-271-0/+3
| |
| * bpo-31904: Fix test_utf8_mode on VxWorks (GH-12428)hliu02019-03-271-2/+2
| | | | | | Python always use UTF-8 on VxWorks.
| * bpo-36431: Use PEP 448 dict unpacking for merging two dicts. (GH-12553)Serhiy Storchaka2019-03-276-29/+14
| |
| * bpo-36407: Fix writing indentations of CDATA section (xml.dom.minidom). ↵Vladimir Surjaninov2019-03-272-1/+18
| | | | | | | | (GH-12514)
| * bpo-36444: Add _PyCoreConfig._init_main (GH-12572)Victor Stinner2019-03-271-0/+1
| | | | | | | | | | | | | | | | * Add _PyCoreConfig._init_main: if equals to zero, _Py_InitializeFromConfig() doesn't call _Py_InitializeMainInterpreter(). * Add interp_p parameter to _Py_InitializeFromConfig(). * pymain_init() now calls _Py_InitializeFromConfig(). * Make _Py_InitializeCore() private.
| * bpo-36444: Remove _PyMainInterpreterConfig (GH-12571)Victor Stinner2019-03-271-29/+0
| |
| * bpo-36429: Fix starting IDLE with pyshell (#12548)Terry Jan Reedy2019-03-262-5/+12
| | | | | | | | | | Add idlelib.pyshell alias at top; remove pyshell alias at bottom. Remove obsolete __name__=='__main__' command.
| * bpo-36301: Test Python init with isolated (GH-12569)Victor Stinner2019-03-271-0/+20
| | | | | | Add test_preinit_isolated1() and test_preinit_isolated2() test_embed.
| * bpo-36301: Cleanup preconfig.c and coreconfig.c (GH-12563)Victor Stinner2019-03-261-8/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * _PyCoreConfig_Write() now updates _PyRuntime.preconfig * Remove _PyPreCmdline_Copy() * _PyPreCmdline_Read() now accepts _PyPreConfig and _PyCoreConfig optional configurations. * Rename _PyPreConfig_ReadFromArgv() to _PyPreConfig_Read(). Simplify the code. * Calling _PyCoreConfig_Read() no longer adds the warning options twice: don't add a warning option if it's already in the list. * Rename _PyCoreConfig_ReadFromArgv() to _PyCoreConfig_Read(). * Rename config_from_cmdline() to _PyCoreConfig_ReadFromArgv(). * Add more assertions on _PyCoreConfig in _PyCoreConfig_Read(). * Move some functions. * Make some config functions private.
| * bpo-36433: fix confusing error messages in classmethoddescr_call (GH-12556)Inada Naoki2019-03-261-3/+18
| | | | | | https://bugs.python.org/issue36433
| * Merge tag 'v3.8.0a3'Łukasz Langa2019-03-261-10/+1
| |\ | | | | | | | | | Python 3.8.0a3
| | * v3.8.0a3v3.8.0a3Łukasz Langa2019-03-251-10/+1
| | |
| * | bpo-36301: Remove _PyCoreConfig.preconfig (GH-12546)Victor Stinner2019-03-261-17/+28
| | | | | | | | | | | | | | | | | | * Replace _PyCoreConfig.preconfig with 3 new fields in _PyCoreConfig: isolated, use_environment, dev_mode. * Add _PyPreCmdline.dev_mode. * Add _Py_PreInitializeFromPreConfigInPlace().
| * | bpo-36301: Add _Py_GetConfigsAsDict() function (GH-12540)Victor Stinner2019-03-252-46/+79
| | | | | | | | | | | | | | | | | | | | | * Add _Py_GetConfigsAsDict() function to get all configurations as a dict. * dump_config() of _testembed.c now dumps preconfig as a separated key: call _Py_GetConfigsAsDict(). * Make _PyMainInterpreterConfig_AsDict() private.
| * | bpo-36143: Regenerate Lib/keyword.py from the Grammar and Tokens file using ↵Pablo Galindo2019-03-252-196/+52
| | | | | | | | | | | | | | | | | | pgen (GH-12456) Now that the parser generator is written in Python (Parser/pgen) we can make use of it to regenerate the Lib/keyword file that contains the language keywords instead of parsing the autogenerated grammar files. This also allows checking in the CI that the autogenerated files are up to date.
| * | bpo-36326: Let inspect.getdoc() find docstrings for __slots__ (GH-12498)Raymond Hettinger2019-03-254-3/+16
| |/
| * bpo-36218: Fix handling of heterogeneous values in list.sort (GH-12209)Rémi Lapeyre2019-03-251-0/+5
| |
| * Fix line ending (GH-12531)Raymond Hettinger2019-03-251-1/+1
| |
| * bpo-36401: Have help() show readonly properties separately (GH-12517)Raymond Hettinger2019-03-242-1/+7
| |
| * bpo-30348: IDLE: Add test_autocomplete unittest (GH-2209)Louie Lu2019-03-242-27/+130
| |
| * bpo-36405: IDLE - Restore __main__ and add tests (#12518)Terry Jan Reedy2019-03-244-9/+17
| | | | | | | | Fix error in commit 2b75155 noticed by Serhiy Storchaka.
| * bpo-23205: IDLE: Add tests and refactor grep's findfiles (GH-12203)Cheryl Sabella2019-03-232-45/+107
| | | | | | | | | | | | | | | | | | | | | | | | | | * Add tests for grep findfiles. * Move findfiles to module function. * Change findfiles to use os.walk. Based on a patch by Al Sweigart.
| * bpo-36405: Use dict unpacking in idlelib (#12507)Terry Jan Reedy2019-03-233-12/+8
| | | | | | Remove now unneeded imports.
| * bpo-36396: Remove fgBg param of idlelib.config.GetHighlight() (GH-12491)Terry Jan Reedy2019-03-226-58/+39
| | | | | | | | This param was only used once and changed the return type.
| * bpo-36298: Raise ModuleNotFoundError in pyclbr when a module can't be found ↵Brett Cannon2019-03-222-4/+27
| | | | | | | | | | | | | | | | (GH-12358) Before, an `AttributeError` was raised due to trying to access an attribute that exists on specs but having received `None` instead for a non-existent module. https://bugs.python.org/issue36298
| * bpo-30670: Add pp function to the pprint module (GH-11769)Rémi Lapeyre2019-03-222-18/+39
| |
| * asyncio: PendingDeprecationWarning -> DeprecationWarning (GH-12494)Inada Naoki2019-03-222-11/+11
| | | | | | `Task.current_task()` and `Task.all_tasks()` will be removed in 3.9.
| * bpo-21269: Provide args and kwargs attributes on mock call objects GH11807Kumar Akshay2019-03-223-3/+33
| |
| * Raise the timeout in test_multiprocessing_* for slow buildbots (GH-12489)Pablo Galindo2019-03-221-1/+1
| |
| * bpo-36256: Fix bug in parsermodule when parsing if statements (GH-12477)Pablo Galindo2019-03-211-0/+4
| | | | | | | | | | | | bpo-36256: Fix bug in parsermodule when parsing if statements In the parser module, when validating nodes before starting the parsing with to create a ST in "parser_newstobject" there is a problem that appears when two arcs in the same DFA state has transitions with labels with the same type. For example, the DFA for if_stmt has a state with two labels with the same type: "elif" and "else" (type NAME). The algorithm tries one by one the arcs until the label that starts the arc transition has a label with the same type of the current child label we are trying to accept. In this case, the arc for "elif" comes before the arc for "else"and passes this test (because the current child label is "else" and has the same type as "elif"). This lead to expecting a namedexpr_test (305) instead of a colon (11). The solution is to compare also the string representation (in case there is one) of the labels to see if the transition that we have is the correct one.
| * bpo-35978: Correctly skips venv tests in venvs (GH-12220)Steve Dower2019-03-212-12/+22
| | | | | | Also fixes venvs from the build directory on Windows.
| * bpo-36268: Change default tar format to pax from GNU. (GH-12355)CAM Gerlach2019-03-212-6/+7
| |
| * bpo-36324: NormalDist() add more tests and update comments (GH-12476)Raymond Hettinger2019-03-201-24/+44
| | | | | | | | | | | | | | * Improve coverage. * Note inherent limitations of the accuracy tests https://bugs.python.org/issue36324
| * bpo-36285: Fix integer overflow in the array module. (GH-12317)sth2019-03-201-0/+141
| |
| * bpo-36312: Fix decoders for some code pages. (GH-12369)Serhiy Storchaka2019-03-201-0/+9
| |
| * bpo-36324: Improved code formatting for the NormalDist.inv_cdf rational ↵Raymond Hettinger2019-03-191-46/+48
| | | | | | | | | | approximation (GH-12448) https://bugs.python.org/issue36324
| * NormalDist.inv_cdf(): In-line constants because the variable names were not ↵Raymond Hettinger2019-03-191-59/+46
| | | | | | | | informative (GH-12446)
| * Add docstrings to the arithmetic methods in NormalDist() (GH-12426)Raymond Hettinger2019-03-181-14/+44
| |
| * bpo-36324: Add inv_cdf() to statistics.NormalDist() (GH-12377)Raymond Hettinger2019-03-182-0/+158
| |
| * bpo-36320: Switch typing.NamedTuple from OrderedDict to regular dict (GH-12396)Raymond Hettinger2019-03-181-9/+7
| | | | | | | | | | | | Also, deprecate the *_field_types* attributes which duplicated the information in *\__annotations__*. https://bugs.python.org/issue36320
| * bpo-36235: Enhance distutils test_customize_compiler() (GH-12403)Victor Stinner2019-03-181-13/+79
| | | | | | | | The test test_customize_compiler() now mocks all sysconfig variables and all environment variables used by customize_compiler().
| * bpo-36332: Allow compile() to handle AST objects with assignment expressions ↵Pablo Galindo2019-03-181-0/+11
| | | | | | | | | | | | (GH-12398)
| * bpo-36321: Fix misspelled attribute in namedtuple() (GH-12375)Raymond Hettinger2019-03-182-6/+8
| |