Raymond Hettinger
3aee092ecb
Defend against a mutation during comparison
2015-05-11 20:00:25 -07:00
Benjamin Peterson
72c0141f03
ensure .keywords is always a dict
2015-05-09 00:23:41 -04:00
Benjamin Peterson
36691efe7b
fix libffi compilation on FreeBSD ( #23042 )
...
Patch from Marc-Andre Lemburg.
2015-05-08 21:31:36 -04:00
Larry Hastings
101b054c32
Issue #20274 : When calling a _sqlite.Connection, it now complains if passed
...
any keyword arguments. Previously it silently ignored them. Also: Remove
ignored and erroneous "kwargs" parameters from three METH_VARARGS methods
on _sqlite.Connection.
2015-05-08 09:56:29 -07:00
Raymond Hettinger
79f2c5b8e0
Defer deleted item decref until after the deque is restored to a consistent state.
2015-05-02 10:53:27 -07:00
Raymond Hettinger
89543dd992
Issues #24099 , #24100 , and #24101 : Fix free-after-use bug in heapq.
2015-05-02 10:26:57 -07:00
Benjamin Peterson
3a34a72e78
remove extern definition, since it's in a header file ( closes #24058 )
2015-04-26 15:55:06 -04:00
Serhiy Storchaka
656ffdb4de
Issue #16840 . Turn off bignum support in tkinter with with Tcl earlier than 8.5.8
...
(tclTomMath.h was broken) and non-final Tcl 8.6.
2015-04-21 21:17:33 +03:00
Serhiy Storchaka
02d0298f41
Issue #16840 : Turn on support of bignums only in final release of Tcl 8.5.
2015-04-20 14:05:37 +03:00
Serhiy Storchaka
9aa16d93c9
Issue #23842 : os.major(), os.minor() and os.makedev() now support ints again.
2015-04-20 09:21:23 +03:00
doko@ubuntu.com
9e7ece271f
- Use PLATDIR for the platform directory everywhere (refactoring only)
2015-04-13 21:55:08 +02:00
Serhiy Storchaka
461295443f
Issue #21859 : Corrected FileIO docstrings.
2015-04-10 16:08:33 +03:00
Benjamin Peterson
9c5a8d4e23
remove extra arguments in arg parsing format codes ( closes #23875 )
2015-04-06 13:05:22 -04:00
Serhiy Storchaka
f29bc70bff
Issue #15133 : _tkinter.tkapp.getboolean() now supports long and Tcl_Obj and
...
always returns bool. tkinter.BooleanVar now validates input values (accepted
bool, int, long, str, unicode, and Tcl_Obj). tkinter.BooleanVar.get() now
always returns bool.
2015-04-04 12:42:25 +03:00
Serhiy Storchaka
37943b07fe
Issue #23338 : Fixed formatting ctypes error messages on Cygwin.
...
Patch by Makoto Kato.
2015-04-04 10:05:35 +03:00
Serhiy Storchaka
c77c5b5f03
Issue #16840 : Tkinter now supports 64-bit integers added in Tcl 8.4 and
...
arbitrary precision integers added in Tcl 8.5.
2015-04-02 18:46:30 +03:00
Victor Stinner
31c7e4fb1a
Issue #23834 : Fix socket.sendto(), use the C long type to store the result of
...
sendto() instead of the C int type.
2015-04-02 17:19:17 +02:00
Serhiy Storchaka
cba6b5d045
Issue #21526 : Tkinter now supports new boolean type in Tcl 8.5.
2015-04-02 10:35:57 +03:00
Benjamin Peterson
a5a44aba3f
remove assignment in conditional
2015-04-01 11:16:40 -04:00
Serhiy Storchaka
96d8012964
Issue #23785 : Fixed memory leak in TextIOWrapper.tell() in rare circumstances.
2015-03-30 10:00:49 +03:00
Serhiy Storchaka
aa64c46ac9
Issue #23781 : Add private helper function _PyErr_ReplaceException() that
...
corresponds _PyErr_ChainExceptions() in Python 3 to help porting patches
from Python 3.
2015-03-30 09:48:42 +03:00
Serhiy Storchaka
f95a57f9a1
Issue #21802 : The reader in BufferedRWPair now is closed even when closing
...
writer failed in BufferedRWPair.close().
2015-03-24 23:23:42 +02:00
Benjamin Peterson
72ef961059
expose X509_V_FLAG_TRUSTED_FIRST
2015-03-04 22:49:41 -05:00
Benjamin Peterson
b1ebba5bd5
enable X509_V_FLAG_TRUSTED_FIRST when possible ( closes #23476 )
2015-03-04 22:11:12 -05:00
Antoine Pitrou
34c8d98306
Issue #23576 : Avoid stalling in SSL reads when EOF has been reached in the SSL layer but the underlying connection hasn't been closed.
2015-03-04 20:51:55 +01:00
Benjamin Peterson
b027c6cae0
fix possible overflow bugs in unicodedata ( closes #23367 )
2015-03-02 11:17:05 -05:00
Serhiy Storchaka
b8285d96f4
Issue #22113 : struct.pack_into() now supports new buffer protocol (in
...
particular accepts writable memoryview).
2015-02-21 19:51:17 +02:00
Serhiy Storchaka
021d55ff74
Issue #23215 : Multibyte codecs with custom error handlers that ignores errors
...
consumed too much memory and raised SystemError or MemoryError.
Original patch by Aleksi Torhamo.
2015-02-21 01:19:17 +02:00
Serhiy Storchaka
3173f7c904
Issue #5700 : io.FileIO() called flush() after closing the file.
...
flush() was not called in close() if closefd=False.
2015-02-21 00:34:20 +02:00
Serhiy Storchaka
a2269d074b
Issue #23446 : Use PyMem_New instead of PyMem_Malloc to avoid possible integer
...
overflows. Added few missed PyErr_NoMemory().
2015-02-16 13:16:07 +02:00
Serhiy Storchaka
4068b01cb5
Issue #23392 : Added tests for marshal C API that works with FILE*.
2015-02-06 08:56:33 +02:00
Serhiy Storchaka
42aa9c078a
Issues #23363 , #23364 , #23365 , #23366 : Fixed itertools overflow tests.
...
Used PyMem_New to check overflow.
2015-02-03 01:34:09 +02:00
Benjamin Peterson
dda9121ad1
check for overflows in permutations() and product() ( closes #23363 , closes #23364 )
2015-02-01 21:34:07 -05:00
Benjamin Peterson
17845c1786
check for overflow in combinations_with_replacement ( closes #23365 )
2015-02-01 21:10:47 -05:00
Benjamin Peterson
021dec1c96
detect overflow in combinations ( closes #23366 )
2015-02-01 20:59:00 -05:00
Stefan Krah
0a7fc53be2
Issue #23370 : Fix off-by-one error for non-contiguous buffers.
2015-02-01 16:10:35 +01:00
Stefan Krah
5606cd9800
Issue #23349 : Fix off-by-one error in PyBuffer_ToContiguous(). Initial patch
...
by Richard Hansen.
2015-01-30 20:11:10 +01:00
Benjamin Peterson
a99e48c2b2
ifdef our way to compatibility with old openssl ( closes #23335 )
2015-01-28 12:06:39 -05:00
Benjamin Peterson
f4bb2311b1
disable ALPN on LibreSSL, which has a large version number, but not ALPN support ( closes #23329 )
2015-01-27 11:10:18 -05:00
Benjamin Peterson
aa7075845c
prefer server alpn ordering over the client's
2015-01-23 17:30:26 -05:00
Benjamin Peterson
b10bfbe036
pep 466 backport of alpn ( #20188 )
2015-01-23 16:35:37 -05:00
Antoine Pitrou
c3edc19afc
Issue #23248 : Update ssl error codes from latest OpenSSL git master.
2015-01-18 17:39:32 +01:00
Serhiy Storchaka
e8c9e14af9
Issue #23181 : More "codepoint" -> "code point".
2015-01-18 11:42:50 +02:00
Serhiy Storchaka
2098d61aab
Issue #23098 : 64-bit dev_t is now supported in the os module.
2015-01-18 11:11:25 +02:00
Benjamin Peterson
07f90476b9
fix instances of consecutive articles ( closes #23221 )
...
Patch by Karan Goel.
2015-01-13 09:17:24 -05:00
Mark Dickinson
a024f80a71
Issue #21902 : Replace incorrect 'hyperbolic arc sine' (etc.) with 'inverse hyperbolic sine' (etc.). Remove meaningless reference to radians.
2015-01-11 13:03:06 +00:00
Victor Stinner
7c90667f74
Issue #21356 : Make ssl.RAND_egd() optional to support LibreSSL. The
...
availability of the function is checked during the compilation. Patch written
by Bernard Spil.
2015-01-06 13:53:37 +01:00
Benjamin Peterson
53ae6145a0
allow more operations to work on detached streams ( closes #23093 )
...
Patch by Martin Panter.
2014-12-21 20:51:50 -06:00
Benjamin Peterson
daa491b6d7
merge 2.7.9 release branch
2014-12-05 22:02:33 -05:00
Benjamin Peterson
60766c47e7
allow ssl module to compile if openssl doesn't support SSL 3 ( closes #22935 )
...
Patch by Kurt Roeckx.
2014-12-05 21:59:35 -05:00
Serhiy Storchaka
0f8f784a77
Removed duplicated words in in comments and docs.
2014-12-01 18:16:30 +02:00
Benjamin Peterson
31aa69ead5
allow hostname to be passed to SSLContext even if OpenSSL doesn't support SNI ( closes #22921 )
...
Patch from Donald Stufft.
2014-11-23 20:13:31 -06:00
Serhiy Storchaka
069bdcbb25
Issue #22821 : Fixed fcntl() with integer argument on 64-bit big-endian
...
platforms.
2014-11-10 10:42:06 +02:00
Benjamin Peterson
9dcab59b08
fix test where sizeof(long) != sizeof(int)
2014-11-06 00:52:58 -05:00
Steve Dower
31221a7285
Issue #20160 : broken ctypes calling convention on MSVC / 64-bit Windows (large structs). Patch by mattip
2014-11-05 19:16:05 -08:00
Antoine Pitrou
06c14976dc
Issue #22773 : fix failing test with old readline versions due to issue #19884 .
2014-11-04 14:52:10 +01:00
Benjamin Peterson
93c41335ab
allow keyfile argument to be None ( closes #22787 )
2014-11-03 21:12:05 -05:00
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