Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | | bpo-37955: correct mock.patch docs with respect to the returned type (GH-15521) | Paulo Henrique Silva | 2020-01-25 | 2 | -2/+4 | |
| | | ||||||
* | | bpo-39082: Allow AsyncMock to correctly patch static/class methods (GH-18116) | Matthew Kokotovich | 2020-01-25 | 3 | -0/+26 | |
| | | ||||||
* | | bpo-39388: IDLE: Fix bug when cancelling out of configdialog (GH-18068) | Cheryl Sabella | 2020-01-25 | 4 | -8/+19 | |
|/ | | | | Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> | |||||
* | bpo-39430: Fix race condition in lazy imports in tarfile. (GH-18161) | Serhiy Storchaka | 2020-01-24 | 2 | -10/+9 | |
| | | | Use `from ... import ...` to ensure module is fully loaded before accessing its attributes. | |||||
* | bpo-38631: Avoid Py_FatalError() in GC collect() (GH-18164) | Victor Stinner | 2020-01-24 | 1 | -7/+1 | |
| | | | | | | | collect() should not get an exception, but it does, logging the exception is enough. Override sys.unraisablehook to decide how to handle unraisable exceptions. Py_FatalError() should be avoided whenever possible. | |||||
* | bpo-39390 shutil: fix argument types for ignore callback (GH-18122) | mbarkhau | 2020-01-24 | 3 | -1/+45 | |
| | ||||||
* | bpo-38473: Handle autospecced functions and methods used with attach_mock ↵ | Karthikeyan Singaravelan | 2020-01-24 | 3 | -0/+35 | |
| | | | | (GH-16784) | |||||
* | bpo-39395: putenv() and unsetenv() always available (GH-18135) | Victor Stinner | 2020-01-24 | 12 | -154/+52 | |
| | | | | | | | | The os.putenv() and os.unsetenv() functions are now always available. On non-Windows platforms, Python now requires setenv() and unsetenv() functions to build. Remove putenv_dict from posixmodule.c: it's not longer needed. | |||||
* | bpo-39413: Implement os.unsetenv() on Windows (GH-18163) | Victor Stinner | 2020-01-24 | 6 | -49/+150 | |
| | | | The os.unsetenv() function is now also available on Windows. | |||||
* | bpo-39361: Document the removal of PyTypeObject.tp_print (GH-18125) | Ammar Askar | 2020-01-24 | 1 | -0/+5 | |
| | ||||||
* | bpo-39426: Fix outdated default and highest protocols in docs (GH-18154) | Mark Dickinson | 2020-01-24 | 3 | -19/+21 | |
| | | | | | | Some portions of the pickle documentation hadn't been updated for the pickle protocol changes in Python 3.8 (new protocol 5, default protocol 4). This PR fixes those docs. https://bugs.python.org/issue39426 | |||||
* | bpo-39429: Add a new "Python Development Mode" doc page (GH-18132) | Victor Stinner | 2020-01-24 | 13 | -49/+268 | |
| | ||||||
* | Fix `mock.patch.dict` to be stopped with `mock.patch.stopall` (#17606) | Mario Corchero | 2020-01-24 | 3 | -2/+69 | |
| | | | | | As the function was not registering in the active patches, the mocks started by `mock.patch.dict` were not being stopped when `mock.patch.stopall` was being called. | |||||
* | bpo-24928: Add test case for patch.dict using OrderedDict (GH -11437) | Emmanuel Arias | 2020-01-24 | 1 | -0/+20 | |
| | | | | | * add test for path.dict using OrderedDict Co-authored-by: Yu Tomita nekobon@users.noreply.github.com | |||||
* | bpo-17005: Minor improvements to the documentation of TopologicalSorter ↵ | Pablo Galindo | 2020-01-23 | 1 | -75/+67 | |
| | | | | (GH-18155) | |||||
* | bpo-39431: Also mention nonlocal in assignment quirk (GH-17375) | Shanavas M | 2020-01-23 | 1 | -4/+4 | |
| | ||||||
* | bpo-17005: Add a class to perform topological sorting to the standard ↵ | Pablo Galindo | 2020-01-23 | 6 | -3/+738 | |
| | | | | | library (GH-11583) Co-Authored-By: Tim Peters <tim.peters@gmail.com> | |||||
* | bpo-39421: Fix posible crash in heapq with custom comparison operators ↵ | Pablo Galindo | 2020-01-23 | 3 | -9/+59 | |
| | | | | | | | | | | (GH-18118) * bpo-39421: Fix posible crash in heapq with custom comparison operators * fixup! bpo-39421: Fix posible crash in heapq with custom comparison operators * fixup! fixup! bpo-39421: Fix posible crash in heapq with custom comparison operators | |||||
* | bpo-39320: Handle unpacking of *values in compiler (GH-17984) | Mark Shannon | 2020-01-23 | 10 | -2347/+2336 | |
| | | | | | | | | * Add three new bytecodes: LIST_TO_TUPLE, LIST_EXTEND, SET_UPDATE. Use them to implement star unpacking expressions. * Remove four bytecodes BUILD_LIST_UNPACK, BUILD_TUPLE_UNPACK, BUILD_SET_UNPACK and BUILD_TUPLE_UNPACK_WITH_CALL opcodes as they are now unused. * Update magic number and dis.rst for new bytecodes. | |||||
* | bpo-32989: IDLE - remove unneeded parameter (GH-18138) | Terry Jan Reedy | 2020-01-23 | 2 | -2/+3 | |
| | | | | | IDLE does not pass a non-default _synchre in any of its calls to pyparse.find_good_parse_start. | |||||
* | bpo-39050: The Help button in IDLE's config menu works again (GH-17611) | Zackery Spytz | 2020-01-23 | 4 | -1/+15 | |
| | | | | Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> | |||||
* | bpo-29435: Allow is_tarfile to take a filelike obj (GH-18090) | William Woodruff | 2020-01-23 | 5 | -2/+45 | |
| | | | `is_tarfile()` now supports `name` being a file or file-like object. | |||||
* | bpo-39427: Document -X opt options in the CLI --help and the man page (GH-18131) | Pablo Galindo | 2020-01-23 | 3 | -2/+73 | |
| | | | | | | | https://bugs.python.org/issue39427 Automerge-Triggered-By: @pablogsal | |||||
* | bpo-39336: Allow packages to not let their child modules be set on them (#18006) | Dino Viehland | 2020-01-23 | 6 | -338/+379 | |
| | | | | | * bpo-39336: Allow setattr to fail on modules which aren't assignable When attaching a child module to a package if the object in sys.modules raises an AttributeError (e.g. because it is immutable) it causes the whole import to fail. This now allows immutable packages to exist and an ImportWarning is reported and the AttributeError exception is ignored. | |||||
* | bpo-35182: fix communicate() crash after child closes its pipes (GH-17020) ↵ | Alex Rebert | 2020-01-22 | 3 | -2/+16 | |
| | | | | | | | | | (GH-18117) When communicate() is called in a loop, it crashes when the child process has already closed any piped standard stream, but still continues to be running Co-authored-by: Andriy Maletsky <andriy.maletsky@gmail.com> | |||||
* | bpo-39366: Remove xpath() and xgtitle() methods of NNTP (GH-18035) | Dong-hee Na | 2020-01-22 | 4 | -66/+9 | |
| | ||||||
* | bpo-39406: Implement os.putenv() with setenv() if available (GH-18128) | Victor Stinner | 2020-01-22 | 6 | -38/+35 | |
| | | | | | If setenv() C function is available, os.putenv() is now implemented with setenv() instead of putenv(), so Python doesn't have to handle the environment variable memory. | |||||
* | bpo-39406: os.putenv() avoids putenv_dict on Windows (GH-18126) | Victor Stinner | 2020-01-22 | 1 | -2/+6 | |
| | | | | Windows: _wputenv(env) copies the *env* string and doesn't require the caller to manage the variable memory. | |||||
* | Revert "bpo-39413: Implement os.unsetenv() on Windows (GH-18104)" (GH-18124) | Victor Stinner | 2020-01-22 | 6 | -94/+12 | |
| | | | This reverts commit 56cd3710a1ea3ba872d345ea1bebc86ed08bc8b8. | |||||
* | bpo-39353: Deprecate the binhex module (GH-18025) | Victor Stinner | 2020-01-22 | 9 | -25/+120 | |
| | | | | | | | | Deprecate binhex4 and hexbin4 standards. Deprecate the binhex module and the following binascii functions: * b2a_hqx(), a2b_hqx() * rlecode_hqx(), rledecode_hqx() * crc_hqx() | |||||
* | bpo-39425: Fix list.count performance regression (GH-18119) | Dong-hee Na | 2020-01-22 | 1 | -0/+4 | |
| | | | | | | | https://bugs.python.org/issue39425 Automerge-Triggered-By: @pablogsal | |||||
* | bpo-39377: json: Update doc about the encoding option. (GH-18076) | Inada Naoki | 2020-01-22 | 2 | -8/+11 | |
| | | | | Co-authored-by: Kyle Stanley <aeros167@gmail.com> | |||||
* | closes bpo-39415: Remove unused codes from longobject.c complexobject.c ↵ | Dong-hee Na | 2020-01-22 | 3 | -68/+0 | |
| | | | | floatobject.c. (GH-18105) | |||||
* | PyLong_AsLongLong() docs should say 'long long' (#18082) | Keith Erskine | 2020-01-21 | 1 | -1/+1 | |
| | ||||||
* | bpo-39406: Add PY_PUTENV_DICT macro to posixmodule.c (GH-18106) | Victor Stinner | 2020-01-21 | 1 | -15/+37 | |
| | | | Rename posix_putenv_garbage to putenv_dict. | |||||
* | bpo-39413: Implement os.unsetenv() on Windows (GH-18104) | Victor Stinner | 2020-01-21 | 6 | -12/+92 | |
| | | | | | The os.unsetenv() function is now also available on Windows. It is implemented with SetEnvironmentVariableW(name, NULL). | |||||
* | Move test_math tests (GH-18098) | Victor Stinner | 2020-01-21 | 1 | -148/+148 | |
| | | | | | testPerm() and testComb() belong to MathTests, not to IsCloseTests(). test_nextafter() and test_ulp() now use assertIsNaN(). | |||||
* | bpo-33387: Fix compiler warning in frame_block_unwind() (GH-18099) | Victor Stinner | 2020-01-21 | 1 | -1/+1 | |
| | | | | | | Replace int with intptr_t to fix the warning: objects\frameobject.c(341): warning C4244: 'initializing': conversion from '__int64' to 'int', possible loss of data | |||||
* | bpo-39389: gzip: fix compression level metadata (GH-18077) | William Chargin | 2020-01-21 | 3 | -3/+31 | |
| | | | | | | As described in RFC 1952, section 2.3.1, the XFL (eXtra FLags) byte of a gzip member header should indicate whether the DEFLATE algorithm was tuned for speed or compression ratio. Prior to this patch, archives emitted by the `gzip` module always indicated maximum compression. | |||||
* | bpo-39396: Fix math.nextafter(-0.0, +0.0) on AIX 7.1 (GH-18094) | Victor Stinner | 2020-01-21 | 3 | -79/+86 | |
| | | | | Move also math.nextafter() on math.ulp() tests from IsCloseTests to MathTests. | |||||
* | bpo-32989: IDLE - fix bad editor call of pyparse method (GH-5968) | Cheryl Sabella | 2020-01-21 | 6 | -39/+154 | |
| | | | | | | | | Fix comments and add tests for editor newline_and_indent_event method. Remove unused None default for function parameter of pyparse find_good_parse_start method and code triggered by that default. Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> | |||||
* | improve the documentation of the LOAD_METHOD and CALL_METHOD (GH-18079) | Carl Friedrich Bolz-Tereick | 2020-01-21 | 1 | -8/+10 | |
| | ||||||
* | bpo-39383: Mention Darwin as a potential value for platform.system() (GH-18054) | Peter Bittner | 2020-01-20 | 1 | -3/+2 | |
| | ||||||
* | bpo-39386: Prevent double awaiting of async iterator (GH-18081) | Andrew Svetlov | 2020-01-20 | 3 | -4/+49 | |
| | ||||||
* | Fix asyncio.get_event_loop() documentation (GH-18051) | Andrew Svetlov | 2020-01-20 | 2 | -2/+6 | |
| | | | Mention that the function implicitly creates new event loop only if called from the main thread. | |||||
* | bpo-35134: Migrate frameobject.h contents to cpython/frameobject.h (GH-18052) | Nick Coghlan | 2020-01-20 | 2 | -74/+95 | |
| | ||||||
* | bpo-39377: json: Remove the encoding option. (GH-18075) | Inada Naoki | 2020-01-20 | 3 | -15/+2 | |
| | ||||||
* | bpo-38536: locale: Remove trailing space in formatted currency (GH-16864) | Inada Naoki | 2020-01-20 | 3 | -2/+5 | |
| | ||||||
* | bpo-35561: Supress valgrind false alarm on epoll_ctl(event) (GH-18060) | Zackery Spytz | 2020-01-19 | 1 | -0/+8 | |
| | | | Update Misc/valgrind-python.supp to suppress the false alarm. | |||||
* | Fix typo from base to based (GH-18055) | Michael Haas | 2020-01-19 | 1 | -1/+1 | |
| |