summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* bpo-40521: Cleanup code of free lists (GH-21082)Victor Stinner2020-06-238-69/+110
| | | Add get_xxx_state() function to factorize duplicated code.
* bpo-41065: Use zip-strict in zoneinfo (GH-21031)Ram Rachum2020-06-231-2/+1
|
* Call _PyWarnings_InitState() in subinterpreters (GH-21078)Victor Stinner2020-06-231-11/+9
| | | | Py_InitializeFromConfig() now calls also _PyWarnings_InitState() in subinterpreters.
* bpo-36710: Pass tstate explicitly in abstract.c (GH-21075)Victor Stinner2020-06-231-40/+61
| | | | In functions calling more than one PyErr function, get tstate and then pass it explicitly.
* bpo-40521: Make bytes singletons per interpreter (GH-21074)Victor Stinner2020-06-2313-53/+96
| | | | | | Each interpreter now has its own empty bytes string and single byte character singletons. Replace STRINGLIB_EMPTY macro with STRINGLIB_GET_EMPTY() macro.
* bpo-40521: Remove freelist from collections.deque() (GH-21073)Raymond Hettinger2020-06-232-21/+3
|
* bpo-41085: Fix array.array.index() on 64-bit Windows (GH-21071)WildCard652020-06-232-1/+3
| | | | Fix integer overflow in the :meth:`array.array.index` method on 64-bit Windows for index larger than ``2**31``.
* bpo-40521: Make the empty frozenset per interpreter (GH-21068)Victor Stinner2020-06-235-19/+24
| | | Each interpreter now has its own empty frozenset singleton.
* bpo-40521: Make dict free lists per-interpreter (GH-20645)Victor Stinner2020-06-237-81/+98
| | | | | | | | | | | Each interpreter now has its own dict free list: * Move dict free lists into PyInterpreterState. * Move PyDict_MAXFREELIST define to pycore_interp.h * Add _Py_dict_state structure. * Add tstate parameter to _PyDict_ClearFreeList() and _PyDict_Fini(). * In debug mode, ensure that the dict free lists are not used after _PyDict_Fini() is called. * Remove "#ifdef EXPERIMENTAL_ISOLATED_SUBINTERPRETERS".
* Small clean-ups for the random module (GH-21038)Raymond Hettinger2020-06-231-30/+27
|
* Improve asyncio.loop.call_soon() documentation (GH-20883)Roger Iyengar2020-06-233-3/+7
| | | | | | * Add a glossary entry for the term "callback" * Link to it in loop.call_soon() and in the "Concurrency and Multithreading" section Co-authored-by: Kyle Stanley <aeros167@gmail.com>
* bpo-41078: Fix bltinmodule.c with Py_TRACE_REFS (GH-21058)Victor Stinner2020-06-221-0/+1
| | | | Add pycore_object.h include to fix bltinmodule.c when Py_TRACE_REFS macro is defined.
* bpo-1635741: Port _lzma module to multiphase initialization (GH-19382)Dong-hee Na2020-06-223-298/+465
|
* bpo-41078: Add pycore_list.h internal header file (GH-21057)Victor Stinner2020-06-228-4/+31
| | | | | * Move _PyList_ITEMS() to pycore_list.h. * The C extension "_heapq" is now built with Py_BUILD_CORE_MODULE macro defined to access the internal C API.
* bpo-41078: Rename pycore_tupleobject.h to pycore_tuple.h (GH-21056)Victor Stinner2020-06-2217-52/+51
|
* bpo-41005: Fixed perrmission error (GH-20936)Krishna Chivukula2020-06-222-1/+2
| | | | | | * fixed issue 41005: webbrowser fails when xdg-settings cannot be executed Co-authored-by: KrishnaSai2020 <krishnasai.chivukula@gmal.com> Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
* bpo-41068: Fix read after write in zipfile for non-ASCII files names. (GH-21040)Serhiy Storchaka2020-06-223-1/+8
|
* bpo-26407: Do not mask errors in csv. (GH-20536)Serhiy Storchaka2020-06-223-9/+30
| | | | | Unexpected errors in calling the __iter__ method are no longer masked by TypeError in csv.reader(), csv.writer.writerow() and csv.writer.writerows().
* bpo-40824: Do not mask errors in __iter__ in "in" and the operator module. ↵Serhiy Storchaka2020-06-224-1/+21
| | | | | | | (GH-20537) Unexpected errors in calling the __iter__ method are no longer masked by TypeError in the "in" operator and functions operator.contains(), operator.indexOf() and operator.countOf().
* bpo-41061: Fix incorrect expressions in hashtable (GH-21028)Christian Heimes2020-06-223-4/+5
| | | Signed-off-by: Christian Heimes <christian@python.org>
* bpo-41056: Fix a possible MemoryError leak within zoneinfo. (GH-21007)Gregory P. Smith2020-06-222-4/+3
| | | | | This was detected by our Coverity scan as a REVERSE_INULL issue. Automerge-Triggered-By: @gpshead
* bpo-41056: Fix reference to deallocated stack in pathconfig (Coverity) ↵Gregory P. Smith2020-06-222-1/+2
| | | | | | | (GH-21013) Reported by Coverity. (CID 1457554 RETURN_LOCAL) path0 is assigned as a pointer to this right before it goes out of scope.
* Skip tests to fix bot (GH-20777)Joannah Nanjekye2020-06-212-0/+4
| | | Co-authored-by: nanjekyejoannah <joannah.nanjekye@ibm.com>
* bpo-40939: Rename PyPegen* functions to PyParser* (GH-21016)Lysandros Nikolaou2020-06-218-79/+52
| | | | | | Rename PyPegen* functions to PyParser*, so that we can remove the old set of PyParser* functions that were using the old parser.
* bpo-41052: Opt out serialization/deserialization for _random.Random (GH-21002)Dong-hee Na2020-06-214-1/+47
|
* bpo-41055: Remove outdated tests for the tp_print slot. (GH-21006)Serhiy Storchaka2020-06-218-157/+4
|
* bpo-41058: Use source file encoding in pdb.find_function(). (GH-21010)Serhiy Storchaka2020-06-213-14/+42
|
* bpo-41060: Avoid SEGFAULT when calling GET_INVALID_TARGET in the grammar ↵Lysandros Nikolaou2020-06-214-26/+38
| | | | | | | | | (GH-21020) `GET_INVALID_TARGET` might unexpectedly return `NULL`, which if not caught will cause a SEGFAULT. Therefore, this commit introduces a new inline function `RAISE_SYNTAX_ERROR_INVALID_TARGET` that always checks for `GET_INVALID_TARGET` returning NULL and can be used in the grammar, replacing the long C ternary operation used till now.
* bpo-41056: Use the fildes converter for fd to please Coverity. (GH-21011)Gregory P. Smith2020-06-203-5/+5
| | | | | | | | | There are a bunch of other fd: int uses in this file, I expect many if not all of them would be better off using the fildes converter. This particular one was flagged by Coverity as it presumably flags fpathconf as not accepting negative fds. I'd expect the other fd's to have been flagged as well otherwise. I'm marking this one as skip news as it really is a no-op.
* bpo-41056: Fix a NULL pointer dereference on MemoryError within the ssl ↵Gregory P. Smith2020-06-202-6/+7
| | | | | module. (GH-21009) Detected by Coverity.
* 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-191-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-193-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-186-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-171-1/+1
| | | Typo spotted by Eric V. Smith ;-)