summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* bpo-36543: What's new: Document how to replace xml.etree.cElementTree (GH-19188)Miro Hrončok2020-03-271-1/+5
|
* bpo-39812: Remove daemon threads in concurrent.futures (GH-19149)Kyle Stanley2020-03-276-32/+99
| | | | | | Remove daemon threads from :mod:`concurrent.futures` by adding an internal `threading._register_atexit()`, which calls registered functions prior to joining all non-daemon threads. This allows for compatibility with subinterpreters, which don't support daemon threads.
* bpo-40045: Make "dunder" method documentation easier to locate (#19153)Javad Mokhtari2020-03-271-5/+5
| | | | | | | | | * issue 40045 * Update lexical_analysis.rst Make "dunder" method documentation easier(GH-19153) Co-authored-by: Joannah Nanjekye <33177550+nanjekyejoannah@users.noreply.github.com>
* bpo-40089: Fix threading._after_fork() (GH-19191)Victor Stinner2020-03-272-1/+12
| | | | | If fork was not called by a thread spawned by threading.Thread, threading._after_fork() now creates a _MainThread instance for _main_thread, instead of a _DummyThread instance.
* bpo-38237: Use divmod for positional arguments whatsnew example (GH-19171)Ammar Askar2020-03-271-5/+4
|
* bpo-38644: Use _PySys_Audit(): pass tstate explicitly (GH-19183)Victor Stinner2020-03-274-25/+31
| | | Add the dependency to tstate more explicit.
* bpo-40077: Convert _json module to use PyType_FromSpec() (GH-19177)Dong-hee Na2020-03-272-157/+131
| | | | | | | Replace statically allocated types with heap allocated types: use PyType_FromSpec(). Add a module state to store the Scanner and Encoder types. Add traverse, clear and free functions to the module.
* bpo-38644: Make tstate more explicit inside pystate.c (GH-19182)Victor Stinner2020-03-263-47/+67
| | | | Fix PyInterpreterState_New(): Don't call PyErr_SetString() when there is no current Python thread state (if tstate is NULL).
* bpo-38644: Pass tstate explicitly in signalmodule.c (GH-19184)Victor Stinner2020-03-263-65/+93
| | | | PyOS_InterruptOccurred() now checks _Py_ThreadCanHandleSignals() before checking if SIGINT is tripped.
* bpo-38644: Add _PySys_Audit() which takes tstate (GH-19180)Victor Stinner2020-03-267-66/+145
| | | | | | | | | | | | | | | Add _PySys_Audit() function to the internal C API: similar to PySys_Audit(), but requires a mandatory tstate parameter. Cleanup sys_audit_tstate() code: remove code path for NULL tstate, since the function exits at entry if tstate is NULL. Remove also code path for NULL tstate->interp: should_audit() now ensures that it is not NULL (even if tstate->interp cannot be NULL in practice). PySys_AddAuditHook() now checks if tstate is not NULL to decide if tstate can be used or not, and tstate is set to NULL if the runtime is not initialized yet. Use _PySys_Audit() in sysmodule.c.
* bpo-1812: Fix newline conversion when doctest.testfile loads from a package ↵Peter Donis2020-03-264-5/+100
| | | | | whose loader has a get_data method (GH-17385) This pull request fixes the newline conversion bug originally reported in bpo-1812. When that issue was originally submitted, the open builtin did not default to universal newline mode; now it does, which makes the issue fix simpler, since the only code path that needs to be changed is the one in doctest._load_testfile where the file is loaded from a package whose loader has a get_data method.
* bpo-39879: Update datamodel docs to include dict ordering (GH-19006)Lahfa Samy2020-03-263-0/+13
| | | Co-authored-by: furkanonder <furkantahaonder@gmail.com>
* bpo-40069: Clear out .lst files on make clean (GH-19169)Batuhan Taşkaya2020-03-261-0/+1
| | | Files created on AIX by xlc (C compiler).
* bpo-40071: Fix refleak in _functools module (GH19172)Paulo Henrique Silva2020-03-261-2/+4
|
* bpo-38410: Properly handle PySys_Audit() failures (GH-16657)Zackery Spytz2020-03-264-12/+20
|
* bpo-39943: Properly const the pointers in dictkeys_get_index (GH-19170)Andy Lester2020-03-261-5/+5
|
* bpo-40067: Improve error messages for multiple star expressions in ↵Furkan Önder2020-03-264-3/+11
| | | | | | assignments (GH-19168) Co-Authored-By: Batuhan Taşkaya <isidentical@gmail.com> Co-Authored-By: Pablo Galindo <Pablogsal@gmail.com>
* bpo-39947: Add PyThreadState_GetID() function (GH-19163)Victor Stinner2020-03-256-2/+25
| | | | Add PyThreadState_GetID() function: get the unique identifier of a Python thread state.
* bpo-39947: Add _PyThreadState_GetDict() function (GH-19160)Victor Stinner2020-03-253-11/+23
|
* bpo-19698: Document when importlib.machinery.FrozenImporter gained ↵Brett Cannon2020-03-251-0/+4
| | | | spec-related methods (GH-19158)
* bpo-39947: Use PyThreadState_GetFrame() (GH-19159)Victor Stinner2020-03-252-4/+6
| | | | | _tracemalloc.c and _xxsubinterpretersmodule.c use PyThreadState_GetFrame() and PyThreadState_GetInterpreter() to no longer depend on the PyThreadState structure.
* bpo-40016: re docstring: Clarify relationship of inline and argument flags ↵Ram Rachum2020-03-252-2/+5
| | | | | | | (#19078) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-39882: Add _Py_FatalErrorFormat() function (GH-19157)Victor Stinner2020-03-2515-109/+157
|
* bpo-40050: Rephrase NEWS entry (GH-19148)Victor Stinner2020-03-251-3/+3
|
* Use calloc-based functions, not malloc. (GH-19152)Andy Lester2020-03-2510-38/+17
|
* bpo-1635741: Port _functools module to multiphase initialization (PEP 489) ↵Paulo Henrique Silva2020-03-252-28/+34
| | | | (GH-19151)
* bpo-1635741: Port operator module to multiphase initialization (PEP 489) ↵Paulo Henrique Silva2020-03-252-23/+28
| | | | (GH-19150)
* bpo-36144: Add union operators to WeakValueDictionary584 (#19127)Curtis Bucher2020-03-254-0/+60
|
* bpo-40024: Update C extension modules to use PyModule_AddType() (GH-19119)Dong-hee Na2020-03-2412-134/+67
| | | | | | Update _asyncio, _bz2, _csv, _curses, _datetime, _io, _operator, _pickle, _queue, blake2, multibytecodec and overlapped C extension modules to use PyModule_AddType().
* bpo-40029 mark test_importlib.test_zip as requiring zlib (#19105)Roman Yurchak2020-03-241-0/+4
| | | | | * bpo-40029 mark test_importlib.test_zip as requiring zlib * Decorate TestZip / TestEgg classes as requiring zlib
* bpo-1635741: Port _weakref extension module to multiphase initialization ↵Victor Stinner2020-03-242-21/+38
| | | | | (PEP 489) (GH-19140) Co-authored-by: Hai Shi <shihai1992@gmail.com>
* bpo-40014: Fix os.getgrouplist() (GH-19126)Victor Stinner2020-03-242-25/+29
| | | | | | | | Fix os.getgrouplist(): if getgrouplist() function fails because the group list is too small, retry with a larger group list. On failure, the glibc implementation of getgrouplist() sets ngroups to the total number of groups. For other implementations, double the group list size.
* bpo-40013: Clarify documentation of restval in csv.DictReader (GH-19099)Juhana Jauhiainen2020-03-241-1/+2
|
* bpo-40050: Fix importlib._bootstrap_external (GH-19135)Victor Stinner2020-03-243-1757/+1745
| | | | | | Remove two unused imports: _thread and _weakref. Avoid creating a new winreg builtin module if it's already available in sys.modules. The winreg module is now stored as "winreg" rather than "_winreg".
* Clarify a guarantee of the logging module. (GH-19132)Gregory P. Smith2020-03-241-0/+1
| | | | When no additional arguments are passed to logging.debug() and related methods, no % operation is performed on the passed in message.
* bpo-20526: Fix PyThreadState_Clear(): don't decref frame (GH-19120)Victor Stinner2020-03-244-30/+14
| | | | | | | | PyThreadState.frame is a borrowed reference, not a strong reference: PyThreadState_Clear() must not call Py_CLEAR(tstate->frame). Remove test_threading.test_warnings_at_exit(): we cannot warranty that the Python thread state of daemon threads is cleared in a reliable way during Python shutdown.
* bpo-39689: Do not use native packing for format "?" with standard size ↵Stefan Krah2020-03-241-0/+3
| | | | (GH-18969)
* closes bpo-40017: Add CLOCK_TAI constant to the time module. (GH-19096)Russell Owen2020-03-243-1/+16
| | | Co-authored-by: Benjamin Peterson <benjamin@python.org>
* Updated documentation for FOR_ITER (GH-19113)laike9m2020-03-241-1/+1
| | | Added a comma to make the sentence less confusing.
* Revert "bpo-1635741: Port _weakref extension module to multiphase ↵Victor Stinner2020-03-231-37/+21
| | | | | | initialization (PEP 489) (GH-19084)" (#19128) bpo-1635741, bpo-40050: This reverts commit 8334f30a74abcf7e469b901afc307887aa85a888.
* Post 3.9.0a5Łukasz Langa2020-03-231-1/+1
|
* Merge tag 'v3.9.0a5'Łukasz Langa2020-03-23129-315/+1381
|\ | | | | | | Python 3.9.0a5
| * Python 3.9.0a5v3.9.0a5Łukasz Langa2020-03-23129-315/+1381
| |
* | bpo-36144: Add union operators to WeakKeyDictionary (#19106)Curtis Bucher2020-03-234-0/+60
| |
* | bpo-40036: Deleting duplicates in itertoolsmodule.c (GH-18958)AlphaHot2020-03-231-26/+0
| |
* | bpo-36144: Add PEP 584 operators to collections.ChainMap (#18832)Curtis Bucher2020-03-235-0/+69
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Update ChainMap to include | and |= Created __ior__, __or__ and __ror__ methods in ChainMap class. * Update ACKS * Update docs * Update test_collections.py to include test_issue584(). Added testing for | and |= operators for ChainMap objects. * Update test_union_operators Renamed test_union operators, fixed errors and style problems raised by brandtbucher. * Update test_union_operators in TestChainMap Added testing for union operator between ChainMap and iterable of key-value pairs. * Update test_union operators in test_collections.py Gave more descriptive variable names and eliminated unnecessary tmp variable. * Update test_union_operators in test_collections.py Added cm3 * Check .maps rather than Chainmap equality. * Add news entry * Update Lib/test/test_collections.py Co-Authored-By: Brandt Bucher <brandtbucher@gmail.com> * Removed whitespace * Added Guido's changes * Fixed Docs * Removed whitespace Co-authored-by: Brandt Bucher <brandtbucher@gmail.com>
* | bpo-40014: Fix os.getgrouplist() on macOS (GH-19118)Victor Stinner2020-03-232-0/+22
| | | | | | | | | | On macOS, getgrouplist() returns a non-zero value without setting errno if the group list is too small. Double the list size and call it again in this case.
* | bpo-1635741: Port time module to multiphase initialization (PEP 489) (GH-19107)Paulo Henrique Silva2020-03-232-51/+54
|/
* bpo-39830: Add zipfile.Path to __all__ (GH-19115)Zackery Spytz2020-03-232-1/+3
|
* bpo-39999: Improve compatibility of the ast module. (GH-19056)Serhiy Storchaka2020-03-2210-22/+49
| | | | | | | * Re-add removed classes Suite, slice, Param, AugLoad and AugStore. * Add docstrings for dummy classes. * Add docstrings for attribute aliases. * Set __module__ to "ast" instead of "_ast".