https://github.com/python/cpython

sort by:
Revision Author Date Message Commit Date
34fd4c2 bpo-35133: Fix mistakes when concatenate string literals on different lines. (GH-10284) Two kind of mistakes: 1. Missed space. After concatenating there is no space between words. 2. Missed comma. Causes unintentional concatenating in a list of strings. 05 November 2018, 14:20:25 UTC
ad1a25f bpo-32512: Add -m option to profile for profiling modules (#5132) The new option in the CLI of the profile module allow to profile executable modules. This change follows the same implementation as the one already present in `cProfile`. As the argument is now present on both modules, move the tests to the common test case to be run with profile as well. 05 November 2018, 12:03:46 UTC
2810dd7 closes bpo-32285: Add unicodedata.is_normalized. (GH-4806) 04 November 2018, 23:58:24 UTC
5d236ca bpo-19675: Terminate processes if construction of a pool is failing. (GH-5614) 04 November 2018, 22:40:32 UTC
b4db249 bpo-9842: Add cross-reference to the ellipsis object (GH-4063) This PR adds a cross-reference to the ellipsis object and the representation of recursive item in containers as indicated in [issue 9842](https://bugs.python.org/issue9842) by @bitdancer. https://bugs.python.org/issue9842 04 November 2018, 22:36:25 UTC
98b8535 bpo-35118: Improve docs regarding indexing (GH-10265) 04 November 2018, 22:34:22 UTC
55f3317 bpo-10536: Enhancements to gettext docs (GH-10324) 04 November 2018, 22:24:41 UTC
622935d bpo-31887: Adds documentations for special multipart/signed handling (GH-4268) This pull request adds some information about the special multipart/signed handling to clear about disabling header folding. https://bugs.python.org/issue31887 04 November 2018, 22:12:34 UTC
59668aa bpo-21263: Skip test_gdb when python has been compiled with LLVM clang (GH-10318) 04 November 2018, 21:21:28 UTC
c03bf0a Doc: Disable smartquotes for zh-tw, zh-cn, fr and ja translations (GH-9423) 04 November 2018, 21:04:51 UTC
0edc7b1 bpo-35159: Add a link to the devguide in the sidebar of the index (Doc/) (GH-10316) 04 November 2018, 20:41:34 UTC
e359bc2 bpo-35161: Fix stack-use-after-scope in grp.getgr{nam,gid} and pwd.getpw{nam,uid}. (GH-10319) Reported by ASAN. 04 November 2018, 15:44:16 UTC
52465e1 Explain that the orderness of the result of glob is system-dependant (GH-6587) Thanks! 04 November 2018, 14:50:55 UTC
f98c162 Doc: -W flag for sphinx-build can be disabled (GH-10303) 03 November 2018, 18:06:33 UTC
3e28eed bpo-34969: Add --fast, --best on the gzip CLI (GH-9833) 03 November 2018, 15:24:23 UTC
fe62d87 Fix a typo about a comma. (GH-10306) 03 November 2018, 15:05:59 UTC
e2ed5ad bpo-35147: Fix _Py_NO_RETURN for GCC (GH-10300) Use `__GNUC__` instead of non-existing `__GNUC_MAJOR__`. https://bugs.python.org/issue35147 02 November 2018, 16:32:26 UTC
b942707 bpo-29341: Clarify that path-like objects are accepted in some os methods (GH-10101) Some methods in the os module can accept path-like objects. This is documented in the general documentation but not in the function docstrings. To keep both in sync, the docstrings need to be updated to reflect that path-like objects are also accepted. 02 November 2018, 15:20:19 UTC
488c0a6 bpo-33578: Fix getstate/setstate for CJK decoder (GH-10290) Previous version was casting to Py_ssize_t incorrectly and exhibited unexpected behavior on big-endian systems. 02 November 2018, 03:29:40 UTC
318ab63 closes bpo-35139: The `pyexpat` module's macros in `Modules/Setup` now match `setup.py` (GH-10289) This could cause compile errors on macOS or other platforms. 02 November 2018, 02:49:46 UTC
dce345c Simplify sys.breakpointhook implementation (#9519) 01 November 2018, 17:25:05 UTC
bf46a09 bpo-35075: Fix broken url in the pprint documentation (GH-10201) https://bugs.python.org/issue35075 01 November 2018, 12:29:38 UTC
ac22f6a bpo-33578: Add getstate/setstate for CJK codec (GH-6984) This implements getstate and setstate for the cjkcodecs multibyte incremental encoders/decoders, primarily to fix issues with seek/tell. The encoder getstate/setstate is slightly tricky as the "state" is pending bytes + MultibyteCodec_State but only an integer can be returned. The approach I've taken is to encode this data into a long, similar to how .tell() encodes a "cookie_type" as a long. https://bugs.python.org/issue33578 01 November 2018, 10:48:49 UTC
4b5e62d bpo-35128: Fix spacing issues in warning.warn() messages. (GH-10268) 01 November 2018, 10:33:35 UTC
a1c249c bpo-35081: And pycore_lifecycle.h and pycore_pathconfig.h (GH-10273) * And pycore_lifecycle.h and pycore_pathconfig.h headers to Include/internal/ * Move Py_BUILD_CORE specific code from coreconfig.h and pylifecycle.h to pycore_pathconfig.h and pycore_lifecycle.h * Move _Py_wstrlist_XXX() definitions and _PyPathConfig code from pycore_state.h to pycore_pathconfig.h * Move "Init" and "Fini" function definitions from pylifecycle.c to pycore_lifecycle.h. 01 November 2018, 02:15:58 UTC
e281f7d bpo-35081: Move accu.h to Include/internal/pycore_accu.h (GH-10271) The accu.h header is no longer part of the Python C API: it has been moved to the "internal" headers which are restricted to Python itself. Replace #include "accu.h" with #include "pycore_accu.h". 01 November 2018, 01:30:36 UTC
50b4857 bpo-35081: Add _PyThreadState_GET() internal macro (GH-10266) If Py_BUILD_CORE is defined, the PyThreadState_GET() macro access _PyRuntime which comes from the internal pycore_state.h header. Public headers must not require internal headers. Move PyThreadState_GET() and _PyInterpreterState_GET_UNSAFE() from Include/pystate.h to Include/internal/pycore_state.h, and rename PyThreadState_GET() to _PyThreadState_GET() there. The PyThreadState_GET() macro of pystate.h is now redefined when pycore_state.h is included, to use the fast _PyThreadState_GET(). Changes: * Add _PyThreadState_GET() macro * Replace "PyThreadState_GET()->interp" with _PyInterpreterState_GET_UNSAFE() * Replace PyThreadState_GET() with _PyThreadState_GET() in internal C files (compiled with Py_BUILD_CORE defined), but keep PyThreadState_GET() in the public header files. * _testcapimodule.c: replace PyThreadState_GET() with PyThreadState_Get(); the module is not compiled with Py_BUILD_CORE defined. * pycore_state.h now requires Py_BUILD_CORE to be defined. 01 November 2018, 00:51:40 UTC
27e2d1f bpo-35081: Add pycore_ prefix to internal header files (GH-10263) * Rename Include/internal/ header files: * pyatomic.h -> pycore_atomic.h * ceval.h -> pycore_ceval.h * condvar.h -> pycore_condvar.h * context.h -> pycore_context.h * pygetopt.h -> pycore_getopt.h * gil.h -> pycore_gil.h * hamt.h -> pycore_hamt.h * hash.h -> pycore_hash.h * mem.h -> pycore_mem.h * pystate.h -> pycore_state.h * warnings.h -> pycore_warnings.h * PCbuild project, Makefile.pre.in, Modules/Setup: add the Include/internal/ directory to the search paths of header files. * Update includes. For example, replace #include "internal/mem.h" with #include "pycore_mem.h". 31 October 2018, 23:52:28 UTC
3a228ab bpo-26558: Fix Py_FatalError() with GIL released (GH-10267) Don't call _Py_FatalError_PrintExc() nor flush_std_files() if the current thread doesn't hold the GIL, or if the current thread has no Python state thread. 31 October 2018, 23:26:41 UTC
2be00d9 bpo-35081: Move Py_BUILD_CORE code to internal/mem.h (GH-10249) * Add #include "internal/mem.h" to C files using _PyMem_SetDefaultAllocator(). * Include/internal/mem.h now requires Py_BUILD_CORE to be defined. 31 October 2018, 19:19:24 UTC
b08746b bpo-35062: Fix parsing _io.IncrementalNewlineDecoder's *translate* argument. (GH-10217) _io.IncrementalNewlineDecoder's initializer possibly assigns out-of-range value to the bitwise struct field. 31 October 2018, 11:49:16 UTC
511747b bpo-35110: Fix yet few spaces before dashes. (GH-10255) 31 October 2018, 09:14:38 UTC
c9a6168 Fix a possible crash in range.__reversed__(). (GH-10252) 31 October 2018, 09:13:16 UTC
0353b4e bpo-33138: Change standard error message for non-pickleable and non-copyable types. (GH-6239) 31 October 2018, 00:28:07 UTC
3f819ca bpo-35110: Fix unintentional spaces around hyphens and dashes. (GH-10231) 31 October 2018, 00:26:06 UTC
68f3237 bpo-35116, urllib.parse: Document the new max_num_fields parameter (GH-10247) 30 October 2018, 20:30:19 UTC
a80af77 bpo-35086: Fix tkinter example "A Simple Hello World Program". (GH-10160) The root widget was accessed as a global variable in the Application's method. 30 October 2018, 14:56:07 UTC
31368a4 bpo-35081: Move Include/pyatomic.c to Include/internal/ (GH-10239) Add pyatomic.h to the VS project (it wasn't referenced). 30 October 2018, 14:14:25 UTC
9204fb8 bpo-35081: Cleanup pystate.c and pystate.h (GH-10240) * Remove _PyThreadState_Current * Replace GET_TSTATE() with PyThreadState_GET() * Replace GET_INTERP_STATE() with _PyInterpreterState_GET_UNSAFE() * Replace direct access to _PyThreadState_Current with PyThreadState_GET() * Replace _PyThreadState_Current with _PyRuntime.gilstate.tstate_current * Rename SET_TSTATE() to _PyThreadState_SET(), name more consistent with _PyThreadState_GET() * Update outdated comments 30 October 2018, 14:13:17 UTC
3c09dca bpo-35059: Convert _Py_Dealloc() to static inline function (GH-10223) Convert _Py_Dealloc() macro into a static inline function. Moreover, it is now also defined as a static inline function if Py_TRACE_REFS is defined. 30 October 2018, 13:48:26 UTC
e1b2995 bpo-32030: Make _PySys_AddXOptionWithError() private (GH-10236) Make _PySys_AddXOptionWithError() and _PySys_AddWarnOptionWithError() functions private again. They are no longer needed to initialize Python: _PySys_EndInit() is now responsible to add these options instead. Moreover, PySys_AddWarnOptionUnicode() now clears the exception on failure if possible. 30 October 2018, 13:31:42 UTC
905f1ac bpo-34523: Fix config_init_fs_encoding() for ASCII (GH-10232) * bpo-34523, bpo-34403: Fix config_init_fs_encoding(): it now uses ASCII if _Py_GetForceASCII() is true. * Fix a regression of commit b2457efc78b74a1d6d1b77d11a939e886b8a4e2c. * Fix also a memory leak: get_locale_encoding() already allocates memory, no need to duplicate the string. 30 October 2018, 11:58:10 UTC
b232df9 bpo-31680: Add curses.ncurses_version. (GH-4217) Use curses.ncurses_version for conditionally skipping a test. 30 October 2018, 11:22:42 UTC
3e429dc bpo-33237: Improve AttributeError message for partially initialized module. (GH-6398) 30 October 2018, 11:19:51 UTC
95b6acf bpo-34876: Change the lineno of the AST for decorated function and class. (GH-9731) It was overridden by the lineno of the first decorator. Now it is the lineno of 'def' or 'class'. 30 October 2018, 11:16:02 UTC
b83d917 Doc: fix asyncio loop.close() description (GH-10229) Needs backport to 3.7. In 3.6 the description is correct. 29 October 2018, 21:39:21 UTC
f6a47f3 bpo-35031: Fix test_start_tls_server_1 on FreeBSD buildbots (GH-10011) Some FreeBSD buildbots fail to run this test as the eof was not being received by the server if the size is not big enough. This behaviour only appears if the client is using TLS1.3. 29 October 2018, 20:47:44 UTC
ed271b2 bpo-34765: install-sh is executable (GH-10225) Fix 'install-sh' file permission: add execution bit ("chmod +x"), "-rw-rw-r--." becomes "-rwxrwxr-x.". 29 October 2018, 20:43:02 UTC
0227748 bpo-34945: Buffer output in test suite only when creating junit file (GH-10204) After commit d0f49d2f5085ca68e3dc8725f1fb1c9674bfb5ed, the output of the test suite is always buffered as the test output needs to be included in the JUnit file in same cases (as when a test fails). This has the consequence that printing or using debuggers (like pdb) in the test suite does not result in a good user experience anymore. This commit modifies the test suite runner so it only captures the test output when the JUnit file is requested to fix the regression so prints and debuggers are usable again. 29 October 2018, 20:09:41 UTC
541497e bpo-35059: Convert Py_XINCREF() to static inline function (GH-10224) Convert Py_XINCREF() and Py_XDECREF() macros into static inline functions. 29 October 2018, 19:52:41 UTC
0200928 Include memo in the documented signature of copy.deepcopy() * Include memo in the documented signature of copy.deepcopy() The memo argument is mentioned lower on the doc page under writing a `__deepcopy__` method, but is not included in the documented function signature. This makes it easy to miss, and can lead to incorrect/buggy implementations of `__deepcopy__` -- which is exatly what just happpend to me! 29 October 2018, 18:30:12 UTC
3b05ad7 bpo-34160: Preserve user specified order of Element attributes in html. (GH-10190) 29 October 2018, 17:31:04 UTC
c93c58b bpo-33331: Clean modules in the reversed order in PyImport_Cleanup(). (GH-6565) Modules imported last are now cleared first at interpreter shutdown. A newly imported module is moved to the end of sys.modules, behind modules on which it depends. 29 October 2018, 17:30:16 UTC
542497a bpo-35059: Remove Py_STATIC_INLINE() macro (GH-10216) "static inline" should be used directly. Forcing the compiler to inline is not recommended. 29 October 2018, 13:49:24 UTC
2aaf0c1 bpo-35059: Convert Py_INCREF() to static inline function (GH-10079) * Convert Py_INCREF() and Py_DECREF() macros into static inline functions. * Remove _Py_CHECK_REFCNT() macro: code moved into Py_DECREF(). 29 October 2018, 12:43:07 UTC
c0799ec bpo-27741: Better wording for datetime.strptime() (GH-9994) 29 October 2018, 11:49:52 UTC
53835e9 Fix a possible "double decref" in termios.tcgetattr(). (GH-10194) 29 October 2018, 04:55:20 UTC
ea9c8bd bpo-35097: Add IDLE doc subsection explaining editor windows. (#10206) Topics include opening, title and status bar, .py* extension, and running. 29 October 2018, 00:42:18 UTC
c61e229 bpo-33234: Add exact allocation optimization to lists in What's New (GH-10200) In commit 372d705 a new optimization to the list() type was introduced but it was not added to the optimization section in What's new for Python 3.8. 28 October 2018, 22:03:18 UTC
47d9424 bpo-35047, unittest.mock: Better error messages on assert_called_xxx failures (GH-10090) unittest.mock now includes mock calls in exception messages if assert_not_called, assert_called_once, or assert_called_once_with fails. 28 October 2018, 20:37:10 UTC
1803263 Issue 35093: Document the IDLE document viewer in the IDLE doc. (#10195) Add a paragraph in "Help and preferences", "Help sources" subsection. 28 October 2018, 20:21:18 UTC
372d705 bpo-33234 Improve list() pre-sizing for inputs with known lengths (GH-9846) The list() constructor isn't taking full advantage of known input lengths or length hints. This commit makes the constructor pre-size and not over-allocate when the input size is known (the input collection implements __len__). One on the main advantages is that this provides 12% difference in memory savings due to the difference between overallocating and allocating exactly the input size. For efficiency purposes and to avoid a performance regression for small generators and collections, the size of the input object is calculated using __len__ and not __length_hint__, as the later is considerably slower. 28 October 2018, 20:16:26 UTC
569d12f Fix yet one error in checking Tcl version. (GH-10189) 28 October 2018, 18:58:04 UTC
e3685fd bpo-34160: Preserve user specified order of Element attributes (GH-10163) 28 October 2018, 18:18:22 UTC
18d57b4 Fix checking for bugfix Tcl version. (GH-10185) 28 October 2018, 17:48:36 UTC
3d4fabb bpo-35090: Fix potential division by zero in allocator wrappers (GH-10174) * Fix potential division by zero in BZ2_Malloc() * Avoid division by zero in PyLzma_Malloc() * Avoid division by zero and integer overflow in PyZlib_Malloc() Reported by Svace static analyzer. 28 October 2018, 16:45:50 UTC
68d6dc0 bpo-1529353: Explain Shell text squeezing in the IDLE doc. (#10169) 28 October 2018, 16:44:44 UTC
c8a8d6b bpo-35089: Don't mention typing.io and typing.re (GH-10173) https://bugs.python.org/issue35089 28 October 2018, 16:03:29 UTC
163eca3 bpo-34672: fix a compiler warning in timemodule.c (GH-10176) 28 October 2018, 15:58:42 UTC
49c75a8 bpo-35064 prefix smelly symbols that appear with COUNT_ALLOCS with _Py_ (GH-10152) Configuring python with ./configure --with-pydebug CFLAGS="-D COUNT_ALLOCS -O0" makes "make smelly" fail as some symbols were being exported without the "Py_" or "_Py" prefixes. 28 October 2018, 15:02:17 UTC
6015cc5 bpo-32892: Support subclasses of base types in isinstance checks for AST constants. (GH-9934) Some projects (e.g. Chameleon) create ast.Str containing an instance of the str subclass. 28 October 2018, 11:43:03 UTC
913876d bpo-35054: Add yet more index entries for symbols. (GH-10121) 28 October 2018, 11:41:26 UTC
95f68b1 Fix mistakes on function coroutines related definitions (GH-9871) Fix a bug I introduced in #9864 by which coroutines are treated as synonymous of function coroutines. Also, fix the same mistake (coroutines == function coroutines) already present in other parts of the reference. I'm very sorry for the hassle. 28 October 2018, 10:41:57 UTC
2b555fc bpo-35088: Update idlelib.help.copy_string docstring (#10164) We now use git and backporting instead of hg and forward merging. 28 October 2018, 05:29:00 UTC
db40cb5 bpo-35087: Update idlelib help files for the current doc build. (GH-10162) There is only one trivial change to idle.rst. Nearly all the changes to help.html are the elimination of chapter and section numbers on headers due to changes in the build system. help.py no longer requires header numbering. 28 October 2018, 05:21:36 UTC
aeb1be5 bpo-34751: improved hash function for tuples (GH-9471) 28 October 2018, 00:06:38 UTC
53125a5 bpo-35067: Remove _distutils_findvs and use vswhere.exe instead. (GH-10095) 27 October 2018, 20:48:33 UTC
d855f2f unittest documentation: Spell pytest without the dot (GH-9820) Referring to ``pytest`` as ``py.test`` is deprecated. 27 October 2018, 18:09:12 UTC
40bf6cf Fix typo in zipfile documentation. (GH-10151) 27 October 2018, 14:42:56 UTC
fec35c9 bpo-33710: Deprecate l*gettext() and related functions in the gettext module. (GH-10139) They return encoded bytes and are Python 2 artifacts. 27 October 2018, 05:00:41 UTC
d9bff4e bpo-35079: Revise difflib.SequenceManager.get_matching_blocks doc (GH-10144) Specify that blocks are non-overlapping. Change '!=' to '<'. 27 October 2018, 03:03:08 UTC
12e696b bpo-35042: Use the :pep: role where a PEP is specified (#10036) 26 October 2018, 22:58:26 UTC
9e14e49 bpo-35024: Remove redundant and possibly incorrect verbose message after writing '.pyc' (GH-9998) Since `SourceFileLoader.set_data()` catches exceptions raised by `_write_atomic()` and logs an informative message consequently, always logging successful outcome in 'SourceLoader.get_code()' seems redundant. https://bugs.python.org/issue35024 26 October 2018, 18:36:30 UTC
4e3a53b Fix a typo in asyncio-dev.rst. (GH-10133) "threadsafe" 26 October 2018, 17:14:04 UTC
50fe3f8 bpo-9263: _PyXXX_CheckConsistency() use _PyObject_ASSERT() (GH-10108) Use _PyObject_ASSERT() in: * _PyDict_CheckConsistency() * _PyType_CheckConsistency() * _PyUnicode_CheckConsistency() _PyObject_ASSERT() dumps the faulty object if the assertion fails to help debugging. 26 October 2018, 16:47:15 UTC
0862505 bpo-9263: Use _PyObject_ASSERT() in typeobject.c (GH-10111) Replace assert() with _PyObject_ASSERT() in Objects/typeobject.c to dump the faulty object on assertion failure to ease debugging. 26 October 2018, 16:39:11 UTC
a4b2bc7 bpo-9263: Use _PyObject_ASSERT() in gcmodule.c (GH-10112) Replace assert() with _PyObject_ASSERT() in Modules/gcmodule.c to dump the faulty object on assertion failure to ease debugging. Fix also indentation of a large comment. Initial patch written by David Malcolm. Co-Authored-By: David Malcolm <dmalcolm@redhat.com> 26 October 2018, 16:00:13 UTC
2470204 bpo-9263: Use _PyObject_ASSERT() in object.c (GH-10110) Replace assert() with _PyObject_ASSERT() in Objects/object.c to dump the faulty object on assertion failure to ease debugging. 26 October 2018, 15:16:37 UTC
3b1cba3 bpo-35059, libmpdec: Add missing EXTINLINE in mpdecimal.h (GH-10128) Declare functions with EXTINLINE: * mpd_del() * mpd_uint_zero() * mpd_qresize() * mpd_qresize_zero() * mpd_minalloc() These functions are implemented with "inline" or "ALWAYS_INLINE", but declared without inline which cause linker error on Visual Studio in Debug mode when using /Ob1. 26 October 2018, 15:06:57 UTC
a6dc531 bpo-34789: make xml.sax.make_parser accept iterables of all types (GH-9576) 26 October 2018, 14:56:57 UTC
10cb376 bpo-35017, socketserver: don't accept request after shutdown (GH-9952) Prior to this revision, after the shutdown of a `BaseServer`, the server accepted a last single request if it was sent between the server socket polling and the polling timeout. This can be problematic for instance for a server restart for which you do not want to interrupt the service, by not closing the listening socket during the restart. One request failed because of this behavior. Note that only one request failed, following requests were not accepted, as expected. 26 October 2018, 13:46:17 UTC
25a525b Simplify the warning for http.server. (#10116) 26 October 2018, 13:43:37 UTC
a05bef4 bpo-35059, PCbuild: Expand inline funcs in Debug (GH-10094) Visual Studio solution: Set InlineFunctionExpansion to OnlyExplicitInline ("/Ob1" option) on all projects (in pyproject.props) in Debug mode on Win32 and x64 platforms to expand functions marked as inline. This change should make Python compiled in Debug mode a little bit faster on Windows. On Unix, GCC uses -Og optimization level for ./configure --with-pydebug. 26 October 2018, 13:10:29 UTC
b4435e2 bpo-35059: Convert PyObject_INIT() to function (GH-10077) * Convert PyObject_INIT() and PyObject_INIT_VAR() macros to static inline functions. * Fix usage of these functions: cast to PyObject* or PyVarObject*. 26 October 2018, 12:35:00 UTC
7cd2543 bpo-34890: Make iscoroutinefunction, isgeneratorfunction and isasyncgenfunction work with functools.partial (GH-9903) inspect.isfunction() processes both inspect.isfunction(func) and inspect.isfunction(partial(func, arg)) correctly but some other functions in the inspect module (iscoroutinefunction, isgeneratorfunction and isasyncgenfunction) lack this functionality. This commits adds a new check in the mentioned functions in the inspect module so they can work correctly with arbitrarily nested partial functions. 26 October 2018, 11:19:14 UTC
e483f02 bpo-35044, doc: Use the :exc: role for the exceptions (GH-10037) 26 October 2018, 10:52:11 UTC
ddb961d bpo-35054: Add more index entries for symbols. (GH-10064) 26 October 2018, 06:00:49 UTC
3ec9af7 bpo-9263: _Py_NegativeRefcount() use _PyObject_AssertFailed() (GH-10109) _Py_NegativeRefcount() now uses _PyObject_AssertFailed() to dump the object to help debugging. 26 October 2018, 00:12:34 UTC
c89a932 bpo-35053: Define _PyTraceMalloc_NewReference in object.h (GH-10107) _PyTraceMalloc_NewReference() is now called by _Py_NewReference(), so move its definition to object.h. Moreover, define it even if Py_LIMITED_API is defined, since _Py_NewReference() is also exposed even if Py_LIMITED_API is defined. 25 October 2018, 22:01:56 UTC
6c83d9f bpo-35022: unittest.mock.MagicMock now also supports __fspath__ (GH-9960) The MagicMock class supports many magic methods, but not __fspath__. To ease testing with modules such as os.path, this function is now supported by default. 25 October 2018, 21:48:58 UTC
back to top