89fe554 | Victor Stinner | 24 October 2018, 14:08:47 UTC | bpo-35059: Convert PyObject_INIT() to function * Convert PyObject_INIT() and PyObject_INIT_VAR() macros to static inline functions. * Fix usage of these functions: cast to PyObject* or PyVarObject*. | 25 October 2018, 22:05:33 UTC |
c89a932 | Victor Stinner | 25 October 2018, 22:01:56 UTC | 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 | Max Bélanger | 25 October 2018, 21:48:58 UTC | 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 |
1770d1c | Stéphane Wirtel | 25 October 2018, 21:13:45 UTC | bpo-35038: AttributeError: 'frame' object has no attribute 'f_restricted'. (GH-10098) https://bugs.python.org/issue35038 | 25 October 2018, 21:13:45 UTC |
9e95eb0 | Stéphane Wirtel | 25 October 2018, 15:32:30 UTC | Fix grammar in using/unix build instruction docs (GH-10009) | 25 October 2018, 15:32:30 UTC |
626bff8 | Victor Stinner | 25 October 2018, 15:31:10 UTC | bpo-9263: Dump Python object on GC assertion failure (GH-10062) Changes: * Add _PyObject_AssertFailed() function. * Add _PyObject_ASSERT() and _PyObject_ASSERT_WITH_MSG() macros. * gc_decref(): replace assert() with _PyObject_ASSERT_WITH_MSG() to dump the faulty object if the assertion fails. _PyObject_AssertFailed() calls: * _PyMem_DumpTraceback(): try to log the traceback where the object memory has been allocated if tracemalloc is enabled. * _PyObject_Dump(): log repr(obj). * Py_FatalError(): log the current Python traceback. _PyObject_AssertFailed() uses _PyObject_IsFreed() heuristic to check if the object memory has been freed by a debug hook on Python memory allocators. Initial patch written by David Malcolm. Co-Authored-By: David Malcolm <dmalcolm@redhat.com> | 25 October 2018, 15:31:10 UTC |
18618e6 | Victor Stinner | 25 October 2018, 15:28:11 UTC | bpo-35059: Add Py_STATIC_INLINE() macro (GH-10093) * Add Py_STATIC_INLINE() macro to declare a "static inline" function. If the compiler supports it, try to always inline the function even if no optimization level was specified. * Modify pydtrace.h to use Py_STATIC_INLINE() when WITH_DTRACE is not defined. * Add an unit test on Py_DECREF() to make sure that _Py_NegativeRefcount() reports the correct filename. | 25 October 2018, 15:28:11 UTC |
d03b775 | Tim Graham | 25 October 2018, 15:26:38 UTC | bpo-31047: Fix ntpath.abspath to trim ending separator (GH-10082) Regression in b0bf51b32240369ccb736dc32ff82bb96f375402. | 25 October 2018, 15:26:37 UTC |
e25d5fc | madman-bob | 25 October 2018, 14:02:10 UTC | bpo-32321: Add pure Python fallback for functools.reduce (GH-8548) | 25 October 2018, 14:02:10 UTC |
6279c1c | Victor Stinner | 25 October 2018, 13:54:13 UTC | bpo-35053: Add Include/tracemalloc.h (GH-10091) * Modify object.h to ensure that pymem.h is included, to get _Py_tracemalloc_config variable. * Move _PyTraceMalloc_XXX() functions to tracemalloc.h, they need PyObject type. Break circular dependency between pymem.h and object.h. | 25 October 2018, 13:54:13 UTC |
9e00e80 | Victor Stinner | 25 October 2018, 11:31:16 UTC | bpo-35053: Enhance tracemalloc to trace free lists (GH-10063) tracemalloc now tries to update the traceback when an object is reused from a "free list" (optimization for faster object creation, used by the builtin list type for example). Changes: * Add _PyTraceMalloc_NewReference() function which tries to update the Python traceback of a Python object. * _Py_NewReference() now calls _PyTraceMalloc_NewReference(). * Add an unit test. | 25 October 2018, 11:31:16 UTC |
d7c3e5f | Quentin | 25 October 2018, 11:04:28 UTC | importlib: Fix typo in SourceLoader.path_stats docstring (GH-10052) | 25 October 2018, 11:04:28 UTC |
5ad36f9 | serge-sans-paille | 24 October 2018, 23:54:22 UTC | bpo-28015: Support LTO build with clang (GH-9908) .o generated by clang in LTO mode actually are LLVM bitcode files, which leads to a few errors during configure/build step: - add lto flags to the BASECFLAGS instead of CFLAGS, as CFLAGS are used to build autoconf test case, and some are not compatible with clang LTO (they assume binary in the .o, not bitcode) - force llvm-ar instead of ar, as ar is not aware of .o files generated by clang -flto | 24 October 2018, 23:54:22 UTC |
890423f | Ned Batchelder | 24 October 2018, 23:47:01 UTC | configparser doc: Properly label ConfigParser attributes (GH-9930) | 24 October 2018, 23:47:01 UTC |
78401f7 | orlnub123 | 24 October 2018, 23:32:26 UTC | importlib doc: Fix approximated import_module() code (GH-9945) The spec gets stored on modules with the __spec__ attribute, not spec. | 24 October 2018, 23:32:26 UTC |
e80e77a | TilmanK | 24 October 2018, 22:50:25 UTC | bpo-35027, distutils doc: Correct note on setup.py change in Python 3.7 (GH-10032) | 24 October 2018, 22:50:25 UTC |
9f270a2 | Srinivas Thatiparthy (శ్రీనివాస్ తాటిపర్తి) | 24 October 2018, 22:43:39 UTC | turtledemo/penrose.py: remove unused clock() calls (GH-10033) Actually time calculations were remove in commit 891a1f8. | 24 October 2018, 22:43:39 UTC |
9f43fbb | Mariatta | 24 October 2018, 22:37:12 UTC | Use f-strings in asyncio-task code examples (GH-10035) Replace str.format with f-strings in the code examples of asyncio-task documentation. | 24 October 2018, 22:37:12 UTC |
057f407 | jdemeyer | 24 October 2018, 12:44:41 UTC | bpo-32797: improve documentation of linecache.getline (GH-9540) | 24 October 2018, 12:44:41 UTC |
dfba1f6 | Tal Einat | 24 October 2018, 07:20:05 UTC | bpo-33899: Mention tokenize behavior change in What's New (GH-10073) | 24 October 2018, 07:20:05 UTC |
c46db92 | Serhiy Storchaka | 23 October 2018, 19:58:24 UTC | bpo-30863: Rewrite PyUnicode_AsWideChar() and PyUnicode_AsWideCharString(). (GH-2599) They no longer cache the wchar_t* representation of string objects. | 23 October 2018, 19:58:24 UTC |
df13df4 | Serhiy Storchaka | 23 October 2018, 19:40:54 UTC | bpo-34794: Fix a leak in Tkinter. (GH-10025) Based on the investigation by Xiang Zhang. | 23 October 2018, 19:40:54 UTC |
9f3ed3e | Zackery Spytz | 23 October 2018, 19:28:06 UTC | Fix error handling bugs in _elementtree.c. (GH-10060) References could leak, NULL could be dereferenced, and the Expat parser could be double freed when some errors raised. | 23 October 2018, 19:28:06 UTC |
82af0b6 | Victor Stinner | 23 October 2018, 15:39:40 UTC | bpo-9263: _PyObject_Dump() detects freed memory (GH-10061) _PyObject_Dump() now uses an heuristic to check if the object memory has been freed: log "<freed object>" in that case. The heuristic rely on the debug hooks on Python memory allocators which fills the memory with DEADBYTE (0xDB) when memory is deallocated. Use PYTHONMALLOC=debug to always enable these debug hooks. | 23 October 2018, 15:39:40 UTC |
96f2c73 | Ned Deily | 23 October 2018, 13:37:02 UTC | Add macos-team as a code owner (GH-10045) | 23 October 2018, 13:37:02 UTC |
fa53294 | Jeremy Kloth | 23 October 2018, 11:41:48 UTC | bpo-34980: P/Invoke QueryFullProcessImageName to get process names (GH-9901) | 23 October 2018, 11:41:48 UTC |
4f399be | Zsolt Cserna | 23 October 2018, 10:09:50 UTC | bpo-34260, shutil: fix copy2 and copystat documentation (GH-8523) Fix the documentation of copy2, as it does not copy file ownership (user and group), only mode, mtime, atime and flags. The original text was confusing to developers as it suggested that this command is the same as 'cp -p', but according to cp(1), '-p' copies file ownership as well. Clarify which metadata is copied by shutil.copystat in its docstring. | 23 October 2018, 10:09:50 UTC |
b79b5c0 | matthewbelisle-wf | 23 October 2018, 08:14:35 UTC | bpo-35028: cgi: Fix max_num_fields off by one error (GH-9973) https://bugs.python.org/issue35028 | 23 October 2018, 08:14:35 UTC |
b7d6205 | Josh Snyder | 23 October 2018, 06:48:38 UTC | bpo-35046: do only one system call per line (logging.StreamHandler) (GH-10042) | 23 October 2018, 06:48:38 UTC |
3b0047d | Alexey Izbyshev | 23 October 2018, 06:36:08 UTC | bpo-34482: test datetime classes' handling of non-UTF-8-encodable strings (GH-8878) | 23 October 2018, 06:36:08 UTC |
83a0765 | Andrei Petre | 23 October 2018, 06:11:20 UTC | bpo-34748: link to :ref:`partial-objects` in functools.partial doc. (GH-9809) | 23 October 2018, 06:11:20 UTC |
3df8540 | Paul Ganssle | 22 October 2018, 16:32:52 UTC | bpo-34454: Clean up datetime.fromisoformat surrogate handling (GH-8959) * Use _PyUnicode_Copy in sanitize_isoformat_str * Use repr in fromisoformat error message This reverses commit 67b74a98b2 per Serhiy Storchaka's suggestion: I suggested to use %R in the error message because including the raw string can be confusing in the case of empty string, or string containing trailing whitespaces, invisible or unprintable characters. We agree that it is better to change both the C and pure Python versions to use repr. * Retain non-sanitized dtstr for error printing This does not create an extra string, it just holds on to a reference to the original input string for purposes of creating the error message. * PEP 7 fixes to from_isoformat * Separate handling of Unicode and other errors In the initial implementation, errors other than encoding errors would both raise an error indicating an invalid format, which would not be true for errors like MemoryError. * Drop needs_decref from _sanitize_isoformat_str Instead _sanitize_isoformat_str returns a new reference, even to the original string. | 22 October 2018, 16:32:52 UTC |
5a95ba2 | Eric Lippert | 22 October 2018, 15:52:46 UTC | Fix issue 34551 - remove redundant store (#9009) The assignment of i/2 to nk is redundant because on this code path, nk is already the size of the dictionary, and i is already twice the size of the dictionary. I've replaced the store with an assertion that i/2 is nk. | 22 October 2018, 15:52:46 UTC |
2447773 | Tal Einat | 22 October 2018, 15:33:10 UTC | bpo-29843: raise AttributeError if given negative _length_ (GH-10029) Raise ValueError OverflowError in case of a negative _length_ in a ctypes.Array subclass. Also raise TypeError instead of AttributeError for non-integer _length_. Co-authored-by: Oren Milman <orenmn@gmail.com> | 22 October 2018, 15:33:10 UTC |
121eb16 | Xtreak | 21 October 2018, 14:54:52 UTC | bpo-34081: Fix wrong example link that was linking to distutils (GH-8248) | 21 October 2018, 14:54:52 UTC |
c3f52a5 | Xtreak | 21 October 2018, 12:57:32 UTC | bpo-35036: Remove empty log line in the suspicious.py tool (GH-10024) Previous to commit ee171a2 the logline was working because of self.info() (now deprecated) defaults to an empty message. | 21 October 2018, 12:57:32 UTC |
2c2044e | Serhiy Storchaka | 21 October 2018, 12:29:12 UTC | bpo-34984: Improve error messages for bytes and bytearray constructors. (GH-9874) | 21 October 2018, 12:29:12 UTC |
914f9a0 | Serhiy Storchaka | 21 October 2018, 12:25:53 UTC | bpo-34973: Fix crash in bytes constructor. (GH-9841) Constructing bytes from mutating list could cause a crash. | 21 October 2018, 12:25:53 UTC |
a323cdc | Sanyam Khurana | 21 October 2018, 07:22:02 UTC | bpo-8525: help() on a type now shows builtin subclasses (GH-5066) For builtin types with builtin subclasses, help() on the type now shows up to 4 of the subclasses. This partially replaces the exception hierarchy information previously displayed in Python 2.7. | 21 October 2018, 07:22:02 UTC |
d31e773 | Serhiy Storchaka | 21 October 2018, 07:09:39 UTC | bpo-35029: Replace the SyntaxWarning exception with a SyntaxError. (GH-9999) If SyntaxWarning was raised as an exception, it will be replaced with a SyntaxError for better error reporting. | 21 October 2018, 07:09:39 UTC |
2f73ed6 | Nick Coghlan | 21 October 2018, 04:22:15 UTC | Update codeowners to match experts list change (#10022) | 21 October 2018, 04:22:15 UTC |
9445118 | Max Bélanger | 21 October 2018, 00:07:54 UTC | closes bpo-35025: Properly guard the `CLOCK_GETTIME` et al macros in timemodule.c. (GH-9961) Guard the `CLOCK_GETTIME` et al macros in `timemodule` based on the availability of the parent functions | 21 October 2018, 00:07:54 UTC |
12d0ff1 | Benjamin Peterson | 20 October 2018, 23:51:05 UTC | Remove ">>>" from testsetup. (GH-10017) Fixes doc build breakage from 890a4b92933be8e7c554222d99ef829c88fa8637. | 20 October 2018, 23:51:05 UTC |
890a4b9 | Xtreak | 20 October 2018, 21:39:03 UTC | bpo-35020: Link to sorting examples from list.sort() (GH-9931) | 20 October 2018, 21:39:03 UTC |
eeab510 | Senthil Kumaran | 20 October 2018, 18:32:07 UTC | bpo-34576 - Fix the formatting for security considerations in http.server.rst (#10005) * bpo-34576 - Fix the formatting for security considerations in http.server.rst * Address review comment. | 20 October 2018, 18:32:07 UTC |
0bd4826 | Zachary Ware | 20 October 2018, 16:35:21 UTC | Encrypt Zulip webhook address (GH-10010) This should reduce false failure reports to the Zulip 'core/test runs' stream from Travis failures on private forks. | 20 October 2018, 16:35:21 UTC |
d262250 | Stéphane Wirtel | 20 October 2018, 15:27:03 UTC | bpo-35032: Remove inaccessible videos from faq/Windows (GH-10004) https://bugs.python.org/issue35032 | 20 October 2018, 15:27:03 UTC |
0522fd8 | Stéphane Wirtel | 20 October 2018, 08:43:32 UTC | bpo-34839: Add a 'before 3.6' in the section 'warnings' of doctest (GH-9736) | 20 October 2018, 08:43:32 UTC |
a5259fb | Sergey Fedoseev | 20 October 2018, 05:20:39 UTC | bpo-34574: Prevent OrderedDict iterators from exhaustion during pickling. (GH-9051) | 20 October 2018, 05:20:39 UTC |
8c9fd9c | Ned Deily | 20 October 2018, 04:44:21 UTC | bpo-34909: NEWS entry (GH-9995) | 20 October 2018, 04:44:21 UTC |
aa95bfb | Alexey Izbyshev | 20 October 2018, 00:49:41 UTC | bpo-32256: Make patchcheck.py work for out-of-tree builds (GH-4760) Set SRCDIR as the current directory for git. | 20 October 2018, 00:49:41 UTC |
d5b4f1b | Pablo Galindo | 20 October 2018, 00:46:00 UTC | bpo-34983: Expose symtable.Symbol.is_nonlocal() in the symtable module (GH-9872) The symbol table was not exposing functionality to query the nonlocal symbols in a function or to check if a particular symbol is nonlocal. | 20 October 2018, 00:46:00 UTC |
6395844 | Sergey Fedoseev | 20 October 2018, 00:43:33 UTC | bpo-34573: Simplify __reduce__() of set and dict iterators. (GH-9050) Simplify the pickling of set and dictionary objects iterators by consuming the iterator into a list with PySequence_List. | 20 October 2018, 00:43:33 UTC |
027664a | Pablo Galindo | 20 October 2018, 00:37:55 UTC | bpo-32798: Add restriction on the offset parameter for mmap.flush in the docs (#5621) Add restriction on the offset parameter for mmap.flush. Explain that ALLOCATIONGRANULARITY is the same as PAGESIZE in Unix. | 20 October 2018, 00:37:55 UTC |
13ae4d4 | Berker Peksag | 20 October 2018, 00:33:48 UTC | bpo-21196: Clarify name mangling rules in tutorial (GH-5667) Initial patch by Chandan Kumar. | 20 October 2018, 00:33:48 UTC |
8346031 | Alexey Izbyshev | 20 October 2018, 00:28:22 UTC | bpo-32890, os: Use errno instead of GetLastError() in execve() and truncate() (GH-5784) path_error() uses GetLastError() on Windows, but some os functions are implemented via CRT APIs which report errors via errno. This may result in raising OSError with invalid error code (such as zero). Introduce posix_path_error() function and use it where appropriate. | 20 October 2018, 00:28:22 UTC |
a267056 | Alexey Izbyshev | 20 October 2018, 00:22:31 UTC | bpo-32236: open() emits RuntimeWarning if buffering=1 for binary mode (GH-4842) If buffering=1 is specified for open() in binary mode, it is silently treated as buffering=-1 (i.e., the default buffer size). Coupled with the fact that line buffering is always supported in Python 2, such behavior caused several issues (e.g., bpo-10344, bpo-21332). Warn that line buffering is not supported if open() is called with binary mode and buffering=1. | 20 October 2018, 00:22:31 UTC |
4acf6c9 | Victor Stinner | 19 October 2018, 23:57:19 UTC | bpo-34536: Cleanup test_enum imports (GH-9979) sys and threading were imported twice. | 19 October 2018, 23:57:19 UTC |
ded87d8 | Matthias Bussonnier | 19 October 2018, 23:40:45 UTC | bpo-33594: Add deprecation info in inspect.py module (GH-7036) | 19 October 2018, 23:40:45 UTC |
0f14fc1 | Andrés Delfino | 19 October 2018, 23:31:15 UTC | bpo-33726, doc: Add short descriptions to PEP references in seealso (GH-7294) | 19 October 2018, 23:31:15 UTC |
6f17e51 | Serhiy Storchaka | 19 October 2018, 23:27:45 UTC | bpo-33712: OrderedDict only creates od_fast_nodes cache if needed (GH-7349) | 19 October 2018, 23:27:45 UTC |
d6a61f2 | Chris Barker | 19 October 2018, 22:43:24 UTC | Elaborate datetime.timedelta docstring (GH-7458) | 19 October 2018, 22:43:24 UTC |
8deab96 | David Herberth | 19 October 2018, 22:32:04 UTC | bpo-34070: open() only checks for isatty if buffering < 0 (GH-8187) | 19 October 2018, 22:32:04 UTC |
acef690 | Julien Palard | 19 October 2018, 22:27:49 UTC | queue doc: Clarify that the simple FIFO queue is SimpleQueue (GH-8372) | 19 October 2018, 22:27:49 UTC |
96200eb | Mario Corchero | 19 October 2018, 21:57:37 UTC | unittest.mock doc: Fix references to recursive seal of Mocks (GH-9028) The docs in `library/unittest.mock` have been updated to remove confusing terms about submock and be explicit about the behavior expected. | 19 October 2018, 21:57:37 UTC |
5a30620 | jdemeyer | 19 October 2018, 21:50:06 UTC | bpo-25750: Add test on bad descriptor __get__() (GH-9084) | 19 October 2018, 21:50:06 UTC |
b2e2025 | Serhiy Storchaka | 19 October 2018, 21:46:31 UTC | bpo-33073: Rework int.as_integer_ratio() implementation (GH-9303) * Simplify the C code. * Simplify tests and make them more strict and robust. * Add references in the documentation. | 19 October 2018, 21:46:31 UTC |
b981fec | Sergey Fedoseev | 19 October 2018, 21:42:07 UTC | Use dict unpacking in functools.partial() docs (GH-9412) | 19 October 2018, 21:42:07 UTC |
3bd0d62 | Quan Tian | 19 October 2018, 21:30:03 UTC | Fix typos in comments (GH-9905) | 19 October 2018, 21:30:03 UTC |
f192aeb | Srinivas Thatiparthy (శ్రీనివాస్ తాటిపర్తి) | 19 October 2018, 17:42:53 UTC | bpo-20216: Correct docstrings of digest() methods in hashlib. (GH-9873) | 19 October 2018, 17:42:53 UTC |
dd13c88 | Srinivas Thatiparthy (శ్రీనివాస్ తాటిపర్తి) | 19 October 2018, 16:54:50 UTC | bpo-33947: dataclasses no longer can raise RecursionError in repr (GF9916) The reprlib code was copied here instead of importing reprlib. I'm not sure if we really need to avoid the import, but since I expect dataclasses to be more common that reprlib, it seems wise. Plus, the code is small. | 19 October 2018, 16:54:50 UTC |
55f8249 | Serhiy Storchaka | 19 October 2018, 15:00:51 UTC | bpo-34741: Get rid of tp_getattro and tp_setattro in pyexpat.xmlparser. (GH-9422) Use tp_members and tp_getset instead. | 19 October 2018, 15:00:51 UTC |
6543912 | Serhiy Storchaka | 19 October 2018, 14:42:06 UTC | bpo-32912: Replace a DeprecationWarning with a SyntaxWarning (GH-9652) for invalid escape sequences in string and bytes literals. | 19 October 2018, 14:42:06 UTC |
2091448 | matthewbelisle-wf | 19 October 2018, 10:52:59 UTC | bpo-34866: Adding max_num_fields to cgi.FieldStorage (GH-9660) Adding `max_num_fields` to `cgi.FieldStorage` to make DOS attacks harder by limiting the number of `MiniFieldStorage` objects created by `FieldStorage`. | 19 October 2018, 10:52:59 UTC |
f081fd8 | Serhiy Storchaka | 19 October 2018, 09:12:57 UTC | bpo-35013: Add more type checks for children of Element. (GH-9944) It is now guarantied that children of xml.etree.ElementTree.Element are Elements (at least in C implementation). Previously methods __setitem__(), __setstate__() and __deepcopy__() could be used for adding non-Element children. | 19 October 2018, 09:12:57 UTC |
68def05 | Zackery Spytz | 19 October 2018, 06:57:38 UTC | Fix several reference counting bugs in pyexpat.c. (GH-9955) | 19 October 2018, 06:57:38 UTC |
d16f012 | Cheryl Sabella | 19 October 2018, 00:21:47 UTC | bpo-31522: mailbox.get_string: pass `from_` parameter to `get_bytes` (#9857) This allows *from_* to be successfully set to a non-default value when calling mbox.get_string. | 19 October 2018, 00:21:47 UTC |
5be0024 | Braden Groom | 19 October 2018, 00:13:23 UTC | bpo-26441: Remove documentation for deleted to_splittable and from_splittable methods (#9865) | 19 October 2018, 00:13:23 UTC |
e3d1455 | Shivank98 | 18 October 2018, 19:53:18 UTC | Update opcode.h header comment to mention the source data file (GH-9935) This is intended to help code explorers find out more about what's defined there. | 18 October 2018, 19:53:18 UTC |
1deea5e | Juliette Monsel | 18 October 2018, 19:28:31 UTC | bpo-34936: Fix TclError in tkinter.Spinbox.selection_element(). (GH-9760) | 18 October 2018, 19:28:31 UTC |
bbd90e4 | Vinay Sajip | 18 October 2018, 10:45:58 UTC | Updated documentation on logging.debug(). (GH-9946) | 18 October 2018, 10:45:58 UTC |
b7ad31c | stratakis | 18 October 2018, 08:51:53 UTC | bpo-34765: Update the install-sh file (GH-9592) Update the outdated install-sh file to the latest revision from automake v1.16.1 | 18 October 2018, 08:51:53 UTC |
6f906b3 | Serhiy Storchaka | 18 October 2018, 06:49:54 UTC | bpo-35008: Fix possible leaks in Element.__setstate__(). (GH-9924) C implementation of xml.etree.ElementTree.Element.__setstate__() leaked references to children when called for already initialized element. | 18 October 2018, 06:49:54 UTC |
9d4712b | Gregory P. Smith | 18 October 2018, 01:10:46 UTC | bpo-35011: Restore use of pyexpatns.h in libexpat (GH-9939) Restores the use of pyexpatns.h to isolate our embedded copy of the expat C library so that its symbols do not conflict at link or dynamic loading time with an embedding application or other extension modules with their own version of libexpat. https://github.com/python/cpython/commit/5dc3f23b5fb0b510926012cb3732dae63cddea60#diff-3afaf7274c90ce1b7405f75ad825f545 inadvertently removed it when upgrading expat. | 18 October 2018, 01:10:46 UTC |
74a8b6e | Stéphane Wirtel | 17 October 2018, 23:05:04 UTC | bpo-24658: Fix read/write greater than 2 GiB on macOS (GH-1705) On macOS, fix reading from and writing into a file with a size larger than 2 GiB. | 17 October 2018, 23:05:04 UTC |
0f11a88 | Cheryl Sabella | 17 October 2018, 21:55:32 UTC | Add missing comma to wsgiref doc (GH-9932) | 17 October 2018, 21:55:32 UTC |
fcd5e84 | Stéphane Wirtel | 17 October 2018, 10:03:40 UTC | bpo-23420: Verify the value of '-s' when execute the CLI of cProfile (GH-9925) Verify the value for the parameter '-s' of the cProfile CLI. Patch by Robert Kuska. Co-authored-by: Robert Kuska <rkuska@gmail.com> | 17 October 2018, 10:03:40 UTC |
8e73ad3 | Julien Palard | 17 October 2018, 06:45:51 UTC | Doc: Fix is_prime (GH-9909) | 17 October 2018, 06:45:51 UTC |
c984d20 | Cheryl Sabella | 16 October 2018, 19:28:34 UTC | In email docs, correct spelling of foregoing (#9856) | 16 October 2018, 19:28:34 UTC |
a5ca985 | Cheryl Sabella | 16 October 2018, 19:26:17 UTC | In email.parser in message_from_bytes, update `strict` to `policy` (#9854) According to the versionchanged note, the `strict` argument was removed in 3.3 and `policy` was added, but the name of the argument in the paragraph wasn't updated. | 16 October 2018, 19:26:17 UTC |
137b063 | Pablo Galindo | 16 October 2018, 14:17:57 UTC | bpo-34997: Fix test_logging.ConfigDictTest.test_out_of_order (GH-9913) When runnint test_logging with --huntrleaks after commit 18fb1fb943b7dbd7f8a76017ee2a67ef13effb85, test_out_of_order fails to raise ValueError due to the fact that the new test test_out_of_order_with_dollar_style mutates the out_of_order dictionary. Even if the test copies the dictionary first, the mutation is done in a very deep level so the original one is also affected. | 16 October 2018, 14:17:57 UTC |
1a4a10d | Vinay Sajip | 16 October 2018, 11:36:52 UTC | Added CLI starter example to logging cookbook. (GH-9910) | 16 October 2018, 11:36:52 UTC |
ea75187 | Victor Stinner | 15 October 2018, 21:50:55 UTC | bpo-34783: Fix test_nonexisting_script() (GH-9896) Fix test_cmd_line_script.test_nonexisting_script(): the test must not rely on sys.executable, since main.c uses config->program which can be different than sys.executable in many cases (for example, on macOS when using the framework). | 15 October 2018, 21:50:55 UTC |
43a5bd7 | Braden Groom | 15 October 2018, 21:39:16 UTC | bpo-23554: Change echo server example class name from EchoServerClientProtocol to EchoServerProtocol (GH-9859) | 15 October 2018, 21:39:16 UTC |
2e438cc | Victor Stinner | 15 October 2018, 21:19:57 UTC | bpo-34989: python-gdb.py: fix current_line_num() (GH-9889) python-gdb.py now handles errors on computing the line number of a Python frame. Changes: * PyFrameObjectPtr.current_line_num() now catchs any Exception on calling addr2line(), instead of failing with a surprising "<class 'TypeError'> 'FakeRepr' object is not subscriptable" error. * All callers of current_line_num() now handle current_line_num() returning None. * PyFrameObjectPtr.current_line() now also catchs IndexError on getting a line from the Python source file. | 15 October 2018, 21:19:57 UTC |
ee171a2 | Pablo Galindo | 15 October 2018, 19:07:23 UTC | Stop using deprecated logging API in Sphinx suspicious checker (GH-9875) | 15 October 2018, 19:07:23 UTC |
6bdb6f7 | Wolfgang Maier | 15 October 2018, 19:06:53 UTC | fix dangling keyfunc examples in documentation of heapq and sorted (#1432) * fix dangling mention of key=str.lower in heapq doc * Fix dangling mention of keyfunc example for sorted() | 15 October 2018, 19:06:53 UTC |
18fb1fb | BNMetrics | 15 October 2018, 18:41:36 UTC | bpo-34844: logging.Formatter enhancement - Ensure style and format string matches in logging.Formatter (GH-9703) | 15 October 2018, 18:41:36 UTC |
e890421 | Serhiy Storchaka | 14 October 2018, 21:02:57 UTC | bpo-34974: Do not replace unexpected errors in bytes() and bytearray(). (GH-9852) bytes and bytearray constructors converted unexpected exceptions (e.g. MemoryError and KeyboardInterrupt) to TypeError. | 14 October 2018, 21:02:57 UTC |
de2aea0 | Pablo Galindo | 14 October 2018, 17:01:03 UTC | bpo-34939: Allow annotated global names in module namespace (GH-9844) Allow annotated global names in the module namespace after the symbol is declared as global. Previously, only symbols annotated before they are declared as global (i.e. inside a function) were allowed. This change allows symbols to be declared as global before the annotation happens in the global scope. | 14 October 2018, 17:01:03 UTC |