summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* bpo-45355: Use sizeof(_Py_CODEUNIT) instead of literal 2 for the size of the ↵Serhiy Storchaka2021-10-035-15/+15
| | | | code unit (GH-28711)
* Remove news entry without bpo issue number. (GH-28703)Julien Palard2021-10-031-1/+0
| | | | | I'm just removing an erroneous NEWS entry I previously merged. Automerge-Triggered-By: GH:JulienPalard
* Remove trailing spaces. (GH-28706)Serhiy Storchaka2021-10-035-6/+6
|
* Fix spelling error in comment (GH-28696)Raymond Hettinger2021-10-021-1/+1
|
* bpo-45346: Keep docs consistent regarding true and false values (GH-28697)Raymond Hettinger2021-10-023-6/+6
|
* bpo-45329: Fix freed memory access in pyexpat.c (GH-28649)TAGAMI Yukihiro2021-10-022-1/+3
|
* Makefile: Fix missing slashes (GH-28659)native-api2021-10-022-2/+3
|
* bpo-45341: Replace 'Packaging' with 'Package' in "Python P... Index" (#28687)Terry Jan Reedy2021-10-022-7/+7
| | | pypi.org " The Python Package Index (PyPI) ...
* bpo-44687: Ensure BufferedReader objects with unread buffers can peek even ↵AngstyDuck2021-10-012-3/+6
| | | | when the underlying file is closed (GH-28457)
* Fix a couple of compiler warnings. (GH-28677)Mark Shannon2021-10-011-2/+2
|
* bpo-45332: Fix broken Decimal test and benchmark (GH-28680)Dong-hee Na2021-10-013-6/+3
|
* hashlib: Fix old message about unicode objects. (GH-28653)Julien Palard2021-10-011-1/+1
|
* sqlite3: Modernize documentation around unicode and bytes. (GH-28652)Julien Palard2021-10-012-4/+4
|
* bpo-41710: Add private _PyDeadline_Get() function (GH-28674)Victor Stinner2021-10-0111-108/+176
| | | | | | | | Add a private C API for deadlines: add _PyDeadline_Init() and _PyDeadline_Get() functions. * Add _PyTime_Add() and _PyTime_Mul() functions which compute t1+t2 and t1*t2 and clamp the result on overflow. * _PyTime_MulDiv() now uses _PyTime_Add() and _PyTime_Mul().
* bpo-41710: gc_collect_main() uses _PyTime_GetPerfCounter() (GH-28676)Victor Stinner2021-10-011-2/+2
| | | | | | | | | If the DEBUG_STATS debug flag is set, gc_collect_main() now uses _PyTime_GetPerfCounter() instead of _PyTime_GetMonotonicClock() to measure the elapsed time. On Windows, _PyTime_GetMonotonicClock() only has a resolution of 15.6 ms, whereas _PyTime_GetPerfCounter() is closer to a resolution of 100 ns.
* bpo-41710: Fix PY_TIMEOUT_MAX on Windows (GH-28673)Victor Stinner2021-10-013-13/+10
| | | | | | | | | | WaitForSingleObject() accepts timeout in milliseconds in the range [0; 0xFFFFFFFE] (DWORD type). INFINITE value (0xFFFFFFFF) means no timeout. 0xFFFFFFFE milliseconds is around 49.7 days. PY_TIMEOUT_MAX is (0xFFFFFFFE * 1000) milliseconds on Windows, around 49.7 days. Partially revert commit 37b8294d6295ca12553fd7c98778be71d24f4b24.
* bpo-45125: Improves pickling docs and tests for `shared_memory` (GH-28294)Nikita Sobolev2021-10-013-31/+133
|
* Revert "Revert "bpo-45229: Make datetime tests discoverable (GH-28615)" ↵Serhiy Storchaka2021-10-011-47/+45
| | | | | (GH-28650)" (GH-28667) This reverts commit b07fddd527efe67174ce6b0fdbe8dac390b16e4e.
* bpo-45310: Fix parrallel shared memory tests (GH-28661)Serhiy Storchaka2021-10-011-16/+24
| | | | | | Add a PID to names of POSIX shared memory objects to allow running multiprocessing tests (test_multiprocessing_fork, test_multiprocessing_spawn, etc) in parallel.
* bpo-41710: PyThread_acquire_lock_timed() uses sem_clockwait() (GH-28662)Victor Stinner2021-10-016-72/+160
| | | | | | | | | On Unix, if the sem_clockwait() function is available in the C library (glibc 2.30 and newer), the threading.Lock.acquire() method now uses the monotonic clock (time.CLOCK_MONOTONIC) for the timeout, rather than using the system clock (time.CLOCK_REALTIME), to not be affected by system clock changes. configure now checks if the sem_clockwait() function is available.
* Install the __phello__ package too. (#28665)Eric Snow2021-10-011-1/+2
| | | | | I broke some buildbots by not adding __phello__ to the list of installed packages. https://bugs.python.org/issue45020
* bpo-45020: Add more test cases for frozen modules. (gh-28664)Eric Snow2021-10-0113-24/+205
| | | | | I've added a number of test-only modules. Some of those cases are covered by the recently frozen stdlib modules (and some will be once we add encodings back in). However, I figured we'd play it safe by having a set of modules guaranteed to be there during tests. https://bugs.python.org/issue45020
* bpo-40173: Fix test.support.import_helper.import_fresh_module() (GH-28654)Serhiy Storchaka2021-09-304-52/+32
| | | | | | | | | | | | * Work correctly if an additional fresh module imports other additional fresh module which imports a blocked module. * Raises ImportError if the specified module cannot be imported while all additional fresh modules are successfully imported. * Support blocking packages. * Always restore the import state of fresh and blocked modules and their submodules. * Fix test_decimal and test_xml_etree which depended on an undesired side effect of import_fresh_module().
* Revert "bpo-45229: Make datetime tests discoverable (GH-28615)" (GH-28650)Pablo Galindo Salgado2021-09-301-45/+47
| | | This reverts commit d441437ee71ae174c008c23308b749b91020ba77.
* bpo-41710: Document _PyTime_t API in pytime.h (GH-28647)Victor Stinner2021-09-301-0/+41
|
* bpo-41710: PyThread_acquire_lock_timed() clamps the timout (GH-28643)Victor Stinner2021-09-309-39/+67
| | | | | | | | | | | | | | | | | | | PyThread_acquire_lock_timed() now clamps the timeout into the [_PyTime_MIN; _PyTime_MAX] range (_PyTime_t type) if it is too large, rather than calling Py_FatalError() which aborts the process. PyThread_acquire_lock_timed() no longer uses MICROSECONDS_TO_TIMESPEC() to compute sem_timedwait() argument, but _PyTime_GetSystemClock() and _PyTime_AsTimespec_truncate(). Fix _thread.TIMEOUT_MAX value on Windows: the maximum timeout is 0x7FFFFFFF milliseconds (around 24.9 days), not 0xFFFFFFFF milliseconds (around 49.7 days). Set PY_TIMEOUT_MAX to 0x7FFFFFFF milliseconds, rather than 0xFFFFFFFF milliseconds. Fix PY_TIMEOUT_MAX overflow test: replace (us >= PY_TIMEOUT_MAX) with (us > PY_TIMEOUT_MAX).
* Fix EncodingWarning in freeze_modules. (GH-28591)Inada Naoki2021-09-301-4/+4
|
* bpo-41710: Fix building pytime.c on Windows (GH-28644)Victor Stinner2021-09-301-5/+5
|
* bpo-41710: Add pytime_add() and pytime_mul() (GH-28642)Victor Stinner2021-09-302-102/+101
| | | | | | Add pytime_add() and pytime_mul() functions to pytime.c to compute t+t2 and t*k with clamping to [_PyTime_MIN; _PyTime_MAX]. Fix pytime.h: _PyTime_FromTimeval() is not implemented on Windows.
* bpo-41710: Add _PyTime_AsTimespec_clamp() (GH-28629)Victor Stinner2021-09-308-91/+269
| | | | | | | | | | | | | | | Add the _PyTime_AsTimespec_clamp() function: similar to _PyTime_AsTimespec(), but clamp to _PyTime_t min/max and don't raise an exception. PyThread_acquire_lock_timed() now uses _PyTime_AsTimespec_clamp() to remove the Py_UNREACHABLE() code path. * Add _PyTime_AsTime_t() function. * Add PY_TIME_T_MIN and PY_TIME_T_MAX constants. * Replace _PyTime_AsTimeval_noraise() with _PyTime_AsTimeval_clamp(). * Add pytime_divide_round_up() function. * Fix integer overflow in pytime_divide(). * Add pytime_divmod() function.
* bpo-43753: _operator.is_() uses Py_Is() (GH-28641)Victor Stinner2021-09-291-4/+2
|
* bpo-45229: Make datetime tests discoverable (GH-28615)Serhiy Storchaka2021-09-291-47/+45
|
* bpo-45020: Do not freeze <pkg>/__init__.py twice. (gh-28635)Eric Snow2021-09-291-0/+7
| | | | | Currently we're freezing the __init__.py twice, duplicating the built data unnecessarily With this change we do it once. There is no change in runtime behavior. https://bugs.python.org/issue45020
* [typo] s/libexpact/libexpat/ in setup.py (GH-28624)Łukasz Langa2021-09-291-1/+1
|
* [typo] Fix threading.Barrier comment that used confusing punctuation (GH-28623)Łukasz Langa2021-09-291-1/+1
| | | | | Removed extra comma in comment that indicates state of a `Barrier` as it was confusing and breaking the flow while reading. Co-authored-by: Priyank <5903604+cpriyank@users.noreply.github.com>
* bpo-44394: Ensure libexpat is linked against libm (GH-28617)Pablo Galindo Salgado2021-09-291-1/+3
|
* Fix doctest doc examples for syntax errors (GH-28486)andrei kulakov2021-09-291-11/+10
| | | | | | | | | * fix doctest doc examples for syntax errors * updated examples to use TypeErrors * fixed first sentence * unneeded comma
* bpo-45291: Explicitly set --libdir=lib when configure OpenSSL (GH-28566)zhanpon2021-09-291-0/+1
|
* bpo-24391: Better reprs for threading objects. (GH-20534)Serhiy Storchaka2021-09-293-0/+61
| | | | Add reprs for Semaphore, BoundedSemaphore, Event, and Barrier.
* bpo-39039: tarfile raises descriptive exception from zlib.error (GH-27766)Jack DeVries2021-09-293-0/+25
| | | | | | | * during tarfile parsing, a zlib error indicates invalid data * tarfile.open now raises a descriptive exception from the zlib error * this makes it clear to the user that they may be trying to open a corrupted tar file
* [docs] Use full names for time units (GH-28611)Serhiy Storchaka2021-09-2913-20/+21
| | | | Use "second", "millisecond", "microsecond", "nanosecond" instead of "sec", "ms", "msec", "us", "ns", etc.
* bpo-45269: test wrong `markers` type to `c_make_encoder` (GH-28540)Nikita Sobolev2021-09-282-0/+10
|
* [docs] Improve the markup of powers (GH-28598)Serhiy Storchaka2021-09-2818-32/+32
|
* bpo-45211: Remember the stdlib dir during startup. (gh-28586)Eric Snow2021-09-2810-3/+93
| | | | | During runtime startup we figure out the stdlib dir but currently throw that information away. This change preserves it and exposes it via PyConfig.stdlib_dir, _Py_GetStdlibDir(), and sys._stdlib_dir. https://bugs.python.org/issue45211
* bpo-35606: Fix math.prod tests using 'start' as keyword parameter (GH-28595)Pablo Galindo Salgado2021-09-282-14/+15
|
* bpo-45296: Fix exit/quit message on Windows (GH-28577)Terry Jan Reedy2021-09-283-0/+16
| | | | IDLE recognizes Ctrl-D, as on other systems, instead of Ctrl-Z.
* Optimized code format (GH-28599)Rajendra arora2021-09-281-3/+1
| | | Automerge-Triggered-By: GH:pablogsal
* [doc] fix minor typo for argparse (GH-28451)Louis Sautier2021-09-281-1/+1
| | | "A JSONDecodeError" instead of "An JSONDecodeError".
* Fixed typo in "decclarations" (GH-28578)Rajendra arora2021-09-281-1/+1
|
* Fix typo in whatsnew: "ns" is 10^-9 secs and "us" is 10^-6 secs. (GH-28565)Jörn Heissler2021-09-281-2/+2
|