summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* bpo-45185: enables `TestEnumerations` in `test_ssl` (GH-28330)Nikita Sobolev2021-09-152-8/+11
|
* bpo-45020: Freeze some of the modules imported during startup. (gh-28335)Eric Snow2021-09-1519-30/+6879
| | | | | | | Doing this provides significant performance gains for runtime startup (~15% with all the imported modules frozen). We don't yet freeze all the imported modules because there are a few hiccups in the build systems we need to sort out first. (See bpo-45186 and bpo-45188.) Note that in PR GH-28320 we added a command-line flag (-X frozen_modules=[on|off]) that allows users to opt out of (or into) using frozen modules. The default is still "off" but we will change it to "on" as soon as we can do it in a way that does not cause contributors pain. https://bugs.python.org/issue45020
* bpo-44786: Fix a warning in RE in c-analyzer (GH-28351)Serhiy Storchaka2021-09-152-2/+3
|
* bpo-45203: Cleanup stats gathering code for LOAD_METHOD (GH-28352)Mark Shannon2021-09-151-41/+39
|
* bpo-21302: Add _PyTime_AsNanoseconds() (GH-28350)Victor Stinner2021-09-154-166/+228
| | | | | | | | | | | | | | | | | Refactor pytime.c: * Add pytime_from_nanoseconds() and pytime_as_nanoseconds(), and use explicitly these functions * Add two empty lines between functions * PEP 7: add braces { ... } * C99: declare variables where they are set * Rename private functions to lowercase * Rename error_time_t_overflow() to pytime_time_t_overflow() * Rename win_perf_counter_frequency() to py_win_perf_counter_frequency() * py_get_monotonic_clock(): add an assertion to detect overflow when mach_absolute_time() unsigned uint64_t is casted to _PyTime_t (signed int64_t). _testcapi: use _PyTime_FromNanoseconds().
* bpo-45152: refactor the dis module to make handling of hasconst opcodes more ↵Irit Katriel2021-09-151-19/+35
| | | | generic (GH-28258)
* bpo-45193: Restore IDLE completion boxes on Ubuntu (GH-28343)Terry Jan Reedy2021-09-151-1/+1
| | | | | | The line that should not have been needed on macOS tk 8.6.8 but was, should not be a problem on Ubuntu, but is. It is not needed on macOS tk 8.6.11, installed with 3.10. Disable it but leave it for now in case some system needs it.
* bpo-45020: Don't test IDLE with frozen module. (GH-28344)Terry Jan Reedy2021-09-151-2/+2
| | | Otherwise, test would need special import.
* bpo-45020: Add -X frozen_modules=[on|off] to explicitly control use of ↵Eric Snow2021-09-1416-117/+359
| | | | | | | frozen modules. (gh-28320) Currently we freeze several modules into the runtime. For each of these modules it is essential to bootstrapping the runtime that they be frozen. Any other stdlib module that we later freeze into the runtime is not essential. We can just as well import from the .py file. This PR lets users explicitly choose which should be used, with the new "-X frozen_modules=[on|off]" CLI flag. The default is "off" for now. https://bugs.python.org/issue45020
* bpo-4356: Mention the new key arguments for the bisect module APIs in the ↵Pablo Galindo Salgado2021-09-141-0/+6
| | | | 3.10 What's new (GH-28339)
* bpo-45196: prevent unittest crash on address sanitizer builds (GH-28331)junyixie2021-09-142-3/+20
|
* closes bpo-45190: Update Unicode data to version 14.0.0. (GH-28336)Benjamin Peterson2021-09-1411-31934/+33027
|
* bpo-45195: Fix test_readline.test_nonascii() (GH-28329)Victor Stinner2021-09-142-1/+6
| | | | Fix test_readline.test_nonascii(): sometimes, the newline character is not written at the end, so don't expect it in the output.
* bpo-45156: Fixes inifite loop on unittest.mock.seal() (GH-28300)Nikita Sobolev2021-09-143-6/+70
| | | | | | Fixes infinite loop on unittest.mock.seal() of mocks created by unittest.create_autospec(). Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
* bpo-45168: change dis output to omit missing values rather than replacing ↵Irit Katriel2021-09-144-19/+28
| | | | them by their index (GH-28313)
* bpo-45152: Add HAS_CONST macro and get_const_value() function and use… ↵Irit Katriel2021-09-143-7/+53
| | | | (#28262)
* bpo-42135 Correct version slated for importlib.find_loader removal (GH-28312)Hugo van Kemenade2021-09-132-1/+4
| | | importlib.find_loader should also be slated for 3.12 like the others in GH-25169 and as documented in https://docs.python.org/3.11/whatsnew/3.10.html#deprecated.
* bpo-45019: Do some cleanup related to frozen modules. (gh-28319)Eric Snow2021-09-1312-137/+339
| | | | | There are a few things I missed in gh-27980. This is a follow-up that will make subsequent PRs cleaner. It includes fixes to tests and tools that reference the frozen modules. https://bugs.python.org/issue45019
* bpo-45173 Remove configparser deprecations (GH-28292)Hugo van Kemenade2021-09-135-94/+18
| | | | | | | In the configparser module, these have been deprecated since Python 3.2: * the SafeConfigParser class, * the filename property of the ParsingError class, * the readfp method of the ConfigParser class,
* bpo-21302: Update time.sleep() doc for clock_nanosleep() (GH-28311)Victor Stinner2021-09-132-19/+32
| | | | Clean-up also What's New in Python 3.11 doc: move entries to the correct sections.
* bpo-21302: Add clock_nanosleep() implementation for time.sleep() (GH-28111)Livius2021-09-135-5/+100
| | | | | | In Unix operating systems, time.sleep() now uses the clock_nanosleep() function, if available, which allows to sleep for an interval specified with nanosecond precision. Co-authored-by: Victor Stinner <vstinner@python.org>
* bpo-45181: Simplify loading sqlite3 tests (GH-28304)Serhiy Storchaka2021-09-1310-146/+14
| | | | | Use unittest discover instead of manually enumerating all test modules and classes. Also add support for filtering them by pattern.
* bpo-45182: Fix incorrect use of requires_zlib in test_bdist_rpm (GH-28305)Serhiy Storchaka2021-09-131-2/+2
| | | It is a decorator factory and should be always followed by "()".
* bpo-5846: Do not use obsolete unittest functions. (GH-28303)Serhiy Storchaka2021-09-1349-93/+80
| | | | Get rid of use of makeSuite() and findTestCases(). Also make test_math and test_threading_local discoverable.
* bpo-45126: Fix ref. leak in `sqlite3.Connection.__init__` (GH-28231)Erlend Egeberg Aasland2021-09-122-13/+49
|
* bpo-43413: Fix handling keyword arguments in subclasses of some buitin ↵Serhiy Storchaka2021-09-1226-67/+285
| | | | | | | | classes (GH-26456) * Constructors of subclasses of some buitin classes (e.g. tuple, list, frozenset) no longer accept arbitrary keyword arguments. * Subclass of set can now define a __new__() method with additional keyword parameters without overriding also __init__().
* bpo-44987: Fix typo whatsnew 3.11 (GH-28293)Dong-hee Na2021-09-111-1/+1
|
* bpo-44987: Speed up unicode normalization of ASCII strings (GH-28283)Dong-hee Na2021-09-113-0/+9
|
* bpo-35474: Fix mimetypes.guess_all_extensions() potentially mutating list ↵Serhiy Storchaka2021-09-113-8/+20
| | | | | | | (GH-28286) * Calling guess_all_extensions() with strict=False potentially mutated types_map_inv. * Mutating the result of guess_all_extensions() mutated types_map_inv.
* bpo-45163: Haiku build fix. (GH-28269)David CARLIER2021-09-113-2/+7
| | | | | | linkage issues mainly for shared libs and missing system library, also little nit into the signal extension as strsignal returns a constant in this platform.
* IDLE: adjust Python version in doc url for 3.10+ (GH-28228)giovanniwijaya2021-09-101-5/+7
| | | | | Expression 'python_version()[:3]' truncated '3.10.0' to '3.1' instead of '3.10'. Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-45144: use subTests in test_peepholer (GH-28247)Irit Katriel2021-09-101-43/+53
|
* bpo-9811: [doc] strftime handling of unsupported format specifiers is ↵Irit Katriel2021-09-101-1/+2
| | | | platform dependent (GH-28264)
* bpo-25894: Always report skipped and failed subtests separately (GH-28082)Serhiy Storchaka2021-09-103-49/+189
| | | | | | * In default mode output separate characters for skipped and failed subtests. * In verbose mode output separate lines (including description) for skipped and failed subtests. * In verbose mode output test description for errors in test cleanup.
* bpo-44964: Correct the note about the f_lasti field (GH-28208)Pablo Galindo Salgado2021-09-102-4/+4
|
* bpo-44219: Mention GH-28250 is a deadlock bugfix (GH-28261)Łukasz Langa2021-09-101-1/+2
|
* Fix typos in pep384_macrocheck.py (GH-28220)Ikko Ashimine2021-09-101-2/+2
| | | | Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
* bpo-45132: Fix the reStructuredText markup error. (GH-28270)Serhiy Storchaka2021-09-101-1/+1
|
* bpo-40563: Support pathlike objects on dbm/shelve (GH-21849)Henry-Joseph Audéoud2021-09-1014-68/+124
| | | | Co-authored-by: Hakan Çelik <hakancelik96@outlook.com>
* bpo-45024 and bpo-23864: Document how interface testing works with the ↵Raymond Hettinger2021-09-102-63/+168
| | | | collections ABCs (GH-28218)
* bpo-45067 - Verify the version of ncurses for extended color support feature ↵Senthil Kumaran2021-09-092-2/+7
| | | | | | | | | | | | | | usage. (GH-28260) * issue45067 - Fix _curses compilation in CentOS 7. Verify the version of ncurses for extended color support feature usage. The function extended_color_content was introduced in 2017. The ncurses-devel package in CentOS 7 had a older version ncurses resulted in compilation error. For compiling ncurses with extended color support, we verify the version of the ncurses library. Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* Fix minor typo in 3.10.rst (GH-28253)D.Lintin2021-09-091-1/+1
|
* bpo-44219: Release the GIL during isatty syscalls (GH-28250)Vincent Michel2021-09-093-2/+20
| | | | | | Release the GIL while performing isatty() system calls on arbitrary file descriptors. In particular, this affects os.isatty(), os.device_encoding() and io.TextIOWrapper. By extension, io.open() in text mode is also affected.
* bpo-45017: move opcode-related logic from modulefinder to dis (GH-28246)Irit Katriel2021-09-093-26/+76
|
* bpo-44860: Update test_sysconfig for posix_user platlib (GH-28235)Victor Stinner2021-09-093-1/+14
| | | | Update test_sysconfig.test_user_similar() for the posix_user scheme: "platlib" doesn't use sys.platlibdir.
* Specify default order in memoryview.tobytes() docs (GH-27936)andrei kulakov2021-09-091-1/+1
|
* Fix small mistake in fileinput documentation (GH-28241)Jean-Abou-Samra2021-09-091-1/+1
|
* bpo-20499: Rounding error in statistics.pvariance (GH-28230)Raymond Hettinger2021-09-093-56/+51
|
* bpo-38371: Remove deprecated `tkinter` split() method (GH-28237)Erlend Egeberg Aasland2021-09-085-264/+6
|
* bpo-44340: Update whatsnews for ThinLTO (GH-28229)Dong-hee Na2021-09-081-0/+3
| | | Co-authored-by: Łukasz Langa <lukasz@langa.pl>