Gregory P. Smith
1f83866ecd
Rename a local variable for readability and change a "this can't
...
happen" print() call into a RuntimeWarning as it should've been in the
first place. Because nothing should ever cause unexpected stdout output.
2012-11-10 23:33:56 -08:00
Gregory P. Smith
f44c9da166
Rename a local variable for readability and change a "this can't
...
happen" print() call into a RuntimeWarning as it should've been in the
first place. Because nothing should ever cause unexpected stdout output.
2012-11-10 23:33:17 -08:00
Gregory P. Smith
561cbc4e7b
Fixes issue #16327 : The subprocess module no longer leaks file descriptors
...
used for stdin/stdout/stderr pipes to the child when fork() fails.
2012-11-10 22:33:23 -08:00
Gregory P. Smith
3d8e776cd9
Fixes issue #16327 : The subprocess module no longer leaks file descriptors
...
used for stdin/stdout/stderr pipes to the child when fork() fails.
2012-11-10 22:32:22 -08:00
Gregory P. Smith
f328d79223
Fixes issue #14396 : Handle the odd rare case of waitpid returning 0
...
when not expected in subprocess.Popen.wait().
2012-11-10 21:06:18 -08:00
Gregory P. Smith
2ec82331b2
Fixes issue #14396 : Handle the odd rare case of waitpid returning 0 when
...
not expected in subprocess.Popen.wait().
2012-11-10 20:52:29 -08:00
Nadeem Vawda
ec6dfcffa0
Issue #16411 : Fix a bug where zlib.decompressobj().flush() might try to access previously-freed memory.
...
Patch by Serhiy Storchaka.
2012-11-11 03:16:44 +01:00
Nadeem Vawda
7ee955550b
Issue #16411 : Fix a bug where zlib.decompressobj().flush() might try to access previously-freed memory.
...
Patch by Serhiy Storchaka.
2012-11-11 03:15:32 +01:00
Nadeem Vawda
dd1253abdd
Issue #16350 , part 2: Set unused_data (and unconsumed_tail) correctly in decompressobj().flush().
...
Additionally, fix a bug where a MemoryError in allocating a bytes object could
leave the decompressor object in an invalid state (with its unconsumed_tail
member being NULL).
Patch by Serhiy Storchaka.
2012-11-11 02:21:22 +01:00
Nadeem Vawda
ee7889dec3
Issue #16350 , part 2: Set unused_data (and unconsumed_tail) correctly in decompressobj().flush().
...
Additionally, fix a bug where a MemoryError in allocating a bytes object could
leave the decompressor object in an invalid state (with its unconsumed_tail
member being NULL).
Patch by Serhiy Storchaka.
2012-11-11 02:14:36 +01:00
Antoine Pitrou
73e9bd4d25
Issue #16357 : fix calling accept() on a SSLSocket created through SSLContext.wrap_socket().
...
Original patch by Jeff McNeil.
2012-11-11 01:27:33 +01:00
Antoine Pitrou
5c89b4ec55
Issue #16357 : fix calling accept() on a SSLSocket created through SSLContext.wrap_socket().
...
Original patch by Jeff McNeil.
2012-11-11 01:25:36 +01:00
Gregory P. Smith
6d9388faab
Fix test_urllib broken by my previous commits. The assumptions it was
...
testing were added as part of the issue10050 change that caused the
wrong behavior in the first place. now all test cases agree on the
behavior.
2012-11-10 15:12:55 -08:00
Stefan Krah
6e467049c6
Accept Unicode legacy strings in the Decimal constructor.
2012-11-10 23:09:04 +01:00
Gregory P. Smith
6b0bdab429
Fixes issue #16409 : The reporthook callback made by the legacy
...
urllib.request.urlretrieve API now properly supplies a constant
non-zero block_size as it did in Python 3.2 and 2.7. This matches the
behavior of urllib.request.URLopener.retrieve.
2012-11-10 13:43:44 -08:00
Stefan Krah
0f82b76b57
Issue #16431 : Finally, consider all permutations.
2012-11-08 11:17:29 +01:00
Ezio Melotti
9cfa1ff891
#16433 : merge with 3.2.
2012-11-08 11:09:13 +02:00
Ezio Melotti
90eea97a33
#16433 : fix docstring of assertNotEqual.
2012-11-08 11:08:39 +02:00
Stefan Krah
ed16eff57e
Issue #16431 : Also fix the opposite direction.
2012-11-07 23:47:19 +01:00
Stefan Krah
f4abc7b8a0
Issue #16431 : Use the type information when constructing a Decimal subtype
...
from a Decimal argument.
2012-11-07 23:12:25 +01:00
Hynek Schlawack
33363f43e3
Issue #15001 : fix segfault on "del sys.module['__main__']"
...
Patch by Victor Stinner.
2012-11-07 09:07:22 +01:00
Hynek Schlawack
5c6b3e214c
Issue #15001 : fix segfault on "del sys.module['__main__']"
...
Patch by Victor Stinner.
2012-11-07 09:02:24 +01:00
Stefan Krah
c3fb3c3fa0
Backport fc8f1b1c76bf.
2012-11-06 23:27:24 +01:00
Nick Coghlan
1de70b52a4
Merge #6717 crasher from 3.2
2012-11-05 21:32:11 +10:00
Nick Coghlan
692b023f77
Record a known crasher from #6717
2012-11-05 21:26:57 +10:00
Nick Coghlan
32dd36bdce
The migration to importlib eliminated this crasher
...
If anyone finds another recursive C path that bypasses the recursion
limiting, they can add a new crasher example.
2012-11-05 20:40:25 +10:00
Victor Stinner
9d95cbeaf9
Close #15165 : Fix test_email on Windows 64 bits
...
Use year 1990 instead of year 1970 to avoid issues with negative timestamps.
2012-11-05 02:06:13 +01:00
Nadeem Vawda
519f43844b
Issue #16350 : Fix zlib decompressor handling of unused_data with multiple calls to decompress() after EOF.
...
Patch by Serhiy Storchaka.
2012-11-05 00:38:48 +01:00
Nadeem Vawda
39079946a2
Issue #16350 : Fix zlib decompressor handling of unused_data with multiple calls to decompress() after EOF.
...
Patch by Serhiy Storchaka.
2012-11-05 00:37:42 +01:00
Ezio Melotti
570942e208
#5057 : null merge with 3.2 (only add tests).
2012-11-05 00:13:57 +02:00
Ezio Melotti
6c5f5210be
#5057 : the peepholer no longer optimizes subscription on unicode literals (e.g. u"foo"[0]) in order to produce compatible pyc files between narrow and wide builds.
2012-11-05 00:06:32 +02:00
Ezio Melotti
f7ed5d111b
#8271 : the utf-8 decoder now outputs the correct number of U+FFFD characters when used with the "replace" error handler on invalid utf-8 sequences. Patch by Serhiy Storchaka, tests by Ezio Melotti.
2012-11-04 23:21:38 +02:00
Nick Coghlan
aab9c2b2ea
Issue #5765 : Apply a hard recursion limit in the compiler
...
Previously, excessive nesting in expressions would blow the
stack and segfault the interpreter. Now, a hard limit based
on the configured recursion limit and a hardcoded scaling
factor is applied.
2012-11-04 23:14:34 +10:00
Mark Dickinson
1321edaa55
Issue #16402 : Merge fix from 3.2
2012-11-04 11:47:05 +00:00
Mark Dickinson
8cd1c7681d
Issue #16402 : In range slicing, fix shadowing of exceptions from __index__ method.
2012-11-04 11:46:17 +00:00
Ezio Melotti
a0b5c46fa2
#16336 : merge with 3.2.
2012-11-03 23:04:41 +02:00
Ezio Melotti
540da76115
#16336 : fix input checking in the surrogatepass error handler. Patch by Serhiy Storchaka.
2012-11-03 23:03:39 +02:00
Ezio Melotti
7376801f61
#8401 : merge with 3.2.
2012-11-03 21:22:41 +02:00
Ezio Melotti
c64bcbec4b
#8401 : assigning an int to a bytearray slice (e.g. b[3:4] = 5) now raises an error.
2012-11-03 21:19:06 +02:00
Ezio Melotti
68600aff3a
#12759 : merge with 3.2.
2012-11-03 20:33:38 +02:00
Ezio Melotti
0941d9fc64
#12759 : sre_parse now raises a proper error when the name of the group is missing. Initial patch by Serhiy Storchaka.
2012-11-03 20:33:08 +02:00
Ezio Melotti
fafa8b7797
#16152 : merge with 3.2.
2012-11-03 17:46:51 +02:00
Ezio Melotti
2cc3b4ba9f
#16152 : fix tokenize to ignore whitespace at the end of the code when no newline is found. Patch by Ned Batchelder.
2012-11-03 17:38:43 +02:00
Stefan Krah
4af77a0276
Issue #15814 : Use hash function that is compatible with the equality
...
definition from #15573 .
2012-11-02 17:49:22 +01:00
Stefan Krah
e6996ed5d9
Issue #16145 : Support legacy strings in the _csv module.
2012-11-02 14:44:20 +01:00
Andrew Svetlov
e2af509829
Merge issue #1207589 : Add Cut/Copy/Paste items to IDLE right click Context Menu
...
Patch by Todd Rovito.
2012-11-01 22:44:06 +02:00
Andrew Svetlov
d183767ca4
Issue #1207589 : Add Cut/Copy/Paste items to IDLE right click Context Menu
...
Patch by Todd Rovito.
2012-11-01 22:41:19 +02:00
Antoine Pitrou
0168d3d9b1
Issue #16230 : Fix a crash in select.select() when one the lists changes size while iterated on.
...
Patch by Serhiy Storchaka.
2012-11-01 20:15:23 +01:00
Antoine Pitrou
e4ad37e50e
Issue #16230 : Fix a crash in select.select() when one the lists changes size while iterated on.
...
Patch by Serhiy Storchaka.
2012-11-01 20:13:54 +01:00
Antoine Pitrou
5ebe65f8cb
Issue #16228 : Fix a crash in the json module where a list changes size while it is being encoded.
...
Patch by Serhiy Storchaka.
2012-11-01 19:59:21 +01:00
Antoine Pitrou
9f69e79c45
Issue #16228 : Fix a crash in the json module where a list changes size while it is being encoded.
...
Patch by Serhiy Storchaka.
2012-11-01 19:52:06 +01:00
Andrew Svetlov
90c0eb28c5
Issue #16218 : Support non ascii characters in python launcher.
...
Patch by Serhiy Storchaka.
2012-11-01 14:51:14 +02:00
Andrew Svetlov
2e99d63e72
Merge: change docstring for xdrlib.Error to use new style exceptions.
2012-11-01 13:43:31 +02:00
Andrew Svetlov
42d5c41522
Change docstring for xdrlib.Error to use new style exceptions.
2012-11-01 13:43:06 +02:00
Andrew Svetlov
b904e4256e
Merge issue #16373 : Prevent infinite recursion for ABC Set class operations.
...
Patch by Serhiy Storchaka.
2012-11-01 13:31:12 +02:00
Andrew Svetlov
bcac6ad1f3
Issue #16373 : Prevent infinite recursion for ABC Set class operations.
2012-11-01 13:28:54 +02:00
Andrew Svetlov
091bf53287
Merge issue #16377 : Fix bisect unittest.
...
Patch by Yury Selivanov.
2012-10-31 22:38:20 +02:00
Andrew Svetlov
eda1f4cf07
Issue #16377 : Fix bisect unittest.
...
Patch by Yury Selivanov.
2012-10-31 22:37:50 +02:00
Benjamin Peterson
d97eb0d338
merge 3.2 ( #16345 )
2012-10-31 14:09:11 -04:00
Benjamin Peterson
d1f2cb37a2
only fast-path fromkeys() when the constructor returns a empty dict ( closes #16345 )
2012-10-31 14:05:55 -04:00
Benjamin Peterson
2c05a2e01b
do safety checks on __qualname__ assignment
2012-10-31 00:01:15 -04:00
Benjamin Peterson
8afa7fa510
don't shadow the __qualname__ descriptor with __qualname__ in the class's __dict__ ( closes #16271 )
2012-10-30 23:51:03 -04:00
R David Murray
cc4bacf207
#12890 : fix test on windows
...
Patch by Stephen Tonkin.
2012-10-30 20:20:09 -04:00
Nadeem Vawda
6294305c2f
Merge: Add test for BZ2Decompressor.decompress("") after end of stream.
2012-10-28 15:21:37 +01:00
Nadeem Vawda
a1952d4120
Add test for BZ2Decompressor.decompress("") after end of stream.
2012-10-28 15:20:48 +01:00
Vinay Sajip
bdd13fd098
Closes #16340 : Handle exception while copying script to venv.
2012-10-28 12:39:39 +00:00
Andrew Svetlov
21b102481b
merge heads
2012-10-28 14:12:50 +02:00
Andrew Svetlov
6d50a5447a
Merge issue #14570 : Document json sort_keys parameter properly.
...
Patch by Chris Rebert.
2012-10-28 14:11:00 +02:00
Andrew Svetlov
2ec53be2e2
Issue #14570 : Document json sort_keys parameter properly.
...
Patch by Chris Rebert.
2012-10-28 14:10:30 +02:00
Mark Dickinson
2a83f16e5e
Issue #14700 : merge tests from 3.2.
2012-10-28 10:22:22 +00:00
Mark Dickinson
fb90c0934c
Issue #14700 : Fix buggy overflow checks for large precision and width in new-style and old-style formatting.
2012-10-28 10:18:03 +00:00
Georg Brandl
5b9561d1f1
merge with 3.2
2012-10-28 10:51:46 +01:00
Georg Brandl
579d5cd643
changeset: 80007:49e4541f2aef
...
parent: 80003:be83cbf4a789
parent: 80006:32df036e6b75
user: Georg Brandl <georg@python.org>
date: Sun Oct 28 10:50:11 2012 +0100
summary: merge with 3.3
2012-10-28 10:51:35 +01:00
R David Murray
74076cb85e
#12890 : skip tests which fail on windows until fixed or rewritten.
...
We may rewrite these using mock per issue 15749.
2012-10-27 17:39:25 -04:00
R David Murray
4d9f31846a
merge #15889 : make regrtest --start succeed in more cases.
...
Patch by Chris Jerdonek.
2012-10-27 17:08:37 -04:00
R David Murray
c3bf78a212
#15889 : make regrtest --start succeed in more cases.
...
Patch by Chris Jerdonek.
2012-10-27 17:07:05 -04:00
R David Murray
c4b8e05092
merge #12890 : don't emit <p> tags in text mode when logdir specified.
...
Patch by Jeff McNeil.
2012-10-27 14:55:25 -04:00
R David Murray
252cd0e4e0
#12890 : don't emit <p> tags in text mode when logdir specified.
...
Patch by Jeff McNeil.
2012-10-27 14:42:47 -04:00
R David Murray
f358eaf362
merge #15043 : Improve test_gdb support of gdb >= 7.4.
...
Instead of requiring the tester to manually add the path to the python-gdb.py
file in the checkout to their .gdbinit file, add it automatically when
invoking gdb in the test.
2012-10-27 13:26:14 -04:00
R David Murray
f9333026f7
#15043 : Improve test_gdb support of gdb >= 7.4.
...
Instead of requiring the tester to manually add the path to the python-gdb.py
file in the checkout to their .gdbinit file, add it automatically when
invoking gdb in the test.
2012-10-27 13:22:41 -04:00
Hynek Schlawack
254af2644a
#16307 : Fix multiprocessing.Pool.map_async not calling its callbacks
...
Patch by Janne Karila.
2012-10-27 12:53:02 +02:00
Senthil Kumaran
cc2f0421c7
Issue #16250 : Fix URLError invocation with proper args
2012-10-27 02:48:21 -07:00
Senthil Kumaran
cad7b31467
Issue #16250 : Fix URLError invocation with proper args.
2012-10-27 02:26:46 -07:00
Philip Jenvey
5f9459fbed
merge with 3.2
2012-10-26 17:05:09 -07:00
Philip Jenvey
45c41494bf
bounds check for bad data (thanks amaury)
2012-10-26 17:01:53 -07:00
Vinay Sajip
e87acc1f38
Issue #16116 : Now uses corrected include and library paths when building C extensions in a venv.
2012-10-23 20:26:14 +01:00
Ezio Melotti
e6e96eea51
#16245 : Fix the value of a few entities in html.entities.html5.
2012-10-23 15:51:27 +02:00
Ezio Melotti
518dbfd7b5
Reorder html.entities.html5 entities to make updates easier. Patch by Iuliia Proskurnia.
2012-10-23 14:45:58 +02:00
Ned Deily
b6d24d9746
Issue #15853 : merge 3.2 -> 3.3
2012-10-22 15:18:46 -07:00
Ned Deily
fdf0f274e6
Issue #15853 : Prevent IDLE crash on OS X when opening Preferences menu
...
with certain versions of Tk 8.5. Initial patch by Kevin Walzer.
2012-10-22 15:14:31 -07:00
Nadeem Vawda
5f8f0d6777
Issue #14398 : Fix size truncation and overflow bugs in bz2 module.
2012-10-21 21:13:27 +02:00
Antoine Pitrou
550841253f
Issue #16220 : wsgiref now always calls close() on an iterable response.
...
Patch by Brent Tubbs.
2012-10-21 14:14:34 +02:00
Antoine Pitrou
66510fedb4
Fix whacky spacking in test_wsgiref
2012-10-21 14:13:32 +02:00
Antoine Pitrou
ae247a5ff6
Issue #16220 : wsgiref now always calls close() on an iterable response.
...
Patch by Brent Tubbs.
2012-10-21 14:09:05 +02:00
Ned Deily
d2cc1bb057
Issue #10405 : merge from 3.2
2012-10-20 13:27:32 -07:00
Ned Deily
2778d0d147
Issue #10405 : Document IDLE context menus in Standard Library document
...
and IDLE Help file. (Thanks to Nick ODell and Todd Rovito for suggestions.)
Update Debug menu options in docs to match current code plus various other
minor IDLE doc and help edits.
2012-10-20 13:25:34 -07:00
Nick Coghlan
62b4136277
Fix broken test and replace redundant generator with a tuple
2012-10-20 00:03:46 +10:00
Nick Coghlan
c71b4c7198
Issue #6074 : Actually delete the source file in the test as intended
2012-10-19 23:38:36 +10:00
Nick Coghlan
11d752e374
Remove unused import
2012-10-19 23:37:16 +10:00
Nick Coghlan
eb8d627bbd
Issue #6074 : Apply an appropriate fix for importlib based imports
2012-10-19 23:32:00 +10:00