- 11 Sep, 2019 3 commits
-
-
Eddie Elizondo authored
The instance destructor for a type is responsible for preparing an instance for deallocation by decrementing the reference counts of its referents. If an instance belongs to a heap type, the type object of an instance has its reference count decremented while for static types, which are permanently allocated, the type object is unaffected by the instance destructor. Previously, the default instance destructor searched the class hierarchy for an inherited instance destructor and, if present, would invoke it. Then, if the instance type is a heap type, it would decrement the reference count of that heap type. However, this could result in the premature destruction of a type because the inherited instance destructor should have already decremented the reference count of the type object. This change avoids the premature destruction of the type object by suppressing the decrement of its reference count when an inherited, non-default instance destructor has been invoked. Finally, an assertion on the Py_SIZE of a type was deleted. Heap types have a non zero size, making this into an incorrect assertion. https://github.com/python/cpython/pull/15323
-
-
wwuck authored
-
- 10 Sep, 2019 37 commits
-
-
Gregory P. Smith authored
Add unittests for executables with a zipfile appended to test_zipfile, as zipfile.is_zipfile and zipfile.ZipFile work properly on these today.
-
Sergey Fedoseev authored
The `wb.len = -1` assignment is unneeded since its introduction in 161d695f as `PyObject_GetBuffer` always fills it in.
-
jdkandersson authored
-
Jordon Xu authored
-
Steve Dower authored
-
Gordon P. Hemsley authored
-
Ben Harper authored
-
Andre Delfino authored
-
Kyle Stanley authored
-
William Andrea authored
In text mode, the "size" parameter indicates the number of characters, not bytes.
-
Andre Delfino authored
-
Dmitry Shachnev authored
In the table model used by docutils, the `cols` attribute of `tgroup` nodes is mandatory, see [1]. It is used in texinfo builder in [2]. [1]: https://www.oasis-open.org/specs/tm9901.htm#AEN348 [2]: https://github.com/sphinx-doc/sphinx/blob/v2.1.2/sphinx/writers/texinfo.py#L1129 * Doc: Add texinfo support to the Makefile
-
Steve Dower authored
-
Jeroen Demeyer authored
-
-
Steve Dower authored
-
Steve Dower authored
-
Matthias authored
-
Zach Thompson authored
It looks like "cryptographically strong" is the preferred phrase from the surrounding documentation. Automerge-Triggered-By: @tiran
-
Pablo Galindo authored
-
Serhiy Storchaka authored
* Optimize sum() for bools. * Fix sum([], False). * Add a NEWS entry.
-
Andre Delfino authored
* Improve doc on open's mode + * Improve wording * Address comment from Rémi
-
Dino Viehland authored
Makes the pwd module PEP-384 compatible https://bugs.python.org/issue38073 Automerge-Triggered-By: @tiran
-
Andrew Svetlov authored
feed_eof(), feed_data(), set_exception(), and set_transport() are prefixed with underscore now. https://bugs.python.org/issue38066
-
Arun Persaud authored
Document how $ and % can be escaped in configparser.
-
Bernt Røskar Brenna authored
-
Emmanuel Arias authored
This PR deprecate explicit loop parameters in all public asyncio APIs This issues is split to be easier to review. fourth step: queue.py https://bugs.python.org/issue36373
-
Jeroen Demeyer authored
-
Petr Viktorin authored
Add functions with various calling conventions to `_testcapi`, expose them as module-level functions, bound methods, class methods, and static methods, and test calling them and introspecting them through GDB. https://bugs.python.org/issue37499Co-authored-by: Jeroen Demeyer <J.Demeyer@UGent.be> Automerge-Triggered-By: @pganssle
-
Lisa Roach authored
-
Dino Viehland authored
Summary: Eliminate uses of `_Py_IDENTIFIER` from `_posixsubprocess`, replacing them with interned strings. Also tries to find an existing version of the module, which will allow subinterpreters. https://bugs.python.org/issue38069
-
Emmanuel Arias authored
This PR deprecate explicit loop parameters in all public asyncio APIs This issues is split to be easier to review. Third step: locks.py https://bugs.python.org/issue36373
-
Jeroen Demeyer authored
-
Benjamin Peterson authored
Assume gettimeofday exists and takes two arguments.
-
Xtreak authored
Add examples for mocking asynchronous iterators and asynchronous context managers. https://bugs.python.org/issue37052
-
Dino Viehland authored
Make the termios module PEP-384 compatible.
-
Dino Viehland authored
Make the grp module PEP-384 compliant.
-