- 31 Oct, 2017 5 commits
-
-
Miss Islington (bot) authored
* Fix a compilation error on FreeBSD. * Fix the data attribute size on Mac OS X. (cherry picked from commit 2298fad5)
-
Victor Stinner authored
Document the following functions: * PyObject_Malloc() * PyObject_Realloc() * PyObject_Free() Document also the pymalloc allocator.
-
Serhiy Storchaka authored
* Fixed the layout of the kqueue_event structure on OpenBSD and NetBSD. * Fixed the comparison of the kqueue_event objects.. (cherry picked from commit b9052a0f)
-
Serhiy Storchaka authored
(cherry picked from commit baac01e6)
-
Victor Stinner authored
test_curses now saves/restores signals. On FreeBSD, the curses module sets handlers of some signals, but don't restore old handlers when the module is deinitialized. (cherry picked from commit 19f68301)
-
- 29 Oct, 2017 1 commit
-
-
Serhiy Storchaka authored
separators that are not bytes-like objects.. (cherry picked from commit a2314283)
-
- 25 Oct, 2017 2 commits
-
-
Serhiy Storchaka authored
-
Benjamin Peterson authored
GCC says: ../cpython/Python/marshal.c: In function ‘PyMarshal_WriteLongToFile’: ../cpython/Python/marshal.c:70:35: warning: ‘wf.ptr’ may be used uninitialized in this function [-Wmaybe-uninitialized] else if ((p)->ptr != (p)->end) *(p)->ptr++ = (c); \ ^~ ../cpython/Python/marshal.c:70:47: warning: ‘wf.end’ may be used uninitialized in this function [-Wmaybe-uninitialized] else if ((p)->ptr != (p)->end) *(p)->ptr++ = (c); \ ^~ ../cpython/Python/marshal.c:77:10: warning: ‘wf.str’ may be used uninitialized in this function [-Wmaybe-uninitialized] if (p->str == NULL) ~^~~~~ This isn't a real problem because if the file pointer is not NULL, the string-related fields are never touched. But, it doesn't hurt to set the unused fields to NULL.
-
- 24 Oct, 2017 2 commits
-
-
Serhiy Storchaka authored
(cherry picked from commit f52dff611cff2fb9e90340b4787eda50ab2d40c6)
-
Serhiy Storchaka authored
* Fix incorrect links. * Remove redundant links. * Add signatures and index entries for gettext related functions in the locale module. (cherry picked from commit c02a1f4a)
-
- 23 Oct, 2017 1 commit
-
-
Serhiy Storchaka authored
[2.7] bpo-31752: Fix possible crash in timedelta constructor called with custom integers. (GH-3947) (#4088) Bad remainder in divmod() in intermediate calculations caused an assertion failure.. (cherry picked from commit 4ffd4653)
-
- 22 Oct, 2017 2 commits
-
-
Serhiy Storchaka authored
(cherry picked from commit bcbdd2f8)
-
Serhiy Storchaka authored
-
- 18 Oct, 2017 3 commits
-
-
Miss Islington (bot) authored
The word "difference" from missing the sentence. This clarifies that it compares the difference between the two objects. (cherry picked from commit 032a6480)
-
Riccardo Coccioli authored
Always pass -1, or INFTIM where defined, to the poll() system call when a negative timeout is passed to the poll.poll([timeout]) method in the select module. Various OSes throw an error with arbitrary negative values.. (cherry picked from commit 6cfa927c)
-
Serhiy Storchaka authored
[2.7] bpo-31786: Make functions in the select module blocking when timeout is a small negative value. (GH-4003). (#4031) (cherry picked from commit 2c15b29a)
-
- 17 Oct, 2017 3 commits
-
-
Victor Stinner authored
bpo-31733, bpo-31692: Document the new PYTHONSHOWREFCOUNT and PYTHONSHOWALLOCCOUNT environment variables.
-
Victor Stinner authored
bpo-31692, bpo-19527: * Add a new PYTHONSHOWALLOCCOUNT environment variable, similar to the Python 3 "-X showalloccount" option * When Python is compiled with COUNT_ALLOCS, the new PYTHONSHOWALLOCCOUNT environment variable now has to be set to dump allocation counts into stderr on shutdown. Moreover, allocations statistics are now dumped into stderr rather than stdout. * Add @test.support.requires_type_collecting decorator: skip test if COUNT_ALLOCS is defined * Fix tests for COUNT_ALLOCS: decorate some methods with @requires_type_collecting * test_sys.test_objecttypes(): update object type when COUNT_ALLOCS is defined
-
Victor Stinner authored
Add a new PYTHONSHOWREFCOUNT environment variable. In debug mode, Python now only print the total reference count if PYTHONSHOWREFCOUNT is set.
-
- 16 Oct, 2017 1 commit
-
-
vyas45 authored
-
- 12 Oct, 2017 3 commits
-
-
Serhiy Storchaka authored
(cherry picked from commit de072100)
-
Ned Deily authored
-
Oren Milman authored
[2.7] bpo-31490: Fix an assertion failure in ctypes in case an _anonymous_ attr is defined only outside _fields_. (GH-3615) (#3952)
-
- 11 Oct, 2017 1 commit
-
-
Oren Milman authored
[2.7] bpo-31728: Prevent crashes in _elementtree due to unsafe cleanup of Element.text and Element.tail (GH-3924) (#3950)
-
- 09 Oct, 2017 2 commits
-
-
Elvis Pranskevichus authored
Also remove an obsolete note about backward compat with old Pythons.
-
Victor Stinner authored
Add a new _testcapi._read_null() function to crash Python in a reliable way on s390x. On s390x, ctypes.string_at(0) returns an empty string rather than crashing.
-
- 07 Oct, 2017 2 commits
-
-
Miss Islington (bot) authored
(cherry picked from commit 28f71360)
-
Rohit Balasubramanian authored
(cherry picked from commit 9e7b9b21)
-
- 05 Oct, 2017 1 commit
-
-
Miss Islington (bot) authored
(cherry picked from commit a8ed1174)
-
- 04 Oct, 2017 2 commits
-
-
Serhiy Storchaka authored
when pass a string larger than 2 GiB. Decrease memory requirements for Tcl's bigmem tests.. (cherry picked from commit 27c623c8)
-
Ned Deily authored
-
- 02 Oct, 2017 2 commits
-
-
Oren Milman authored
[2.7] bpo-31478: Prevent unwanted behavior in _random.Random.seed() in case the arg has a bad __abs__() method (GH-3596) (#3845)
-
Victor Stinner authored
(cherry picked from commit e6f62f69)
-
- 30 Sep, 2017 2 commits
-
-
Serhiy Storchaka authored
(cherry picked from commit f4ea642c)
-
Oren Milman authored
[2.7] bpo-31285: Don't raise a SystemError in warnings.warn_explicit() in case __loader__.get_source() has a bad splitlines() method. (GH-3219) (#3823) (cherry picked from commit 91fb0afe)
-
- 28 Sep, 2017 1 commit
-
-
Victor Stinner authored
* init commit, with initial tests for from_param and fields __set__ and __get__, and some additions to from_buffer and from_buffer_copy * added the rest of tests and patches. probably only a first draft. * removed trailing spaces * replace ctype with ctypes in error messages * change back from ctypes instance to ctype instance (cherry picked from commit 1bea762d)
-
- 27 Sep, 2017 4 commits
-
-
Victor Stinner authored
-
Miss Islington (bot) authored
[2.7] bpo-31490: Fix an assertion failure in ctypes in case an _anonymous_ attr is defined only outside _fields_. (GH-3615) (#3780) (cherry picked from commit 30b61b51)
-
Serhiy Storchaka authored
[2.7] bpo-31311: Fix a SystemError and a crash in ctypes._CData.__setstate__(), in case of a bad __dict__. (GH-3254). (#3781) (cherry picked from commit 57c2561c)
-
Serhiy Storchaka authored
(cherry picked from commit d6238a76)
-