summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* bpo-40939: Remove the old parser (Part 2) (GH-21005)Lysandros Nikolaou2020-06-2024-3534/+5
| | | Remove some remaining files and Makefile targets for the old parser
* bpo-41044: Generate valid PEG python parsers for opt+seq rules (GH-20995)Batuhan Taskaya2020-06-202-1/+15
| | | Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
* Add link to .pypirc specification (GH-20680)Brian Rutledge2020-06-201-0/+3
| | | | | Related to https://github.com/pypa/twine/issues/638 and https://github.com/pypa/packaging.python.org/issues/730, I wrote a spec based on the one that was removed in https://github.com/python/cpython/pull/13087. However, a Google search for "pypirc" turned up at least one [blog post](https://truveris.github.io/articles/configuring-pypirc/) that links to https://docs.python.org/3/distutils/packageindex.html#the-pypirc-file, which now just links to this document. So, I thought a link to the spec would be handy. Automerge-Triggered-By: @jaraco
* bpo-40958: Avoid 'possible loss of data' warning on Windows (GH-20970)Lysandros Nikolaou2020-06-202-2/+2
|
* bpo-41024: doc: Explicitly mention use of 'enum.Enum' as a valid container ↵Vincent Férotin2020-06-201-0/+14
| | | | | | | | | for '… (GH-20964) …choices' argument of 'argparse.ArgumentParser.add_argument'. Here's a short first proposal of doc. enhancement addressing [bpo-41024](). Automerge-Triggered-By: @csabella
* bpo-41043: Escape literal part of the path for glob(). (GH-20994)Serhiy Storchaka2020-06-2024-31/+37
|
* bpo-41040: Fix test_modulefinder. (GH-20991)Serhiy Storchaka2020-06-201-1/+2
|
* bpo-40636: Documentation for zip-strict (#20961)Ram Rachum2020-06-192-44/+87
|
* bpo-38377: Fix skip_if_broken_multiprocessing_synchronize() on macOS (GH-20984)Victor Stinner2020-06-191-8/+9
| | | | | skip_if_broken_multiprocessing_synchronize() only attempts for create a semaphore on Linux to fix multiprocessing test_resource_tracker_reused() on macOS.
* bpo-40077: Convert _bz2 module to use PyType_FromSpec (GH-20960)Dong-hee Na2020-06-203-174/+240
|
* Improve blake2 comment for Victor (GH-20981)Christian Heimes2020-06-191-5/+7
| | | | | Signed-off-by: Christian Heimes <christian@python.org> Automerge-Triggered-By: @tiran
* Improve readability of `formataddr` docstring (GH-20963)Jürgen Gmach2020-06-191-1/+1
| | | | | | | For me as a non native English speaker, the sentence with its embedded clause was very hard to understand. modified: Lib/email/utils.py Automerge-Triggered-By: @csabella
* bpo-40636: PEP 618: add strict parameter to zip() (GH-20921)Guido van Rossum2020-06-193-8/+238
| | | | | | | | zip() now supports PEP 618's strict parameter, which raises a ValueError if the arguments are exhausted at different lengths. Patch by Brandt Bucher. Co-authored-by: Brandt Bucher <brandtbucher@gmail.com> Co-authored-by: Ram Rachum <ram@rachum.com>
* bpo-40943: PY_SSIZE_T_CLEAN required for '#' formats (GH-20784)Victor Stinner2020-06-196-102/+87
| | | | | | | The PY_SSIZE_T_CLEAN macro must now be defined to use PyArg_ParseTuple() and Py_BuildValue() "#" formats: "es#", "et#", "s#", "u#", "y#", "z#", "U#" and "Z#". See the PEP 353. Update _testcapi.test_buildvalue_issue38913().
* bpo-40334: Produce better error messages on invalid targets (GH-20106)Lysandros Nikolaou2020-06-196-1454/+1849
| | | | | | | | | | | | | | The following error messages get produced: - `cannot delete ...` for invalid `del` targets - `... is an illegal 'for' target` for invalid targets in for statements - `... is an illegal 'with' target` for invalid targets in with statements Additionally, a few `cut`s were added in various places before the invocation of the `invalid_*` rule, in order to speed things up. Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
* Update CODEOWNERS to account for the new parser location (GH-20971)Pablo Galindo2020-06-181-3/+3
|
* bpo-38144: Add the root_dir and dir_fd parameters in glob.glob(). (GH-16075)Serhiy Storchaka2020-06-185-47/+175
|
* bpo-40884: Added defaults parameter for logging.Formatter (GH-20668)Bar Harel2020-06-184-9/+57
| | | | | Docs and tests are underway. Automerge-Triggered-By: @vsajip
* bpo-38377: Add support.skip_if_broken_multiprocessing_synchronize() (GH-20944)Victor Stinner2020-06-189-12/+48
| | | | | | On Linux, skip tests using multiprocessing if the current user cannot create a file in /dev/shm/ directory. Add the skip_if_broken_multiprocessing_synchronize() function to the test.support module.
* bpo-41006: What's New: less => fewer modules (GH-20955)Victor Stinner2020-06-181-1/+1
| | | Typo spotted by Eric V. Smith ;-)
* bpo-41006: Remove init_sys_streams() hack (GH-20954)Victor Stinner2020-06-182-13/+2
| | | | The encodings.latin_1 module is no longer imported at startup. Now it is only imported when it is the filesystem encoding or the stdio encoding.
* bpo-41006: Document the runpy optimization (GH-20953)Victor Stinner2020-06-171-0/+5
|
* bpo-41006: importlib.util no longer imports typing (GH-20938)Victor Stinner2020-06-174-51/+55
| | | | Create importlib._abc submodule to avoid importing typing when importlib.util is imported. Move Loader ABC into importlib._abc.
* bpo-40637: Do not emit warnings for disabled builtin hashes (GH-20937)stratakis2020-06-171-1/+1
| | | | | | | | test_hashlib emits some warnings when it cannot find some hashes as it assumes they failed to compile. Since we can disable hashes through configure, we emit the warnings only in the case that we did not intentionaly disable them. Automerge-Triggered-By: @tiran
* bpo-41006: pkgutil imports lazily re (GH-20939)Victor Stinner2020-06-171-4/+10
| | | | The pkgutil module now imports lazily the re module to speedup Python startup time.
* bpo-41006: collections imports lazily heap (GH-20940)Victor Stinner2020-06-171-2/+4
| | | | The collections module now imports lazily the heapq modules in the Counter.most_common() method to speedup Python startup time.
* bpo-41009: fix requires_OS_version() class decorator (GH-20942)Christian Heimes2020-06-172-20/+21
| | | | | Signed-off-by: Christian Heimes <christian@python.org> Automerge-Triggered-By: @tiran
* bpo-41003: Fix test_copyreg when numpy is installed (GH-20935)Victor Stinner2020-06-174-12/+29
| | | | | | | | Fix test_copyreg when numpy is installed: test.pickletester now saves/restores warnings.filters when importing numpy, to ignore filters installed by numpy. Add the save_restore_warnings_filters() function to the test.support.warnings_helper module.
* bpo-36346: Make unicodeobject.h C89 compatible (GH-20934)Inada Naoki2020-06-171-1/+2
|
* bpo-35059: Enhance _PyObject_GC_TRACK() macros (GH-20931)Victor Stinner2020-06-171-14/+34
| | | | | * Rename _PyObject_GC_TRACK_impl() to _PyObject_GC_TRACK() * Rename _PyObject_GC_UNTRACK_impl() to _PyObject_GC_UNTRACK() * Omit filename and lineno parameters if NDEBUG is defined.
* bpo-36346: Add Py_DEPRECATED to deprecated unicode APIs (GH-20878)Inada Naoki2020-06-176-23/+75
| | | | Co-authored-by: Kyle Stanley <aeros167@gmail.com> Co-authored-by: Victor Stinner <vstinner@python.org>
* bpo-32604: Clean up test.support.interpreters. (gh-20926)Eric Snow2020-06-163-204/+413
| | | | | There were some minor adjustments needed and a few tests were missing. https://bugs.python.org/issue32604
* bpo-1635741: Port _gdbm module to multiphase initialization (GH-20920)Dong-hee Na2020-06-173-197/+281
|
* bpo-40958: Avoid buffer overflow in the parser when indexing the current ↵Pablo Galindo2020-06-163-13/+13
| | | | line (GH-20875)
* bpo-40989: Make _PyTraceMalloc_NewReference() internal (GH-20915)Victor Stinner2020-06-162-4/+6
| | | | Make the _PyTraceMalloc_NewReference() function fully internal: remove it from the public C API and don't export it anymore.
* bpo-40993: Don't run Travis CI coverage on PRs (GH-20916)Victor Stinner2020-06-161-0/+12
| | | | C and Python coverage jobs of Travis CI are no longer run on pull requests, only on branches like master.
* Remove old comment in string_parser.c (GH-20906)Pablo Galindo2020-06-161-5/+0
|
* bpo-19569: Add a macro to suppress deprecation warnings (GH-9004)Zackery Spytz2020-06-162-0/+22
| | | Co-authored-by: Arfrever Frehtes Taifersar Arahesis <arfrever.fta@gmail.com>
* bpo-40985: Show correct SyntaxError text when last line has a LINECONT ↵Lysandros Nikolaou2020-06-163-4/+13
| | | | | | | | (GH-20888) When a file ends with a line that contains a line continuation character the text of the emitted SyntaxError is empty, contrary to the old parser, where the error text contained the text of the last line.
* closes bpo-28557: error message for bad raw readinto (GH-7496)David Szotten2020-06-154-0/+27
| | | Co-authored-by: Benjamin Peterson <benjamin@python.org>
* bpo-40989: PyObject_INIT() becomes an alias to PyObject_Init() (GH-20901)Victor Stinner2020-06-1617-117/+113
| | | | | | | | | | | | | | The PyObject_INIT() and PyObject_INIT_VAR() macros become aliases to, respectively, PyObject_Init() and PyObject_InitVar() functions. Rename _PyObject_INIT() and _PyObject_INIT_VAR() static inline functions to, respectively, _PyObject_Init() and _PyObject_InitVar(), and move them to pycore_object.h. Remove their return value: their return type becomes void. The _datetime module is now built with the Py_BUILD_CORE_MODULE macro defined. Remove an outdated comment on _Py_tracemalloc_config.
* bpo-36020: Require vsnprintf() to build Python (GH-20899)Victor Stinner2020-06-164-44/+14
| | | | | | | | The C99 functions snprintf() and vsnprintf() are now required to build Python. PyOS_snprintf() and PyOS_vsnprintf() no longer call Py_FatalError(). Previously, they called Py_FatalError() on a buffer overflow on platforms which don't provide vsnprintf().
* bpo-36020: Remove snprintf macro in pyerrors.h (GH-20889)Victor Stinner2020-06-156-31/+26
| | | | | | | | | | On Windows, #include "pyerrors.h" no longer defines "snprintf" and "vsnprintf" macros. PyOS_snprintf() and PyOS_vsnprintf() should be used to get portable behavior. Replace snprintf() calls with PyOS_snprintf() and replace vsnprintf() calls with PyOS_vsnprintf().
* bpo-38488: Upgrade bundled versions of pip & setuptools (GH-20491)Xavier Fernandez2020-06-156-7/+8
|
* bpo-40448: ensurepip: Do not use cache (GH-19812)Krzysztof Konopko2020-06-154-9/+12
| | | | | | | | | | | | | | | ensurepip optionally installs or upgrades 'pip' and 'setuptools' using the version of those modules bundled with Python. The internal PIP installation routine by default temporarily uses its cache, if it exists. This is undesirable as Python builds and installations may be independent of the user running the build, whilst PIP cache location is dependent on the user's environment and outside of the build environment. At the same time, there's no value in using the cache while installing bundled modules. This change disables PIP caching when used in ensurepip.
* bpo-1635741: Port _dbm module to multiphase initialization (GH-20848)Dong-hee Na2020-06-163-147/+201
|
* bpo-34226: fix cgi.parse_multipart without content_length (GH-8530)roger2020-06-153-2/+21
| | | | | | | | | In Python 3.7 the behavior of parse_multipart changed requiring CONTENT-LENGTH header, this fix remove this header as required and fix FieldStorage read_lines_to_outerboundary, by not using limit when it's negative, since by default it's -1 if not content-length and keeps substracting what was read from the file object. Also added a test case for this problem.
* bpo-40910: PyConfig_Clear() clears _orig_argv (GH-20886)Victor Stinner2020-06-151-0/+2
| | | bpo-40910, bpo-40953: PyConfig_Clear() clears _orig_argv.
* Improve readability and style in parser files (GH-20884)Pablo Galindo2020-06-152-119/+160
|
* bpo-29782: Consolidate _Py_Bit_Length() (GH-20739)Niklas Fiekas2020-06-156-36/+100
| | | | | | | | | | In GH-2866, _Py_Bit_Length() was added to pymath.h for lack of a better location. GH-20518 added a more appropriate header file for bit utilities. It also shows how to properly use intrinsics. This allows reconsidering bpo-29782. * Move the function to the new header. * Changed return type to match __builtin_clzl() and reviewed usage. * Use intrinsics where available. * Pick a fallback implementation suitable for inlining.