summaryrefslogtreecommitdiff
path: root/Misc
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'master' into bind-socketGiampaolo Rodola2019-03-2847-61/+944
|\
| * bpo-29515: add missing socket.IPPROTO_* constants on Windows (GH-12183)Giampaolo Rodola2019-03-281-0/+27
| |
| * bpo-36459: Fix a possible double PyMem_FREE() due to tokenizer.c's ↵Zackery Spytz2019-03-281-0/+1
| | | | | | | | | | | | tok_nextc() (12601) Remove the PyMem_FREE() call added in cb90c89. The buffer will be freed when PyTokenizer_Free() is called on the tokenizer state.
| * bpo-36452: dictiter: track maximum iteration count (GH-12596)Thomas Perl2019-03-281-0/+1
| |
| * Fix NEWS entries with incorrect bpo numbers (GH-12599)Ned Deily2019-03-282-2/+2
| |
| * bpo-31292: Fixed distutils check --restructuredtext for include directives ↵Philipp A2019-03-271-0/+2
| | | | | | | | | | | | (GH-10605)
| * bpo-36443: Disable C locale coercion and UTF-8 Mode by default (GH-12589)Victor Stinner2019-03-271-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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/+1
| |
| * bpo-31904: Fix test_utf8_mode on VxWorks (GH-12428)hliu02019-03-271-0/+1
| | | | | | Python always use UTF-8 on VxWorks.
| * bpo-35810: Incref heap-allocated types in PyObject_Init (GH-11661)Eddie Elizondo2019-03-271-0/+4
| | | | | | | | | | * Incref heap-allocated types in PyObject_Init * Add documentation and porting notes to What's New
| * bpo-36407: Fix writing indentations of CDATA section (xml.dom.minidom). ↵Vladimir Surjaninov2019-03-271-0/+2
| | | | | | | | (GH-12514)
| * bpo-33832: Add "magic method" glossary entry (GH-7630)Andre Delfino2019-03-261-0/+1
| |
| * bpo-36429: Fix starting IDLE with pyshell (#12548)Terry Jan Reedy2019-03-261-0/+2
| | | | | | | | | | Add idlelib.pyshell alias at top; remove pyshell alias at bottom. Remove obsolete __name__=='__main__' command.
| * bpo-36436: Fix _testcapi.pymem_buffer_overflow() (GH-12560)Victor Stinner2019-03-261-0/+1
| | | | | | Handle memory allocation failure.
| * bpo-36433: fix confusing error messages in classmethoddescr_call (GH-12556)Inada Naoki2019-03-261-0/+1
| | | | | | https://bugs.python.org/issue36433
| * Merge tag 'v3.8.0a3'Łukasz Langa2019-03-2688-171/+871
| |\ | | | | | | | | | Python 3.8.0a3
| | * v3.8.0a3v3.8.0a3Łukasz Langa2019-03-2588-171/+871
| | |
| * | bpo-36430: Fix a possible reference leak in itertools.count(). (GH-12551)Zackery Spytz2019-03-261-0/+1
| | |
| * | bpo-36345: Add a new example in the documentation of wsgiref (#12511)Stéphane Wirtel2019-03-251-0/+2
| | |
| * | bpo-36143: Regenerate Lib/keyword.py from the Grammar and Tokens file using ↵Pablo Galindo2019-03-251-0/+2
| | | | | | | | | | | | | | | | | | 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-251-0/+2
| |/
| * bpo-36421: Fix a possible double decref in _ctypes.c's PyCArrayType_new(). ↵Zackery Spytz2019-03-251-0/+1
| | | | | | | | | | | | | | (GH-12530) Set type_attr to NULL after the assignment to stgdict->proto (like what is done with stgdict after the Py_SETREF() call) so that it is not decrefed twice on error.
| * bpo-36218: Fix handling of heterogeneous values in list.sort (GH-12209)Rémi Lapeyre2019-03-251-0/+2
| |
| * bpo-36401: Have help() show readonly properties separately (GH-12517)Raymond Hettinger2019-03-241-0/+2
| |
| * bpo-30348: IDLE: Add test_autocomplete unittest (GH-2209)Louie Lu2019-03-241-0/+1
| |
| * bpo-36405: IDLE - Restore __main__ and add tests (#12518)Terry Jan Reedy2019-03-241-1/+1
| | | | | | | | Fix error in commit 2b75155 noticed by Serhiy Storchaka.
| * bpo-36412: fix a possible crash in dictobject.c's new_dict() (GH-12519)Zackery Spytz2019-03-241-0/+1
| |
| * bpo-32217: Correct usage of ABI tags in freeze. (GH-4719)AraHaan2019-03-231-0/+1
| | | | | | | | Check for sys.abiflags before using since not all platforms have it defined.
| * bpo-36381: warn when no PY_SSIZE_T_CLEAN defined (GH-12473)Inada Naoki2019-03-231-0/+2
| | | | | | We will remove int support from 3.10 or 4.0.
| * bpo-23205: IDLE: Add tests and refactor grep's findfiles (GH-12203)Cheryl Sabella2019-03-231-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | * 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-231-0/+1
| | | | | | Remove now unneeded imports.
| * bpo-36396: Remove fgBg param of idlelib.config.GetHighlight() (GH-12491)Terry Jan Reedy2019-03-221-0/+2
| | | | | | | | 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-221-0/+2
| | | | | | | | | | | | | | | | (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-221-0/+4
| |
| * bpo-21269: Provide args and kwargs attributes on mock call objects GH11807Kumar Akshay2019-03-221-0/+1
| |
| * bpo-36398: Fix a possible crash in structseq_repr(). (GH-12492)Zackery Spytz2019-03-221-0/+1
| | | | | | | | | | If the first PyUnicode_DecodeUTF8() call fails in structseq_repr(), _PyUnicodeWriter_Dealloc() will be called on an uninitialized _PyUnicodeWriter.
| * bpo-36256: Fix bug in parsermodule when parsing if statements (GH-12477)Pablo Galindo2019-03-211-0/+2
| | | | | | | | | | | | 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-36268: Change default tar format to pax from GNU. (GH-12355)CAM Gerlach2019-03-211-0/+3
| |
| * bpo-36285: Fix integer overflow in the array module. (GH-12317)sth2019-03-201-0/+1
| |
| * bpo-36312: Fix decoders for some code pages. (GH-12369)Serhiy Storchaka2019-03-201-0/+2
| |
| * bpo-36374: Fix a possible null pointer dereference (GH-12449)Zackery Spytz2019-03-201-0/+2
| | | | | | https://bugs.python.org/issue36374
| * bpo-36365: Rewrite structseq_repr() using _PyUnicodeWriter (GH-12440)Victor Stinner2019-03-201-0/+1
| | | | | | | | | | No longer limit repr(structseq) to 512 bytes. Use _PyUnicodeWriter for better performance and to write directly Unicode rather than encoding repr() value to UTF-8 and then decoding from UTF-8.
| * bpo-36236: Handle removed cwd at Python init (GH-12424)Victor Stinner2019-03-191-0/+2
| | | | | | | | | | | | | | | | At Python initialization, the current directory is no longer prepended to sys.path if it has been removed. Rename _PyPathConfig_ComputeArgv0() to _PyPathConfig_ComputeSysPath0() to avoid confusion between argv[0] and sys.path[0].
| * bpo-36333: Fix leak _PyRuntimeState_Fini (GH-12400)Stéphane Wirtel2019-03-191-0/+1
| |
| * bpo-36356: Fix memory leak in _PyPreConfig_Read() (GH-12425)btharper2019-03-191-0/+1
| | | | | | _PyPreConfig_Read() now free 'old_old' at exit.
| * bpo-36324: Add inv_cdf() to statistics.NormalDist() (GH-12377)Raymond Hettinger2019-03-181-0/+2
| |
| * bpo-36352: Avoid hardcoded MAXPATHLEN size in getpath.c (GH-12423)Victor Stinner2019-03-191-0/+2
| | | | | | | | * Use Py_ARRAY_LENGTH() rather than hardcoded MAXPATHLEN in getpath.c. * Pass string length to functions modifying strings.
| * bpo-36301: Error if decoding pybuilddir.txt fails (GH-12422)Victor Stinner2019-03-191-0/+2
| | | | | | | | | | | | | | | | Python initialization now fails if decoding pybuilddir.txt configuration file fails at startup. _PyPathConfig_Calculate() now reports memory allocation failure and decoding error on decoding pybuilddir.txt content from UTF-8/surrogateescape.
| * bpo-36320: Switch typing.NamedTuple from OrderedDict to regular dict (GH-12396)Raymond Hettinger2019-03-181-0/+3
| | | | | | | | | | | | Also, deprecate the *_field_types* attributes which duplicated the information in *\__annotations__*. https://bugs.python.org/issue36320
| * bpo-36332: Allow compile() to handle AST objects with assignment expressions ↵Pablo Galindo2019-03-181-0/+2
| | | | | | | | | | | | (GH-12398)