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