Vinay Sajip
e1f3afbde2
Issue #20160 : Handled passing of large structs to callbacks correctly.
2016-08-05 21:10:26 +01:00
Martin Panter
a850ef698e
Issue #27626 : Spelling fixes in docs, comments and internal names
...
Based on patch by Ville Skyttä.
2016-07-28 01:11:04 +00:00
Martin Panter
e2eacc02bc
Issue #23943 : Fix typos. Patch by Piotr Kasprzyk.
2016-07-28 03:04:04 +00:00
Victor Stinner
2e1a34025c
ctypes: fix CThunkObject_new()
...
* Initialize restype and flags fields to fix a crash when Python runs on a
read-only file system
* Use Py_ssize_t type rather than int for the "i" iterator variable
* Reorder assignements to be able to more easily check if all fields are
initialized
Issue #11048 . Initial patch written by Marcin Bachry.
2016-07-27 16:58:47 +02:00
Martin Panter
1e411c5c78
Issue #27130 : Fix handling of buffers exceeding (U)INT_MAX in “zlib” module
...
Ported from patches by Xiang Zhang, Nadeem Vawda, and myself.
2016-07-23 04:22:09 +00:00
Martin Panter
bf2dca96fb
English spelling and grammar fixes
2016-07-11 07:51:37 +00:00
Martin Panter
b362f75f6e
Issue #25523 : Correct "a" article to "an" article
...
This changes the main documentation, doc strings, source code comments, and a
couple error messages in the test suite. In some cases the word was removed
to fix the grammar.
2015-11-02 03:37:02 +00:00
Martin Panter
8c6849bfe6
Issue #23804 : Fix SSL zero-length recv() calls to not block and raise EOF
2016-07-11 00:17:13 +00:00
Benjamin Peterson
e5fa8b0b0d
initialize variable to appease gcc
2016-07-07 00:24:26 -07:00
Benjamin Peterson
42e1029564
assume egd unless OPENSSL_NO_EGD is defined—remove configure check ( closes #24557 )
2016-07-07 00:02:31 -07:00
Serhiy Storchaka
3c9ce74c21
Issue #23908 : os functions, open() and the io.FileIO constructor now reject
...
unicode paths with embedded null character on Windows instead of silently
truncate them.
2016-07-01 23:34:44 +03:00
Serhiy Storchaka
ff0d875ad1
array.buffer_info() should return a length as int, not long, for compatibility.
2016-06-24 08:38:59 +03:00
Serhiy Storchaka
0cc5a2b263
Fixed integer overflow and handled MemoryError in array.buffer_info().
2016-06-24 00:00:32 +03:00
Martin Panter
b3eaaf0bfc
Issue #22463 : Cure unused function warnings on AIX
2016-06-22 02:46:33 +00:00
Martin Panter
2924124259
Issue #22463 : Correct #endif placement; patch by Senthil Kumaran
2016-06-22 02:04:38 +00:00
Martin Panter
646b528467
Issue #22463 : Backport compiler warning fixes and workarounds
...
* Set but unused variable in Parser/pgen.c in non-debug builds. Patch by
Christian Heimes.
* Unused static function in Modules/readline.c. Patch by Georg Brandl.
* main_window unused in Modules/tkappinit.c. Patch by Gregory P. Smith.
* Dead assignment in Modules/_ctypes/cfield.c. Extracted from patch by Brett
Cannon.
* Expression result unused in PyObject_INIT macro expansions. Based on
patches by Christian Heimes.
* Load expat_config.h and therefore pyconfig.h before C stdlib headers are
loaded. This silences pre-processor warnings including '_POSIX_C_SOURCE
redefined'. Extracted from patch by Christian Heimes.
2016-06-21 23:58:05 +00:00
Martin Panter
4e6e565368
Fix English spelling and grammar errors
2016-06-20 07:52:50 +00:00
Serhiy Storchaka
f46d3afc51
ctypes: the type of b_size is Py_ssize_t.
2016-06-17 11:11:07 +03:00
Serhiy Storchaka
ef012cc7f7
Issue #27330 : Fixed possible leaks in the ctypes module.
2016-06-16 22:08:11 +03:00
Serhiy Storchaka
1f7586eeb9
Issue #25455 : Fixed a crash in repr of cElementTree.Element with recursive tag.
2016-06-12 10:06:32 +03:00
Benjamin Peterson
d244a8f7cb
upgrade expt to 2.1.1 ( closes #26556 )
2016-06-11 13:28:56 -07:00
Martin Panter
c9813d83f7
Issue #20699 : Document that “io” methods should accept memoryview
...
This matches the usage by BufferedReader, BufferedWriter, etc. Also document
and test that the write() methods should only access their argument before
they return.
2016-06-03 05:59:20 +00:00
Benjamin Peterson
b3e073cbb3
fix leak of keyfile_bytes
2016-06-08 23:18:51 -07:00
Benjamin Peterson
3b91de5a76
stop leaking certfile_bytes ( closes #27267 )
2016-06-08 23:16:36 -07:00
Benjamin Peterson
a48aa85da0
check the result of PyByteArray_Resize in readline() ( closes #27211 )
2016-06-03 22:20:44 -07:00
Benjamin Peterson
e725777eaf
remove (hilarious) defaults for various constants getpath.c needs
2016-06-02 12:41:35 -07:00
Martin Panter
8d496add74
Issue #27171 : Fix typos in documentation, code comments, and tests
2016-06-02 10:35:44 +00:00
Martin Panter
200a615774
Issue #27125 : Remove duplicated words from documentation and comments
2016-05-30 04:04:50 +00:00
Martin Panter
9c946bbf20
Issue #5784 : Expand documentation and tests for zlib wbits parameter
...
Based on documentation by AM Kuchling.
2016-05-27 07:32:11 +00:00
Martin Panter
b1d867f149
Issue #27076 : Doc, comment and test function name spelling fixes
...
Most fixes to Doc/ and Lib/ directories by Ville Skyttä.
2016-05-26 05:28:50 +00:00
Benjamin Peterson
59dd0e64ad
fix indentation and add curlies ( closes #27093 )
2016-05-23 22:47:50 -07:00
Serhiy Storchaka
12cf60c7fa
Issue #26168 : Fixed possible refleaks in failing Py_BuildValue() with the "N"
...
format unit.
2016-05-20 22:31:24 +03:00
Serhiy Storchaka
d0dc72b497
Issue #26995 : Added tests for "f", "d", "D", "S", "Y", and "U" format codes
...
in PyArg_ParseTuple().
2016-05-16 10:12:02 +03:00
Serhiy Storchaka
c6a7c96a8f
Backported tests for issue #18531 .
2016-05-16 09:55:32 +03:00
Martin Panter
f45c1755c3
Remove PEP 291 compatibility requirements for ctypes and modulefinder
...
https://mail.python.org/pipermail/python-dev/2016-May/144502.html
2016-05-14 07:25:37 +00:00
Serhiy Storchaka
22d8942b8d
Issue #25745 : Fixed leaking a userptr in curses panel destructor.
2016-05-09 00:11:59 +03:00
Martin Panter
4f23cabc16
Corrections for a/an in code comments and documentation
2016-05-08 13:45:55 +00:00
Serhiy Storchaka
4ef4edaa9f
Issue #26822 : Decreased an overhead of using _PyArg_NoKeywords() in calls of
...
itemgetter, attrgetter and methodcaller objects.
2016-04-29 09:12:38 +03:00
Serhiy Storchaka
0207e7699b
Issue #26822 : itemgetter, attrgetter and methodcaller objects no longer
...
silently ignore keyword arguments.
2016-04-23 10:53:28 +03:00
Martin Panter
5b48fa9fa4
Fix spelling (inital), grammar (may translates) in documentation, comments
2016-04-19 04:03:41 +00:00
Serhiy Storchaka
9a118f1dc3
Issue #26778 : Fixed "a/an/and" typos in code comment and documentation.
2016-04-17 09:37:36 +03:00
Martin Panter
bf02d18844
Fix typos in code comment and documentation
2016-04-16 09:28:57 +00:00
Martin Panter
6a8163a928
Correct “an” → “a” with “Unicode”, “user”, “UTF”, etc
...
This affects documentation and code comments.
2016-04-15 02:14:19 +00:00
Serhiy Storchaka
bb650631f2
Issue #26200 : Restored more safe usages of Py_SETREF.
2016-04-11 09:53:37 +03:00
Serhiy Storchaka
763a61ca95
Issue #26200 : Added Py_SETREF and replaced Py_XSETREF with Py_SETREF
...
in places where Py_DECREF was used.
2016-04-10 18:05:12 +03:00
Serhiy Storchaka
bc62af1bbe
Issue #22570 : Renamed Py_SETREF to Py_XSETREF.
2016-04-06 09:51:18 +03:00
Martin Panter
aad86a6015
Issue #6953 : Rearrange and expand Readline module documentation
...
* Group functions into six new subsections
* Document the underlying Readline function or variable accessed
* get_history_length() returns the history file limit
* clear_history() is conditionally compiled in
* Clarify zero and one bases for history item indexes
* parse_and_bind() uses its argument directly as an init line
* Change "command line" to "line buffer" for consistency
* read_init_file() also executes the file
* read_history_file() replaces the previous history
* write_history_file() overwrites any existing file
* Differentiate history file lines from history list items, which could be
multi-line
* Add more information about completion, also addressing Issue #10796
* libedit (Editline) may be used on any platform; detection is OS X specific
2016-04-05 07:37:22 +00:00
Martin Panter
ed06e8fa50
Issue #23735 : Avoid sighandler_t Gnu-ism
2016-04-03 08:00:49 +00:00
Martin Panter
a70c3239a7
Issue #23735 : Add SIGWINCH handler for Readline 6.3+ support, by Eric Price
2016-04-03 02:54:58 +00:00
Martin Panter
b8089b4dde
Issue #26644 : Raise ValueError for negative SSLSocket.recv() and read()
2016-03-27 05:35:19 +00:00
Martin Panter
b7036114fe
Issue #24266 : Cancel history search mode with Ctrl+C in Readline 7
2016-03-22 07:24:05 +00:00
Ned Deily
69d7f6a6a7
Issue #26505 : Fix typos in getaddrinfo license text.
...
Patch by Alex Willmer.
2016-03-07 14:51:19 -05:00
Ned Deily
3058eb418a
Issue #26406 : Avoid unnecessary serialization of getaddrinfo(3) calls on
...
current versions of OpenBSD and NetBSD. Patch by A. Jesse Jiryu Davis.
2016-02-23 22:03:39 +11:00
Benjamin Peterson
b2e3946d76
open the cert store readonly
...
Patch from Chi Hsuan Yen.
2016-02-17 22:13:19 -08:00
Ned Deily
1c2a7b5939
Issue #25924 : Avoid unnecessary serialization of getaddrinfo(3) calls on OS X
...
versions 10.5 or higher. Original patch by A. Jesse Jiryu Davis.
2016-02-15 16:51:24 +11:00
Charles-François Natali
674a3cd20b
Issue #24303 : Fix random EEXIST upon multiprocessing semaphores creation with
...
Linux PID namespaces enabled.
2016-02-12 22:39:21 +00:00
Martin Panter
53ae0ba6e3
Issue #26304 : Change "allows to <verb>" to "allows <verb>ing" or similar
...
The original form is incorrect grammar and feels awkward, even though the
meaning is clear.
2016-02-10 05:44:01 +00:00
Serhiy Storchaka
71b71763c5
Issue #25945 : Fixed bugs in functools.partial.
...
Fixed a crash when unpickle the functools.partial object with wrong state.
Fixed a leak in failed functools.partial constructor.
"args" and "keywords" attributes of functools.partial have now always types
tuple and dict correspondingly.
2016-02-02 18:45:59 +02:00
Martin Panter
1d269c1067
Issue #26244 : Clarify default zlib compression level in documentation
...
Based on patch by Aviv Palivoda.
2016-02-03 07:06:33 +00:00
Serhiy Storchaka
4b40c3e69e
Fixed a crash in new tests in test_getargs2 added in 60a2d67dacb3 (issue #26198 ).
2016-01-29 00:55:37 +02:00
Serhiy Storchaka
13ea0c5d9c
Fixed an infinite loop in zipimport caused by cebcd2fd3e1f (issue #19883 ).
2016-01-29 00:37:28 +02:00
Serhiy Storchaka
c4ef384d13
Issue #19883 : Fixed possible integer overflows in zipimport.
2016-01-28 21:32:53 +02:00
Serhiy Storchaka
3ecb6ab993
Issue #26198 : Added tests for string-related format units of PyArg_Parse*()
...
functions: "s", "s*", "s#", "t#", "z", "z*", "z#", "w", "w*", "w#", "u",
"u#", "es", "et", "es#", "et#" and "c".
2016-01-28 19:56:04 +02:00
Benjamin Peterson
5640bbb6c5
reject negative data_size
2016-01-21 22:02:46 -08:00
Benjamin Peterson
64ea192b73
prevent buffer overflow in get_data ( closes #26171 )
2016-01-20 22:23:44 -08:00
Benjamin Peterson
e4309f7f14
fix refleak in error condition
2016-01-20 22:06:43 -08:00
Victor Stinner
b5a1d7536d
Replace fpgetmask() with fedisableexcept()
...
Issue #24520 : On FreeBSD, fpgetmask() was deprecated long time ago.
fedisableexcept() is now preferred.
2016-01-20 22:30:58 +01:00
Brett Cannon
c39162de4a
Issue #26114 : Remove mention of 'Numerical Recipes'.
2016-01-15 09:41:49 -08:00
Benjamin Peterson
f30bad284b
remove some copyright notices supserseded by the toplevel ones
2016-01-01 11:53:47 -06:00
Serhiy Storchaka
2e6c829681
Issue #20440 : More use of Py_SETREF.
...
This patch is manually crafted and contains changes that couldn't be handled
automatically.
2015-12-27 15:41:58 +02:00
Serhiy Storchaka
8688acaf2e
Issue #20440 : Applied yet one patch for using Py_SETREF.
...
The patch is automatically generated, it replaces the code that uses Py_CLEAR.
2015-12-27 12:38:48 +02:00
Serhiy Storchaka
20a003bea4
Issue #24103 : Fixed possible use after free in ElementTree.iterparse().
2015-12-24 11:51:24 +02:00
Serhiy Storchaka
5951f2300f
Issue #20440 : Massive replacing unsafe attribute setting code with special
...
macro Py_SETREF.
2015-12-24 10:35:35 +02:00
Serhiy Storchaka
c06a6d0958
Issue #25421 : __sizeof__ methods of builtin types now use dynamic basic size.
...
This allows sys.getsize() to work correctly with their subclasses with
__slots__ defined.
2015-12-19 20:07:48 +02:00
Serhiy Storchaka
33ea29772d
Fixed possible leaks in ElementTree parser.
2015-12-09 19:44:30 +02:00
Serhiy Storchaka
45cf0b7f3e
Issue25814: Propagate all errors from custom XML parser handlers
...
in ElementTree.iterparse().
2015-12-06 23:51:53 +02:00
Serhiy Storchaka
048e107859
Fixed reference leak when read truncated pickle.
2015-12-01 00:32:49 +02:00
Serhiy Storchaka
b5b76c370b
Fixed compilation error introduced in 745fd5550bc0.
2015-11-26 11:21:47 +02:00
Serhiy Storchaka
c4c64be1b8
Issue #19687 : Fixed possible integer overflows in ElementTree.
...
Based on patch by Christian Heimes.
2015-11-25 20:12:58 +02:00
Serhiy Storchaka
80767a38c7
Issue #25725 : Fixed a reference leak in cPickle.loads() when unpickling
...
invalid data including tuple instructions.
2015-11-25 15:07:49 +02:00
Serhiy Storchaka
5c137669e3
Issue #23914 : Fixed SystemError raised by unpickler on broken pickle data.
2015-11-23 15:20:43 +02:00
Serhiy Storchaka
a0ae9ff006
Issue #19687 : Fixed memory leak on failed Element slice assignment.
2015-11-22 12:31:11 +02:00
Benjamin Peterson
93ed946dd9
rm trailing ws
2015-11-14 15:12:38 -08:00
Benjamin Peterson
c591936789
fix possible memory lea k in _get_aia_uri ( closes #25578 )
2015-11-14 15:12:18 -08:00
Benjamin Peterson
b1c1e673cb
fix build with older openssl ( #25569 )
2015-11-14 00:09:22 -08:00
Raymond Hettinger
f358d2b244
Second instance of deque needing "len" instead of "Py_SIZE" in Py2.7
2015-11-12 18:20:21 -08:00
Raymond Hettinger
3a75403880
Deque uses "len" instead of varhead in Py2.7
2015-11-12 07:18:45 -08:00
Benjamin Peterson
10aaca9941
always set OP_NO_SSLv3 by default ( closes #25530 )
2015-11-11 22:38:41 -08:00
Benjamin Peterson
59d451d68f
fix memory leak in _get_crl_dp ( closes #25569 )
...
Patch started by Stéphane Wirtel.
2015-11-11 22:07:38 -08:00
Serhiy Storchaka
da87e45add
Issue #892902 : Fixed pickling recursive objects.
2015-11-07 11:15:32 +02:00
Serhiy Storchaka
c72e66a048
Issue #25523 : Backported a-to-an corrections.
2015-11-02 15:06:09 +02:00
Martin Panter
dab305ef05
Issue #22413 : Document newline effect on StringIO initializer and getvalue
...
Also add to comment in the C code.
2015-10-10 02:52:30 +00:00
Raymond Hettinger
e904427285
Backport early-out 91259f061cfb to reduce the cost of bb1a2944bcb6
2015-10-06 23:12:02 -04:00
Berker Peksag
4e2947728c
Issue #25290 : Fix typo in csv.reader() docstring
...
Patch by Johannes Niediek.
2015-10-02 19:30:21 +03:00
Serhiy Storchaka
a8041ae565
Issue #25203 : Failed readline.set_completer_delims() no longer left the
...
module in inconsistent state.
2015-09-27 22:34:59 +03:00
Benjamin Peterson
96d2654fc7
fix spacing
2015-09-27 02:13:40 -07:00
Raymond Hettinger
d2a4073db2
Issue #25135 : Avoid possible reentrancy issues in deque_clear.
2015-09-26 00:52:57 -07:00
Victor Stinner
9a2326b362
Issue #24684 : socket.socket.getaddrinfo() now calls
...
PyUnicode_AsEncodedString() instead of calling the encode() method of the
host, to handle correctly custom unicode string with an encode() method which
doesn't return a byte string. The encoder of the IDNA codec is now called
directly instead of calling the encode() method of the string.
2015-09-11 12:42:13 +02:00
Martin Panter
6f80464f4a
Issue #25030 : Do not document seek() as if it accepts keyword arguments
...
Patch from Shiyao Ma.
2015-09-11 03:58:30 +00:00
Gregory P. Smith
0a8572800b
Don't left shift negative values. Use an unsigned value instead to avoid
...
undefined behavior.
2015-08-04 16:29:00 -07:00
Benjamin Peterson
d7a4f9ef8d
include fcntl.h on all *nix platforms ( closes #24217 )
...
Patch by Jeffrey Armstrong.
2015-08-02 12:15:30 -07:00
Zachary Ware
977be3e7b5
Issue #23652 : Make the select module compile against LSB headers.
...
Initial patch by Matt Frank.
2015-08-01 21:30:11 -05:00
Victor Stinner
e97944a27e
Issue #23319 : Fix ctypes.BigEndianStructure, swap correctly bytes. Patch
...
written by Matthieu Gautier.
2015-07-29 14:37:17 +02:00
Serhiy Storchaka
76a64ca438
Issue #24683 : Fixed a crash in _json.make_encoder() called with non-dict 1st argument.
2015-07-26 09:07:53 +03:00
Serhiy Storchaka
cf74c1996e
Issue #24613 : Calling array.fromstring() with self is no longer allowed
...
to prevent the use-after-free error. Patch by John Leitch.
2015-07-26 08:49:37 +03:00
Benjamin Peterson
7f18ac4a59
possible memory leak in error case ( closes #24719 )
...
Patch by Pankaj Sharma.
2015-07-25 10:20:13 -07:00
Benjamin Peterson
455a2a30a3
proper overflow checks for mymemreplace ( closes #24708 )
2015-07-24 23:25:35 -07:00
Serhiy Storchaka
045c451ff4
Issue #24704 : Fixed possible NULL pointer dereferencing in the _json module
...
initialization. Patch by Pankaj Sharma.
2015-07-24 12:58:25 +03:00
Serhiy Storchaka
3b77d01dbc
Issue #24620 : Random.setstate() now validates the value of state last element.
2015-07-24 09:02:53 +03:00
Serhiy Storchaka
affac0062d
Issue #24703 : Fixed resource leak on error in bsddb.verify().
...
Original patch by Pankaj Sharma.
2015-07-24 08:05:45 +03:00
Serhiy Storchaka
81c670d540
Initialize buf.outobj in multibyte encoder (closes issue #24702 ).
...
Patch by pankaj.s01.
2015-07-24 07:44:42 +03:00
Raymond Hettinger
fe13eac341
Issue #19663 : Improve error message for defaultdict.
2015-07-20 03:08:09 -04:00
Benjamin Peterson
65192c1756
improve style of the convert macro ( #24655 )
...
Patch by Brian Cain.
2015-07-18 10:59:13 -07:00
Serhiy Storchaka
be8c6ae56e
Issue #24611 : Fixed compiling the posix module on non-Windows platforms
...
without mknod() or makedev() (e.g. on Unixware).
2015-07-12 16:41:29 +03:00
Serhiy Storchaka
7865f218b4
Issue #18684 : Fixed reading out of the buffer in the re module.
2015-07-06 13:58:24 +03:00
Serhiy Storchaka
84af51d1b3
Issue #24456 : Fixed possible buffer over-read in adpcm2lin() and lin2adpcm()
...
functions of the audioop module. Fixed SystemError when the state is not a
tuple. Fixed possible memory leak.
2015-06-28 17:51:40 +03:00
Benjamin Peterson
1c72acf24c
ensure internal buffer is large enough for string after flushing ( closes #24481 )
2015-06-27 14:52:41 -05:00
Antoine Pitrou
0d2fac1fba
Issue #24489 : ensure a previously set C errno doesn't disturb cmath.polar().
2015-06-23 14:31:11 +02:00
Serhiy Storchaka
f0aa88f6e8
Fixed indentation of Python examples in C comments.
2015-06-11 00:06:27 +03:00
Serhiy Storchaka
c7797dc748
Issue #19543 : Emit deprecation warning for known non-text encodings.
...
Backported issues #19619 : encode() and decode() methods and constructors
of str, unicode and bytearray classes now emit deprecation warning for known
non-text encodings when Python is ran with the -3 option.
Backported issues #20404 : io.TextIOWrapper (and hence io.open()) now uses the
internal codec marking system added to emit deprecation warning for known non-text
encodings at stream construction time when Python is ran with the -3 option.
2015-05-31 20:21:00 +03:00
Serhiy Storchaka
dc967c137c
Fixed the array module in unicode disabled build (regression of issue20014).
2015-05-31 11:56:48 +03:00
Serhiy Storchaka
062bed289b
Issue #24264 : Fixed buffer overflow in the imageop module.
2015-05-31 09:05:10 +03:00
Serhiy Storchaka
5127ed727c
Issue #24115 : Update uses of PyObject_IsTrue(), PyObject_Not(),
...
PyObject_IsInstance(), PyObject_RichCompareBool() and _PyDict_Contains()
to check for and handle errors correctly.
2015-05-30 17:45:12 +03:00
Serhiy Storchaka
1e95340bc3
Issue #24326 : Fixed audioop.ratecv() with non-default weightB argument.
...
Original patch by David Moore.
2015-05-30 00:53:26 +03:00
Serhiy Storchaka
80cb186b49
Issue #24257 : Fixed segmentation fault in sqlite3.Row constructor with faked
...
cursor type.
2015-05-22 11:00:40 +03:00
Serhiy Storchaka
25598f35d7
Issue #24091 : Fixed various crashes in corner cases in cElementTree.
2015-05-18 18:28:57 +03:00
Serhiy Storchaka
b70091a8d5
Issue #20014 : array.array() now accepts unicode typecodes. Based on patch by
...
Vajrasky Kok.
2015-05-16 17:11:41 +03:00
Benjamin Peterson
f465e0f929
merge 2.7.10 release branch
2015-05-15 12:19:41 -04:00
Benjamin Peterson
5863a39603
deque is not varsized, so using Py_SIZE is nonsensical ( closes #24162 )
2015-05-15 12:19:18 -04:00
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
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
Benjamin Peterson
02ab7a84ef
make sure fdopen always closes the fd in error cases ( closes #21191 )
2014-04-09 15:40:18 -04:00
Benjamin Peterson
d42f60ed81
fix overflow detection of strop.expandtabs
2014-03-30 20:09:44 -04:00
Ned Deily
b693e9fc5b
Issue #6676 : Ensure a meaningful exception is raised when attempting
...
to parse more than one XML document per pyexpat xmlparser instance.
(Original patches by Hirokazu Yamamoto and Amaury Forgeot d'Arc, with
suggested wording by David Gutteridge)
2014-03-27 16:38:32 -07:00
Benjamin Peterson
e3af6f0a88
fix ctypes test alignment assumptions ( closes #20946 )
...
Patch by Andreas Schwab.
2014-03-16 10:07:26 +01:00
Georg Brandl
6d07641fce
#13530 : port to 2.7 branch (document what os.lseek returns).
2014-03-11 10:28:56 +01:00
Serhiy Storchaka
e50fe4c9eb
Issue #20283 : RE pattern methods now accept the string keyword parameters
...
as documented. The pattern and source keyword parameters are left as
deprecated aliases.
2014-03-06 12:24:29 +02:00
Benjamin Peterson
384e9cb3a1
finish backing out #19081
2014-02-16 14:46:57 -05:00
Benjamin Peterson
e9aab0fb98
backout #19081 to fix #20621
2014-02-16 14:20:14 -05:00
Serhiy Storchaka
1d19f97eed
Issue #17671 : Fixed a crash when use non-initialized io.BufferedRWPair.
...
Based on patch by Stephen Tu.
2014-02-12 10:52:07 +02:00
Benjamin Peterson
2748c5c106
avoid name clash with posix_close ( closes #20594 )
2014-02-11 10:16:16 -05:00
Serhiy Storchaka
98a9722e4a
Issue #20437 : Fixed 43 potential bugs when deleting objects references.
2014-02-09 13:14:04 +02:00
Ned Deily
ddc697f212
Issue #20374 : delete spurious empty line
2014-02-05 17:01:41 -08:00
Ned Deily
b0fd12d96c
Issue #20374 : Avoid compiler warnings when compiling readline with libedit.
2014-02-05 16:52:26 -08:00
Serhiy Storchaka
ccffb25c54
Issue #20368 : The null character now correctly passed from Tcl to Python (in
...
unicode strings only). Improved error handling in variables-related commands.
2014-02-03 21:23:46 +02:00
Gregory P. Smith
aaef0e7821
Remove inaccurate comment and a the related recently added
...
Py_VerboseFlag print that can never be triggered.
prefix[0] is always equal to 0 at this point in the code.
2014-01-27 22:43:25 -08:00
Gregory P. Smith
027ab39014
Issue #19081 : Remove the zipimporter.files reference as the zip TOC
...
caches are module global in the zip_directory_cache. When it is
updated due to a changed zip file, all zipimporter instances need to
see the same updates TOC cache. This fixes the bug for the overlooked
submodule import case from the earlier round of changes. Includes
tests that would fail otherwise.
It also refactors zipimporter_init in the process to make it a bit
easier to read and understand. Less reuse of the same variable for
multiple purposes and the local path buffer is malloc'ed instead
of consuming a large MAXPATHLEN+2 chunk stack space.
2014-01-27 00:15:10 -08:00
Benjamin Peterson
0ac0eadf8d
new plan: just remove typecasts ( closes #20374 )
2014-01-24 11:44:16 -05:00
Benjamin Peterson
ce75105e10
use new readline function types ( closes #20374 )
2014-01-24 00:32:12 -05:00
Serhiy Storchaka
e0ed2d75c8
Issue #19936 : Added executable bits or shebang lines to Python scripts which
...
requires them. Disable executable bits and shebang lines in test and
benchmark files in order to prevent using a random system python, and in
source files of modules which don't provide command line interface.
2014-01-16 18:59:17 +02:00
Benjamin Peterson
9e79889184
remove overly strict assertion ( closes #20251 )
2014-01-14 00:21:49 -05:00
Benjamin Peterson
06e486c2d3
correct defaultdict signature in docstring ( closes #20250 )
...
Patch from Andrew Barnert.
2014-01-13 23:56:05 -05:00
Benjamin Peterson
28cf368c1b
complain when nbytes > buflen to fix possible buffer overflow ( closes #20246 )
2014-01-13 22:59:38 -05:00
Antoine Pitrou
3b2afbbf88
Issue #20207 : Always disable SSLv2 except when PROTOCOL_SSLv2 is explicitly asked for.
2014-01-09 19:52:12 +01:00
Benjamin Peterson
7251fe10ff
fix zipimport ref leak
2014-01-09 09:36:10 -06:00
Gregory P. Smith
6de7260877
cleanup for the issue 19081 fix - pull the file open and close outside of the
...
zip_searchorder scanning loop in get_module_code().
[already done in 3.3 and 3.4]
2014-01-07 18:39:48 -08:00
Gregory P. Smith
ad3e72557c
Should fix the issue19081 fix on Windows. Don't let the previous
...
posix module ImportError cause the nt module import to fail.
2014-01-07 01:11:09 -08:00
Gregory P. Smith
b48c5d5107
Fixes issue19081: When a zipimport .zip file in sys.path being imported
...
from is modified during the lifetime of the Python process after
zipimport has already opened and cached the zip's table of contents
it now fstat's the file after opening it upon every attempt to access
anything within and will re-read the table of contents if the .zip file
inode, size or mtime have changed.
It would've been nicer to hold any .zip file used by zipimport open for the
duration of the process but that would be more invasive and add an additional
open file descriptor to all zipimport using processes. It also would likely
not fix the problem on Windows due to different filesystem semantics.
2014-01-06 09:46:46 -08:00
Victor Stinner
9450219b06
Issue #20026 : Fix the sqlite module to handle correctly invalid isolation level
...
(wrong type).
2013-12-19 16:44:48 +01:00
Serhiy Storchaka
0c221beed4
Issue #18829 : csv.Dialect() now checks type for delimiter, escapechar and
...
quotechar fields. Original patch by Vajrasky Kok.
2013-12-19 16:26:56 +02:00
Gregory P. Smith
ddd71e2f78
remove trailing spaces.
2013-12-18 11:25:26 -08:00
Serhiy Storchaka
15df36bb14
Issue #16404 : Add checks for return value of PyInt_FromLong() in
...
sys.getwindowsversion() and ossaudiodev.setparameters().
Reported by Ned Batchelder.
2013-12-17 15:09:45 +02:00
Serhiy Storchaka
a92cc91ee6
Issue #17919 : Fixed integer overflow in the eventmask parameter.
2013-12-14 19:11:04 +02:00
Serhiy Storchaka
17f22c9281
Issue #17919 : select.poll.poll() again works with poll.POLLNVAL on AIX.
2013-12-13 12:09:05 +02:00
Victor Stinner
66c6e9dcb4
Issue #14432 : Generator now clears the borrowed reference to the thread state
...
Fix a crash when a generator is created in a C thread that is destroyed while
the generator is still used. The issue was that a generator contains a frame,
and the frame kept a reference to the Python state of the destroyed C thread.
The crash occurs when a trace function is setup.
2013-12-13 02:37:09 +01:00
Serhiy Storchaka
5493d5ea2a
Issue #19099 : The struct module now supports Unicode format strings.
2013-12-08 17:44:50 +02:00
Nadeem Vawda
337c50b8cb
Closes #19878 : Fix segfault in bz2 module.
...
Initial patch by Vajrasky Kok.
2013-12-08 15:31:50 +01:00
Alexandre Vassalotti
df9460f8dc
Issue #6477 : Revert fbb97f6eb3b3 as it broke test_xpickle.
2013-11-30 17:43:42 -08:00
Alexandre Vassalotti
a2934280e5
Issue #6477 : Added pickling support for singletons and their types.
2013-11-30 16:52:03 -08:00
Eli Bendersky
71142c4e86
Fix indentation from previous commit
2013-11-28 06:37:25 -08:00
Eli Bendersky
f933e081dd
Issue #19815 : Fix segfault when parsing empty namespace declaration.
...
Based on patches by Christian Heimes and Vajrasky Kok
2013-11-28 06:25:45 -08:00
Serhiy Storchaka
dafda9b042
Issue #11489 : JSON decoder now accepts lone surrogates.
2013-11-26 21:25:15 +02:00
R David Murray
a691219716
backport #18985 : Improve fcntl documentation.
2013-11-07 10:52:53 -05:00
Christian Heimes
41a7d5ee17
Issue #19227 / Issue #18747 : Remove pthread_atfork() handler to remove OpenSSL re-seeding
...
It is causing trouble like e.g. hanging processes.
2013-10-29 20:50:01 +01:00
Serhiy Storchaka
fdb73ed486
Issue #19405 : Fixed outdated comments in the _sre module.
2013-10-27 08:00:57 +02:00
Benjamin Peterson
657d06b13e
just return toplevel symbol table rather than all blocks ( closes #19393 )
2013-10-26 13:13:51 -04:00
Mark Dickinson
36f6e2c9e0
Issue #18739 : Fix inconsistent results from math.log(n) and math.log(long(n))
2013-10-13 10:55:15 +01:00
Ned Deily
62a192931b
Issue #18458 : Prevent crashes with newer versions of libedit. Its readline
...
emulation has changed from 0-based indexing to 1-based like gnu readline.
Original patch by Ronald Oussoren.
2013-10-12 15:45:25 -07:00
Ned Deily
ebca3a5ab9
Issue #19147 : Fix docstring for fcntl.flock to refer to correct man section.
2013-10-02 12:20:18 -07:00
Antoine Pitrou
87c99a0d37
Properly initialize all fields of a SSL object after allocation.
2013-09-29 19:52:45 +02:00
Serhiy Storchaka
cf29ba8cf0
Issue #18672 : Fixed format specifiers for Py_ssize_t in debugging output in
...
the _sre moduel.
2013-09-05 18:02:57 +03:00
Christian Heimes
5eb6e3b40d
Issue #18709 : GCC 4.6 complains that 'v' may be used uninitialized in GEN_EMAIL/GEN_URI/GEN_DNS case
2013-09-05 16:05:50 +02:00
Christian Heimes
ed9884b2d0
Issue #18709 : GCC 4.6 complains that 'v' may be used uninitialized in GEN_EMAIL/GEN_URI/GEN_DNS case
2013-09-05 16:04:35 +02:00
Victor Stinner
930c3c9e43
Issue #18909 : Fix _tkinter.tkapp.interpaddr() on Windows 64-bit, don't cast
...
64-bit pointer to long (32 bits).
2013-09-05 00:26:15 +02:00
Antoine Pitrou
213fec4bff
Issue #18876 : The FileIO.mode attribute now better reflects the actual mode under which the file was opened.
...
Patch by Erik Bray.
2013-09-04 20:46:33 +02:00
Eli Bendersky
e6802db7d1
Close #18912 : Fix indentation in docstring
...
Contributed by Jeroen Van Goey
2013-09-03 06:41:58 -07:00
Ezio Melotti
6d0f0f299b
#18803 : fix more typos. Patch by Févry Thibault.
2013-08-26 01:31:30 +03:00
Christian Heimes
42831fefa7
Issue #11973 : Fix a problem in kevent. The flags and fflags fields are now
...
properly handled as unsigned.
2013-08-25 14:57:00 +02:00
Christian Heimes
8ee5ffddf5
Issue #18747 : Fix spelling errors in my commit message and comments,
...
thanks to Vajrasky Kok for proof-reading.
2013-08-25 14:19:16 +02:00
Barry Warsaw
82f8828317
- Issue #18709 : Fix CVE-2013-4238. The SSL module now handles NULL bytes
...
inside subjectAltName correctly. Formerly the module has used OpenSSL's
GENERAL_NAME_print() function to get the string represention of ASN.1
strings for `rfc822Name` (email), `dNSName` (DNS) and
`uniformResourceIdentifier` (URI).
2013-08-23 13:26:49 -04:00
Serhiy Storchaka
2ac1c1a31d
Issue #16809 : Tkinter's splitlist() and split() methods now accept Tcl_Obj
...
argument.
This is needed for support Tcl/Tk 8.6.
2013-08-22 17:42:45 +03:00
Christian Heimes
1d0f73d20f
Issue #18747 : Use a parent atfork handler instead of a child atfork handler.
...
fork() is suppose to be async-signal safe but the handler calls unsafe functions. A parent handler mitigates the issue.
2013-08-22 13:19:48 +02:00
Serhiy Storchaka
4203570d01
Issue #17119 : Fixed integer overflows when processing large Unicode strings
...
and tuples in the tkinter module.
2013-08-21 21:46:12 +03:00
Christian Heimes
0d604cf65e
Issue #18747 : Re-seed OpenSSL's pseudo-random number generator after fork.
...
A pthread_atfork() child handler is used to seeded the PRNG with pid, time
and some stack data.
2013-08-21 13:26:05 +02:00
Serhiy Storchaka
c360389453
Issue #8865 : Concurrent invocation of select.poll.poll() now raises a
...
RuntimeError exception. Patch by Christian Schubert.
2013-08-20 20:38:21 +03:00