summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* bpo-42038: fix description of returned list of lines (GH-27529)andrei kulakov2021-09-171-6/+6
|
* [doc] Add a missing apostrophe in a code example in venv.rst (GH-28391)Arkaprabha Chakraborty2021-09-171-1/+1
|
* bpo-45116: Py_DEBUG ignores Py_ALWAYS_INLINE (GH-28419)Victor Stinner2021-09-172-1/+13
| | | | If the Py_DEBUG macro is defined, the Py_ALWAYS_INLINE macro does nothing.
* bpo-45187: Fix dangling threads in test_socket.CreateServerFunctionalTest ↵Serhiy Storchaka2021-09-171-9/+3
| | | | (GH-28422)
* bpo-45020: Fix build out of source tree (GH-28410)Victor Stinner2021-09-172-17/+23
| | | | | | * Makefile.pre.in: Add $(srcdir) when needed, remove it when it was used by mistake. * freeze_modules.py tool uses ./Programs/_freeze_module if the executable doesn't exist in the source tree.
* bpo-45231: update_file.py preserves end of line (GH-28411)Victor Stinner2021-09-171-1/+13
| | | | | | The update_file.py tool now preserves the end of line of the updated file. Fix the "make regen-frozen" command: it no longer changes the end of line of PCbuild/ files on Unix. Git changes the end of line depending on the platform.
* Remove compatibility check for Python versions below 2.2. (GH-28314)Omer Katz2021-09-171-5/+4
| | | | | | `os.path.realpath()` already exists in all our supported Python versions. There's no longer a need to check if it exists or not. Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* bpo-45212: Add a comment for time.sleep() in tests (GH-28414)Serhiy Storchaka2021-09-171-0/+1
| | | | Co-authored-by: Victor Stinner <vstinner@python.org>
* bpo-45116: Add the Py_ALWAYS_INLINE macro (GH-28390)Victor Stinner2021-09-173-0/+44
| | | | | Add the Py_ALWAYS_INLINE macro to ask the compiler to always inline a static inline function. The compiler can ignore it and decides to not inline the function.
* bpo-45219: Factor dictkey indexing (GH-28389)Mark Shannon2021-09-173-63/+106
|
* bpo-45217: adds note that `allow_no_value` in `configparser` is optional ↵Nikita Sobolev2021-09-171-1/+2
| | | | | (GH-28396) Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* bpo-45107: Make LOAD_METHOD_CLASS safer and faster, clean up comments (GH-28177)Ken Jin2021-09-172-15/+9
| | | | | * Improve comments * Check cls is a type, remove dict calculation
* bpo-45162: Remove many old deprecated unittest features (GH-28268)Serhiy Storchaka2021-09-1714-373/+61
| | | | | | | * "fail*" and "assert*" aliases of TestCase methods. * Broken from start TestCase method assertDictContainsSubset(). * Ignored TestLoader.loadTestsFromModule() parameter use_load_tests. * Old alias _TextTestResult of TextTestResult.
* bpo-45187: Collect test_socket tests using unittest (GH-28317)Serhiy Storchaka2021-09-171-79/+5
| | | | | Previously, test classes ISOTPTest, J1939Test, BasicUDPLITETest and UDPLITETimeoutTest were not included in the list of tests and were not run by regrtest.
* bpo-45203: fix compiler warnings (GH-28357)Ken Jin2021-09-171-0/+1
| | | Co-authored-by: Mark Shannon <mark@hotpy.org>
* bpo-5846: Fix deprecations for obsolete unittest functions and add tests. ↵Serhiy Storchaka2021-09-173-30/+69
| | | | (GH-28382)
* bpo-45228: Fix stack buffer overflow in parsing J1939 address (GH-28404)Serhiy Storchaka2021-09-172-8/+9
|
* Fix typo and add a module prefix (GH-28401)Raymond Hettinger2021-09-171-2/+2
|
* bpo-45020: Drop the frozen .h files from the repo. (gh-28392)Eric Snow2021-09-1617-14455/+85
| | | | | The main advantage is that the files will no longer show up in diffs and PRs. That means, for a PR, the number of files / lines changed will more clearly reflect the actual change. (This is essentially an un-revert of gh-28375.) https://bugs.python.org/issue45020
* bpo-45225: use map function instead of genexpr in capwords (GH-28342)speedrun-program2021-09-162-1/+2
|
* bpo-45220: Avoid automatically selecting the Windows 11 SDK preview when ↵Steve Dower2021-09-162-0/+6
| | | | building (GH-28393)
* bpo-45212: Fix dangling threads in skipped tests in test_socket (GH-28361)Serhiy Storchaka2021-09-161-11/+8
| | | | | | tearDown() is not called if setUp() raises an exception (including SkipTest). addCleanup() should be used for guaranteed execution of the cleanup code.
* docs: correct references to __isub__ etc (GH-28297)David Hewitt2021-09-161-132/+132
|
* bpo-45020: Revert "Drop the frozen .h files from the repo." (gh-28380)Eric Snow2021-09-1615-69/+14417
| | | | | gh-28375 broke one of the buildbots. Until I figure out why, I'm rolling the change back. https://bugs.python.org/issue45020
* bpo-45155 : Default arguments for int.to_bytes(length=1, ↵Barry Warsaw2021-09-166-65/+127
| | | | | | | byteorder=sys.byteorder) (#28265) Add default arguments for int.to_bytes() and int.from_bytes() Co-authored-by: Brandt Bucher <brandtbucher@gmail.com>
* bpo-45020: Drop the frozen .h files from the repo. (gh-28375)Eric Snow2021-09-1616-14437/+71
| | | | | The main advantage is that the files will no longer show up in diffs and PRs. That means, for a PR, the number of files / lines changed will more clearly reflect the actual change. https://bugs.python.org/issue45020
* bpo-39710: Remove Python 2-specific sentence from calendar documentation ↵Hubert Badocha2021-09-152-10/+3
| | | | (GH-26985)
* bpo-45019: Clean up the frozen __hello__ module. (gh-28374)Eric Snow2021-09-1512-50/+76
| | | | | Here's one more small cleanup that should have been in PR gh-28319. We eliminate stdout side-effects from importing the frozen __hello__ module, and update tests accordingly. We also move the module's source file into Lib/ from Toos/freeze/flag.py. https://bugs.python.org/issue45019
* Fix typo in Lib/sqlite3/test/test_types.py (GH-28226)Konstantin Popov2021-09-151-1/+1
| | | | | preceeding -> preceding Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* bpo-45019: Silence a warning in test_ctypes. (gh-28362)Eric Snow2021-09-151-2/+2
| | | | | This was missed in PR gh-28319. https://bugs.python.org/issue45019
* bpo-45089: Improve sqlite3 trace callback docs (GH-28238)Erlend Egeberg Aasland2021-09-151-5/+13
| | | | - Add link to str object and sqlite3 transaction control - Mention that exceptions are not propagated
* bpo-5846: Deprecate obsolete methods in `unittest` (GH-28299)Erlend Egeberg Aasland2021-09-154-4/+69
| | | Deprecate makeSuite, findTestCases, and getTestCaseNames. Scheduled for removal in Python 3.13.
* bpo-45193: News for IDLE PR_28343 (GH-28348)Terry Jan Reedy2021-09-151-0/+1
|
* bpo-45167: Fix deepcopying of GenericAlias (GH-28324)Serhiy Storchaka2021-09-153-5/+28
|
* bpo-45207: Make test_gdb.test_pycfunction() quiet (GH-28355)Victor Stinner2021-09-151-3/+11
| | | | | | test_gdb.test_pycfunction() now ignores gdb stderr, it no longer logs messages like: Function "meth_varargs" not defined.
* bpo-45205: Make test_compileall quiet (GH-28356)Victor Stinner2021-09-151-2/+4
| | | | | Make test_compileall quiet: test_year_2038_mtime_compilation() and test_larger_than_32_bit_times() of test_compileall no longer log "Compiling ..." messages to stdout.
* bpo-45208: Make test_pdb.test_checkline_is_not_executable() quiet (GH-28354)Victor Stinner2021-09-151-13/+14
| | | | | | test_pdb.test_checkline_is_not_executable() no longer writes output to stdout. Remove also unused variables 'f'.
* bpo-45204: Reduce verbosity of test_peg_generator (GH-28360)Pablo Galindo Salgado2021-09-151-10/+10
|
* bpo-45188: Windows now regenerates frozen modules at the start of build ↵Steve Dower2021-09-157-68/+278
| | | | | | | instead of late (GH-28322) This will enable us to drop the frozen module header files from the repository. It does currently cause many source files to be built twice, which just takes more time. For whoever comes to fix this in the future, the files shared between freeze_module and pythoncore should be put into a static library that is consumed by both.
* 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
|