Andrew Svetlov
4001e96179
Issue #16711 : Fix required method names for collections.Iterator
...
Thanks to Inada Naoki
2012-12-18 15:48:10 +02:00
Giampaolo Rodola'
57f3487994
Issue 16646 (ftplib): deliberately use intermediate variable after catching exception
2012-12-17 20:46:16 +01:00
Andrew Svetlov
b6693c4604
Issue #16647 : save socket error details in LMTP.connect()
...
Patch by Serhiy Storchaka.
2012-12-17 18:54:53 +02:00
Giampaolo Rodola'
fc3278802c
Fix issue #16646 : ftplib.FTP.makeport() might lose socket error details. (patch by Serhiy Storchaka)
2012-12-17 14:20:27 +01:00
Andrew Svetlov
f635172c72
Update example: Counter.subtract returns None, not self
2012-12-17 14:01:16 +02:00
Andrew Svetlov
dfe109e33f
Fix typo
2012-12-17 13:42:04 +02:00
Brian Curtin
655b0c462f
Fix #14901 . Update the Windows FAQ.
...
Patch by Ashish Nitin Patil.
2012-12-16 23:58:09 -06:00
Antoine Pitrou
697ce5560f
Fix ResourceWarnings in test_pty
2012-12-16 16:09:11 +01:00
Antoine Pitrou
5461558d1a
Issue #16696 : fix comparison between bytes and string. Also, improve glob tests.
2012-12-16 16:03:01 +01:00
Antoine Pitrou
3d068b2ecf
Issue #16626 : Fix infinite recursion in glob.glob() on Windows when the pattern contains a wildcard in the drive or UNC path.
...
Patch by Serhiy Storchaka.
2012-12-16 13:49:37 +01:00
Hynek Schlawack
dec59ec5ff
#16664 : Add regression tests for glob's behaviour concerning "."-entries
...
Patch by Sebastian Kreft.
2012-12-16 12:39:11 +01:00
Benjamin Peterson
7eb8a1a0cb
remove dead code
2012-12-15 15:43:58 -05:00
Antoine Pitrou
084daa2f74
Issue #16298 : In HTTPResponse.read(), close the socket when there is no Content-Length and the incoming stream is finished.
...
Patch by Eran Rundstein.
2012-12-15 19:11:54 +01:00
Ezio Melotti
e0035a212b
#16683 : restore alphabetical order in audioop docs. Patch by Serhiy Storchaka.
2012-12-14 20:18:46 +02:00
Ezio Melotti
e3d7e54b11
#16681 : use "bidirectional class" instead of "bidirectional category" in the docstring too.
2012-12-14 20:12:25 +02:00
Ezio Melotti
1e5c9b70b4
#16681 : use "bidirectional class" instead of "bidirectional category".
2012-12-14 20:06:43 +02:00
Gregory P. Smith
9504b13145
Code style fixup: No need for double ((parenthesis)) and use {} on an if else.
2012-12-10 20:20:20 -08:00
Gregory P. Smith
a6be61ec71
Keep y a Py_hash_t instead of Py_uhash_t as it is compared with == -1 and the
...
compiler logic will do the right thing with just x as a Py_uhash_t. This
matches what was already done in the 3.3 version.
cleanup only - no functionality or hash values change.
2012-12-10 18:34:09 -08:00
Gregory P. Smith
27cbcd6241
Fix the internals of our hash functions to used unsigned values during hash
...
computation as the overflow behavior of signed integers is undefined.
In practice we require compiling everything with -fwrapv which forces overflow
to be defined as twos compliment but this keeps the code cleaner for checkers
or in the case where someone has compiled it without -fwrapv or their
compiler's equivalent.
Found by Clang trunk's Undefined Behavior Sanitizer (UBSan).
Cleanup only - no functionality or hash values change.
2012-12-10 18:15:46 -08:00
Gregory P. Smith
90555d0f0d
1 << 31 is invalid for signed integers, fix it by making 1 unsigned.
...
Found by Clang trunk's Undefined-Behavior Sanitizer. [more to come]
2012-12-10 17:44:44 -08:00
Hynek Schlawack
87f9b46f15
#15872 : Some more Windows related tuning to shutil.rmtree tests
...
Turns out, the snakebite bots behave also their peculiarities.
I'm really not proud of this stream of commits. :(
2012-12-10 16:29:57 +01:00
Hynek Schlawack
b9e9f3e70d
#15872 : Be flexible with appending *.* in shutil.rmtree test case
...
The Windows buildbots seem to be unable to agree whether they need them or not.
2012-12-10 12:01:28 +01:00
Hynek Schlawack
9a4a750673
#15872 : More shutil test fixes for Windows
2012-12-10 11:08:09 +01:00
Hynek Schlawack
9e8ac56e35
#15872 : Fix shutil.rmtree error tests for Windows
2012-12-10 10:07:11 +01:00
Hynek Schlawack
d16eacba48
#15872 : Add tests for a 3.3 regression in the new fd-based shutil.rmtree
...
It cause shutil.rmtree not ignore all errors. Also add a test ensuring that
rmtree fails when being called on a symlink. Patch by Serhiy Storchaka.
2012-12-10 09:00:09 +01:00
Chris Jerdonek
175196886e
Issue #16629 : Fix IDLE idlelib.CallTips test. Patch by Roger Serwy.
...
This commit updates a test broken by the change made for issue #14783 .
2012-12-09 18:17:27 -08:00
Andrew Svetlov
806bfad457
Issue #16582 : use int exit code in tkinter._exit
2012-12-10 00:02:31 +02:00
Senthil Kumaran
2e72831369
Fix issue13211 - Document the reason attribute for urllib.error.HTTPError
2012-12-09 13:51:05 -08:00
Benjamin Peterson
4ee03fa4d5
merge 3.1
2012-12-09 10:14:42 -05:00
Antoine Pitrou
7ec3a32360
Issue #16248 : Disable code execution from the user's home directory by tkinter when the -E flag is passed to Python.
...
Patch by Zachary Ware.
2012-12-09 14:46:18 +01:00
Antoine Pitrou
0ee20ebbff
Issue #16248 : Disable code execution from the user's home directory by tkinter when the -E flag is passed to Python.
...
Patch by Zachary Ware.
2012-12-09 14:46:18 +01:00
Éric Araujo
24457c9ad3
Branch merge
2012-12-08 22:47:03 -05:00
Éric Araujo
8b503c0a4e
Fix setup.py register failure with invalid rst in description ( #13614 ).
...
Original patch by Julien Courteau and Pierre Paul Lefebvre.
2012-12-08 22:41:11 -05:00
Éric Araujo
9bc9ab5f85
Fix a few markup/grammar nits
2012-12-08 18:35:31 -05:00
Antoine Pitrou
62a0d6ea40
Issue #16602 : When a weakref's target was part of a long deallocation chain, the object could remain reachable through its weakref even though its refcount had dropped to zero.
...
Thanks to Eugene Toder for diagnosing and reporting the issue.
2012-12-08 21:15:26 +01:00
Éric Araujo
d61926e6be
Create ~/.pypirc securely ( #13512 ).
...
There was a window between the write and the chmod where the user’s
password would be exposed, depending on default permissions. Philip
Jenvey’s patch fixes it.
2012-12-08 14:51:47 -05:00
Éric Araujo
3e4a3dcb23
Ignore .nfs* files in distutils ( #7719 ).
...
These files are created by some NFS clients a file is edited and removed
concurrently (see added link in doc for more info). If such a file is
removed between distutils calls listdir and copy, it will get confused.
Other special files are ignored in sdist (namely VCS directories), but
this has to be filtered out earlier.
2012-12-08 14:21:51 -05:00
Andrew Svetlov
09974b4e9e
Drop double newlines printed in some file iteration examples.
...
Patch by Steven Kryskalla.
2012-12-08 17:59:03 +02:00
Ezio Melotti
5a2e2b8ff7
Remove debug output from example.
2012-12-08 12:29:40 +02:00
Antoine Pitrou
305e1a749f
Issue #16628 : Fix a memory leak in ctypes.resize().
2012-12-08 11:05:50 +01:00
Andrew Svetlov
ed636a84b9
Specify which I/O ABC methods have implementations in the docs.
2012-12-06 12:20:56 +02:00
Andrew Svetlov
96bc04369a
Skip pdb test for #13120 if threading is not available.
2012-12-05 15:06:23 +02:00
Andrew Svetlov
539ee5da6f
Issue #13120 : Allow to call pdb.set_trace() from thread.
...
Patch by Ilya Sandler.
2012-12-04 21:08:28 +02:00
Antoine Pitrou
86067c2e17
Fix test splitting in previous commit.
2012-12-03 21:08:43 +01:00
Antoine Pitrou
1f1888ec1e
Split the bigmem re test in two separate tests with different memory requirements.
2012-12-03 20:53:12 +01:00
Andrew Svetlov
eb0abce2f8
Issue #16583 : Prevent nesting SystemExit in tkinter.CallWrapper
2012-12-03 16:13:07 +02:00
Victor Stinner
41a234a679
Issue #16416 : Fix compilation error
2012-12-03 14:11:57 +01:00
Victor Stinner
27b1ca29cc
Issue #16416 : On Mac OS X, operating system data are now always
...
encoded/decoded to/from UTF-8/surrogateescape, instead of the locale encoding
(which may be ASCII if no locale environment variable is set), to avoid
inconsistencies with os.fsencode() and os.fsdecode() functions which are
already using UTF-8/surrogateescape.
2012-12-03 12:47:59 +01:00
Mark Dickinson
ce31f66a6d
Issue 10052: fix failed uint32_t / uint64_t / int32_t / int64_t detection on some platforms.
2012-12-02 13:20:22 +00:00
Antoine Pitrou
43fb54cd4f
Issue #10182 : The re module doesn't truncate indices to 32 bits anymore.
...
Patch by Serhiy Storchaka.
2012-12-02 12:52:36 +01:00