summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* bpo-39573: Remove What's new entry for Py_SIZE() (GH-23375)Miro Hrončok2020-11-181-11/+0
| | | A follow up for 0e2ac21dd4960574e89561243763eabba685296a
* bpo-42085: Add documentation for Py_TPFLAGS_HAVE_AM_SEND (GH-23374)Vladimir Matveev2020-11-181-0/+8
| | | | | Updated docs to include `Py_TPFLAGS_HAVE_AM_SEND`. News section should not be necessary. Automerge-Triggered-By: GH:asvetlov
* bpo-39573: Convert Py_TYPE() and Py_SIZE() back to macros (GH-23366)Victor Stinner2020-11-185-26/+35
| | | | | | | | | This change partically reverts commit ad3252bad905d41635bcbb4b76db30d570cf0087 and the commit fe2978b3b940fe2478335e3a2ca5ad22338cdf9c. Many third party C extension modules rely on the ability of using Py_TYPE() to set an object type: "Py_TYPE(obj) = type;" or to set an object type using: "Py_SIZE(obj) = size;".
* bpo-42336: Improve PCbuild batch files (GH-23275)Steve Dower2020-11-189-24/+60
|
* bpo-40998: Address compiler warnings found by ubsan (GH-20929)Christian Heimes2020-11-184-5/+13
| | | | | Signed-off-by: Christian Heimes <christian@python.org> Automerge-Triggered-By: GH:tiran
* bpo-1635741: Port _hashlib to multiphase initialization (GH-23358)Christian Heimes2020-11-182-36/+3
| | | Signed-off-by: Christian Heimes <christian@python.org>
* bpo-1635741: Port symtable module to multiphase initialization (GH-23361)Christian Heimes2020-11-182-45/+51
| | | Signed-off-by: Christian Heimes <christian@python.org>
* bpo-40998: Fix a refleak in create_filter() (GH-23365)Victor Stinner2020-11-181-3/+5
|
* bpo-42398: Fix "make regen-all" race condition (GH-23362)Victor Stinner2020-11-183-26/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix a race condition in "make regen-all" when make -jN option is used to run jobs in parallel. The clinic.py script now only use atomic write to write files. Moveover, generated files are now left unchanged if the content does not change, to not change the file modification time. The "make regen-all" command runs "make clinic" and "make regen-importlib" targets: * "make regen-importlib" builds object files (ex: Modules/_weakref.o) from source files (ex: Modules/_weakref.c) and clinic files (ex: Modules/clinic/_weakref.c.h) * "make clinic" always rewrites all clinic files (ex: Modules/clinic/_weakref.c.h) Since there is no dependency between "clinic" and "regen-importlib" Makefile targets, these two targets can be run in parallel. Moreover, half of clinic.py file writes are not atomic and so there is a race condition when "make regen-all" runs jobs in parallel using make -jN option (which can be passed in MAKEFLAGS environment variable). Fix clinic.py to make all file writes atomic: * Add write_file() function to ensure that all file writes are atomic: write into a temporary file and then use os.replace(). * Moreover, write_file() doesn't recreate or modify the file if the content does not change to avoid modifying the file modification file. * Update test_clinic to verify these assertions with a functional test. * Remove Clinic.force attribute which was no longer used, whereas Clinic.verify remains useful.
* bpo-41561: skip test_min_max_version_mismatch (GH-22308)Christian Heimes2020-11-182-0/+2
| | | | | skip test_min_max_version_mismatch when TLS 1.0 is not available Signed-off-by: Christian Heimes <christian@python.org>
* bpo-40656: Clean up detect_socket() (GH-20148)Erlend Egeberg Aasland2020-11-181-12/+10
|
* bpo-42395: Add aclosing to __all__ (GH-23356)Tom Gringauz2020-11-171-1/+1
| | | Automerge-Triggered-By: GH:asvetlov
* bpo-42396: Add a whatsnew entry about async contextlib.nullcontext (GH-23357)Tom Gringauz2020-11-171-0/+3
| | | Automerge-Triggered-By: GH:asvetlov
* bpo-41713: Port _signal module to multi-phase init (GH-23355)Victor Stinner2020-11-172-16/+19
| | | | | | Port the _signal extension module to the multi-phase initialization API (PEP 489). Co-Authored-By: Mohamed Koubaa <koubaa.m@gmail.com>
* bpo-41625: Skip os.splice() tests on AIX (GH-23354)Victor Stinner2020-11-171-0/+8
| | | | On AIX, splice() only works with a socket, whereas the test uses a pipe.
* bpo-41686: Move _Py_RestoreSignals() to signalmodule.c (GH-23353)Victor Stinner2020-11-172-23/+23
|
* Fix: Docstrings hidden by slots. (GH-23352)Julien Palard2020-11-171-15/+6
| | | Some `__slots__` where before the docstring, hiding them.
* bpo-41625: Add a guard for Linux for splice() constants in the os module ↵Pablo Galindo2020-11-171-1/+1
| | | | (GH-23350)
* bpo-41625: Specify that Linux >= 2.6.17 *and* glibc >= 2.5 are requir… ↵Pablo Galindo2020-11-171-1/+1
| | | | | (GH-23351) …ed for splice()
* bpo-42349: Compiler clean up. More yak-shaving for PEP 626. (GH-23267)Mark Shannon2020-11-177-4656/+4752
| | | Make sure that CFG from compiler front-end is correct. Be a bit more aggressive in the compiler back-end.
* bpo-41625: Add versionadded to os.splice() constants (GH-23340)Pablo Galindo2020-11-171-0/+1
|
* bpo-41686: Refactor signal_exec() (GH-23346)Victor Stinner2020-11-171-158/+125
| | | | | | * Add signal_add_constants() function and add ADD_INT_MACRO macro. * The Python SIGINT handler is now installed at the end of signal_exec(). * Use Py_NewRef().
* bpo-41686: Always create the SIGINT event on Windows (GH-23344)Victor Stinner2020-11-172-53/+91
| | | | | | | | | | | | | | bpo-41686, bpo-41713: On Windows, the SIGINT event, _PyOS_SigintEvent(), is now created even if Python is configured to not install signal handlers (PyConfig.install_signal_handlers=0 or Py_InitializeEx(0)). Changes: * Move global variables initialization from signal_exec() to _PySignal_Init() to clarify that they are global variables cleared by _PySignal_Fini(). * _PySignal_Fini() now closes sigint_event. * IntHandler is no longer a global variable.
* bpo-42264: Deprecate sqlite3.OptimizedUnicode (GH-23163)Erlend Egeberg Aasland2020-11-175-12/+26
|
* bpo-41713: Remove PyOS_InitInterrupts() function (GH-23342)Victor Stinner2020-11-176-40/+38
| | | | | | | Remove the undocumented PyOS_InitInterrupts() C function. * Rename PyOS_InitInterrupts() to _PySignal_Init(). It now installs other signal handlers, not only SIGINT. * Rename PyOS_FiniInterrupts() to _PySignal_Fini()
* bpo-40637: Don't test builtin PBKDF2 without builtin hashes (GH-20980)Christian Heimes2020-11-171-9/+18
| | | | | | | Skip testing of pure Python PBKDF2 when one or more builtin hash module is not available. Otherwise the import of hashlib prints noise on stderr. Signed-off-by: Christian Heimes <christian@python.org>
* bpo-41861, _sqlite3 : Add NEWS entry and rename variables (GH-23337)Erlend Egeberg Aasland2020-11-172-8/+10
|
* bpo-42345: Fix three issues with typing.Literal parameters (GH-23294)Yurii Karabas2020-11-174-23/+104
| | | | | | | Literal equality no longer depends on the order of arguments. Fix issue related to `typing.Literal` caching by adding `typed` parameter to `typing._tp_cache` function. Add deduplication of `typing.Literal` arguments.
* bpo-42381: Allow walrus in set literals and set comprehensions (GH-23332)Pablo Galindo2020-11-174-1124/+1014
| | | | | | | | | | | Currently walruses are not allowerd in set literals and set comprehensions: >>> {y := 4, 4**2, 3**3} File "<stdin>", line 1 {y := 4, 4**2, 3**3} ^ SyntaxError: invalid syntax but they should be allowed as well per PEP 572
* bpo-41625: Expose the splice() system call in the os module (GH-21947)Pablo Galindo2020-11-1710-78/+349
|
* Add GCC pragmas to silence compiler warning about ffi_prep_closure (GH-23327)Pablo Galindo2020-11-161-2/+9
|
* bpo-42120: Remove macro defining copysign to _copysign on Windows (GH-23326)Steve Dower2020-11-162-1/+1
|
* bpo-42316: Allow unparenthesized walrus operator in indexes (GH-23317)Lysandros Nikolaou2020-11-164-7/+29
|
* bpo-42374: Allow unparenthesized walrus in genexps (GH-23319)Lysandros Nikolaou2020-11-164-7/+18
| | | | | This fixes a regression that was introduced by the new parser. Automerge-Triggered-By: GH:lysnikolaou
* bpo-38506: Fix the Windows py.exe launcher's misordering of 3.10 (GH-18307)Zackery Spytz2020-11-162-5/+17
|
* bpo-40939: Document removal of the old parser in 3.10 whatsnew (GH-23321)Lysandros Nikolaou2020-11-161-0/+10
| | | Automerge-Triggered-By: GH:lysnikolaou
* bpo-42087: Remove support for AIX 5.3 and below (GH-22830)Kevin Adler2020-11-167-64/+23
| | | | | | As AIX 5.3 and below do not support thread_cputime, it was decided in https://bugs.python.org/issue40680 to require AIX 6.1 and above. This commit removes workarounds for — and references to — older, unsupported AIX versions.
* bpo-37205: time.time() cannot fail with fatal error (GH-23314)Victor Stinner2020-11-165-158/+228
| | | | | | | | | | | | | | | time.time(), time.perf_counter() and time.monotonic() functions can no longer fail with a Python fatal error, instead raise a regular Python exception on failure. Remove _PyTime_Init(): don't check system, monotonic and perf counter clocks at startup anymore. On error, _PyTime_GetSystemClock(), _PyTime_GetMonotonicClock() and _PyTime_GetPerfCounter() now silently ignore the error and return 0. They cannot fail with a Python fatal error anymore. Add py_mach_timebase_info() and win_perf_counter_frequency() sub-functions.
* bpo-42350: Fix Thread._reset_internal_locks() (GH-23268)Victor Stinner2020-11-163-2/+38
| | | | | Fix the threading.Thread class at fork: do nothing if the thread is already stopped (ex: fork called at Python exit). Previously, an error was logged in the child process.
* bpo-37205: time.perf_counter() and time.monotonic() are system-wide (GH-23284)Victor Stinner2020-11-163-21/+43
| | | | | | | time.perf_counter() on Windows and time.monotonic() on macOS are now system-wide. Previously, they used an offset computed at startup to reduce the precision loss caused by the float type. Use time.perf_counter_ns() and time.monotonic_ns() added in Python 3.7 to avoid this precision loss.
* bpo-42153 Fix link to IMAP documents in imaplib.rst (GH-23297)Yash Shete2020-11-162-3/+4
| | | The University of Washington stopped hosting the IMAP documents. Link to a rescued copy on GitHub.
* bpo-42332: Add weakref slot to types.GenericAlias (GH-23250)kj2020-11-163-38/+55
| | | Automerge-Triggered-By: GH:gvanrossum
* More updates to the descriptor howto guide (GH-23238)Raymond Hettinger2020-11-161-45/+62
|
* bpo-42317: Improve docs of typing.get_args concerning Union (GH-23254)Dominik11232020-11-161-0/+3
|
* bpo-42318: Fix support of non-BMP characters in Tkinter on macOS (GH-23281)Serhiy Storchaka2020-11-153-7/+94
|
* bpo-42351: Avoid error when opening header with non-UTF8 encoding (GH-23279)Ronald Oussoren2020-11-141-1/+1
| | | | grep_headers_for() would error out when a header contained text that cannot be interpreted as UTF-8.
* bpo-41832: Restore note about NULL in PyType_Slot.pfunc (GH-23243)Hai Shi2020-11-141-0/+2
|
* fix typo in ThreadedChildWatcher docs (GH-23277)Thomas Grainger2020-11-141-1/+1
|
* bpo-42131: Add PEP 451-related methods to zipimport (GH-23187)Brett Cannon2020-11-136-965/+1131
| | | | | Specifically, find_spec(), create_module(), and exec_module(). Co-authored-by: Nick Coghlan <ncoghlan@gmail.com>
* bpo-40754: Adds _testinternalcapi to Windows installer for test suite (GH-23271)Steve Dower2020-11-132-2/+3
|