R David Murray
55bf20ad6e
#13096 : Fix segfault in CTypes POINTER handling of large values.
...
Patch by Meador Inge.
2014-10-12 14:26:30 -04:00
Benjamin Peterson
3d1f2d3b52
make _socket.socket weakrefable ( closes #22569 )
...
Patch from Alex Gaynor.
2014-10-06 14:38:20 -04:00
Georg Brandl
fe3c80ba16
Closes #19342 : improve docstrings in grp module.
2014-10-02 08:34:41 +02:00
Benjamin Peterson
2f33456e41
fix sslwrap_simple ( closes #22523 )
...
Thanks Alex Gaynor.
2014-10-01 23:53:01 -04:00
Benjamin Peterson
bc4ece5775
allow longs as indexes to group() ( closes #22530 )
2014-09-30 22:04:28 -04:00
Benjamin Peterson
1c873bf77d
clear BufferedRWPair weakrefs on deallocation ( closes #22517 )
2014-09-29 22:46:57 -04:00
Berker Peksag
b5dc3dcb92
Issue #21860 : Correct docstrings of FileIO.seek() and FileIO.truncate() methods.
...
Patch by Terry Chia.
2014-09-24 12:54:25 +03:00
Serhiy Storchaka
0aa6562913
Issue #21147 : sqlite3 now raises an exception if the request contains a null
...
character instead of truncate it. Based on patch by Victor Stinner.
2014-09-11 13:27:19 +03:00
Serhiy Storchaka
17c01785ee
Issue #21951 : Fixed a crash in Tkinter on AIX when called Tcl command with
...
empty string or tuple argument.
On some platforms Tcl memory allocator returns NULL when allocating zero-sized
block of memory.
2014-09-11 10:56:59 +03:00
Serhiy Storchaka
1c09c0ea11
Issue #21951 : Use attemptckalloc() instead of ckalloc() in Tkinter.
...
ckalloc() causes the Tcl interpreter to panic, attemptckalloc() returns NULL
if the memory allocation fails.
2014-09-11 10:38:08 +03:00
doko@ubuntu.com
77a64bfdf7
- Issue #22381 : Update zlib to 1.2.8.
2014-09-11 08:32:46 +02:00
Alex Gaynor
e98205d798
Issue #20421 : Add a .version() method to SSL sockets exposing the actual protocol version in use.
...
Backport from default.
2014-09-04 13:33:22 -07:00
Benjamin Peterson
0062d1e7f4
PEP 466: backport hashlib algorithm constants ( closes #21307 )
2014-08-28 09:41:29 -04:00
Benjamin Peterson
876473eba3
fix load_verify_locations on unicode paths ( closes #22244 )
2014-08-28 09:33:21 -04:00
Benjamin Peterson
e373754056
don't segfault when trying to fdopen() a fd for a dir ( closes #22259 )
...
Patch from Brian Kearns.
2014-08-24 10:37:12 -05:00
Benjamin Peterson
7ed3e29723
fix error message for invalid curve name
2014-08-20 21:37:01 -05:00
Benjamin Peterson
b47b54c7f8
Backed out changeset 7c19f1f792c6
2014-08-20 17:30:40 -05:00
Benjamin Peterson
64c1215b5d
don't call rl_initialize when stdout is not a tty
2014-08-20 16:03:43 -05:00
Benjamin Peterson
cbb144afc0
PyUnicode -> PyString and PyLong -> PyInt
2014-08-20 14:25:32 -05:00
Benjamin Peterson
daeb925cc8
backport many ssl features from Python 3 ( closes #21308 )
...
A contribution of Alex Gaynor and David Reid with the generous support of
Rackspace. May God have mercy on their souls.
2014-08-20 14:14:50 -05:00
Serhiy Storchaka
cbee972e35
Issue #15696 : Add a __sizeof__ implementation for mmap objects on Windows.
2014-08-19 17:03:42 +03:00
Serhiy Storchaka
f880bff41a
Removed useless Py_LIMITED_API checks.
...
Support for Py_LIMITED_API was introduced in Python 3.2.
Thanks Arfrever Frehtes Taifersar Arahesis.
2014-08-17 13:29:13 +03:00
doko@ubuntu.com
baa84b827b
- Issue #22176 : Update the ctypes module's libffi to v3.1. This release
...
adds support for the Linux AArch64 and POWERPC ELF ABIv2 little endian
architectures.
2014-08-10 11:15:28 +02:00
Serhiy Storchaka
501da1da03
Issue #21975 : Fixed crash when using uninitialized sqlite3.Row (in particular
...
when unpickling pickled sqlite3.Row). sqlite3.Row is now initialized in the
__new__() method.
2014-08-06 17:50:22 +03:00
Serhiy Storchaka
04fa704161
Issue #21580 : Now Tkinter correctly handles binary "data" and "maskdata"
...
configure options of tkinter.PhotoImage.
Added private Tkapp method _createbytearray().
2014-07-31 07:48:14 +03:00
Victor Stinner
0a649c7bb1
Fix repr(_socket.socket) on Windows 64-bit: don't fail with OverflowError
...
on closed socket.
2014-07-26 14:52:55 +02:00
Victor Stinner
465db3c69a
socketmodule.c: backport INVALID_SOCKET from Python 3.5 to simplify the code
2014-07-26 14:47:56 +02:00
Victor Stinner
1d9457d2d2
Issue #19884 , readline: calling rl_variable_bind ("enable-meta-key", "off")
...
does crash on Mac OS X which uses libedit instead of readline.
2014-07-24 22:11:21 +02:00
Victor Stinner
63a474788a
Issue #19884 : readline: Disable the meta modifier key if stdout is not a
...
terminal to not write the ANSI sequence "\033[1034h" into stdout. This sequence
is used on some terminal (ex: TERM=xterm-256color") to enable support of 8 bit
characters.
2014-07-24 12:22:24 +02:00
Serhiy Storchaka
5d93f408d8
Call PyErr_NoMemory() when PyMem_Malloc() fails.
2014-07-14 12:20:01 +03:00
Benjamin Peterson
a83050196d
properly decref the return value of close()
2014-07-04 17:00:25 -07:00
Victor Stinner
f6b3c84a4a
Issue #21090 : io.FileIO.readall() does not ignore I/O errors anymore. Before,
...
it ignored I/O errors if at least the first C call read() succeed.
2014-07-02 23:12:48 +02:00
Raymond Hettinger
58ad24512a
Issue #19145 : Fix handling of negative values for a "times" keyword argument to itertools.repeat()>
...
(Patch contributed by Vajrasky Kok.)
2014-06-24 21:53:45 -07:00
Serhiy Storchaka
05b0a1be37
Issue #21310 : Fixed possible resource leak in failed open().
2014-06-09 13:32:08 +03:00
Benjamin Peterson
48f2e99808
backport hashlib.pbkdf2_hmac per PEP 466 ( closes #21304 )
...
Backport by Alex Gaynor.
2014-05-31 13:26:22 -07:00
Serhiy Storchaka
529a639669
Fixed possible integer overflow in getint, getdouble and getboolean too (issue #21552 ).
2014-05-30 14:28:21 +03:00
Serhiy Storchaka
2a0220b18a
Issue #21552 : Fixed possible integer overflow of too long string lengths in
...
the Tkinter module on 64-bit platforms.
2014-05-30 14:23:52 +03:00
Serhiy Storchaka
30080fd63d
Issue #10203 : sqlite3.Row now truly supports sequence protocol. In particular
...
it supports reverse() and negative indices. Original patch by Claudiu Popa.
2014-05-28 12:57:38 +03:00
Benjamin Peterson
d3d23636cb
support pep 3118 format strings for ctypes objects with nontrivial shapes ( closes #10744 )
...
Patch from Matti Picus.
2014-05-17 14:57:10 -07:00
Benjamin Peterson
8c166055f9
use logical rather than bit and
2014-05-11 16:17:02 -07:00
Benjamin Peterson
a1ccfb513b
cast away warnings
2014-05-11 16:14:00 -07:00
Benjamin Peterson
629026aecc
backport hmac.compare_digest to partially implement PEP 466 ( closes #21306 )
...
Backport from Alex Gaynor.
2014-05-11 16:11:44 -07:00
Raymond Hettinger
93434890dc
Issue 21375: Fix possible Py_ssizet overflow in heapq.
2014-05-03 15:27:14 -07:00
Antoine Pitrou
3ec903fce4
Issue #21321 : itertools.islice() now releases the reference to the source iterator when the slice is exhausted.
...
Patch by Anton Afanasyev.
2014-04-29 12:13:46 +02:00
Kristján Valur Jónsson
be580f2e48
Issue #20434 Correct error handlin of _PyString_Resize and _PyBytes_Resize
2014-04-25 09:51:21 +00:00
Andrew Kuchling
68e85e5834
#15840 : make docs consistent by saying operations on closed files raise ValueError.
...
Patch by Caelyn McAulay.
Neither Caelyn nor I could find any cases in 2.7 or 3.4/5 where an
operation on a closed stream raised IOError; generally the C
implementation have a macro to check for the stream being closed, and
these macros all raised ValueError. If we find any, a new bug should
be opened.
2014-04-15 16:07:52 -04:00
Benjamin Peterson
7fc8a10577
add missing NULL check
2014-04-14 19:57:52 -04:00
Benjamin Peterson
5c863bf938
when an exception is raised in fdopen, never close the fd (changing on my mind on #21191 )
2014-04-14 19:45:46 -04:00
Benjamin Peterson
3e5d87bb86
disallow a negative idx parameter
2014-04-14 11:43:09 -04:00
Benjamin Peterson
6c939cb6f6
in scan_once, prevent the reading of arbitrary memory when passed a negative index
...
Bug reported by Guido Vranken.
2014-04-13 22:10:38 -04:00