]>
granicus.if.org Git - python/log
Senthil Kumaran [Sun, 23 Dec 2012 17:04:24 +0000 (09:04 -0800)]
Fix Issue15701 - HTTPError info method call raises AttributeError. Fix that to return headers correctly
Kristjan Valur Jonsson [Fri, 21 Dec 2012 11:20:53 +0000 (11:20 +0000)]
Merge with 3.1 : Don't DECREF the ctypes error_object without the GIL held.
Kristjan Valur Jonsson [Fri, 21 Dec 2012 09:41:25 +0000 (09:41 +0000)]
Don't DECREF the ctypes error_object without the GIL held.
Andrew Svetlov [Wed, 19 Dec 2012 20:49:25 +0000 (22:49 +0200)]
replace threw with raised (#16714)
Andrew Svetlov [Tue, 18 Dec 2012 19:14:22 +0000 (21:14 +0200)]
Issue #16714: use 'raise' exceptions, don't 'throw'.
Patch by Serhiy Storchaka.
Andrew Svetlov [Tue, 18 Dec 2012 13:48:10 +0000 (15:48 +0200)]
Issue #16711: Fix required method names for collections.Iterator
Thanks to Inada Naoki
Giampaolo Rodola' [Mon, 17 Dec 2012 19:46:16 +0000 (20:46 +0100)]
Issue 16646 (ftplib): deliberately use intermediate variable after catching exception
Andrew Svetlov [Mon, 17 Dec 2012 16:54:53 +0000 (18:54 +0200)]
Issue #16647: save socket error details in LMTP.connect()
Patch by Serhiy Storchaka.
Giampaolo Rodola' [Mon, 17 Dec 2012 13:20:27 +0000 (14:20 +0100)]
Fix issue #16646: ftplib.FTP.makeport() might lose socket error details. (patch by Serhiy Storchaka)
Andrew Svetlov [Mon, 17 Dec 2012 12:01:16 +0000 (14:01 +0200)]
Update example: Counter.subtract returns None, not self
Andrew Svetlov [Mon, 17 Dec 2012 11:42:04 +0000 (13:42 +0200)]
Fix typo
Brian Curtin [Mon, 17 Dec 2012 05:58:09 +0000 (23:58 -0600)]
Fix #14901. Update the Windows FAQ.
Patch by Ashish Nitin Patil.
Antoine Pitrou [Sun, 16 Dec 2012 15:09:11 +0000 (16:09 +0100)]
Fix ResourceWarnings in test_pty
Antoine Pitrou [Sun, 16 Dec 2012 15:03:01 +0000 (16:03 +0100)]
Issue #16696: fix comparison between bytes and string. Also, improve glob tests.
Antoine Pitrou [Sun, 16 Dec 2012 12:49:37 +0000 (13:49 +0100)]
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.
Hynek Schlawack [Sun, 16 Dec 2012 11:39:11 +0000 (12:39 +0100)]
#16664: Add regression tests for glob's behaviour concerning "."-entries
Patch by Sebastian Kreft.
Benjamin Peterson [Sat, 15 Dec 2012 20:43:58 +0000 (15:43 -0500)]
remove dead code
Antoine Pitrou [Sat, 15 Dec 2012 18:11:54 +0000 (19:11 +0100)]
Issue #16298: In HTTPResponse.read(), close the socket when there is no Content-Length and the incoming stream is finished.
Patch by Eran Rundstein.
Ezio Melotti [Fri, 14 Dec 2012 18:18:46 +0000 (20:18 +0200)]
#16683: restore alphabetical order in audioop docs. Patch by Serhiy Storchaka.
Ezio Melotti [Fri, 14 Dec 2012 18:12:25 +0000 (20:12 +0200)]
#16681: use "bidirectional class" instead of "bidirectional category" in the docstring too.
Ezio Melotti [Fri, 14 Dec 2012 18:06:43 +0000 (20:06 +0200)]
#16681: use "bidirectional class" instead of "bidirectional category".
Gregory P. Smith [Tue, 11 Dec 2012 04:20:20 +0000 (20:20 -0800)]
Code style fixup: No need for double ((parenthesis)) and use {} on an if else.
Gregory P. Smith [Tue, 11 Dec 2012 02:34:09 +0000 (18:34 -0800)]
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.
Gregory P. Smith [Tue, 11 Dec 2012 02:15:46 +0000 (18:15 -0800)]
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.
Gregory P. Smith [Tue, 11 Dec 2012 01:44:44 +0000 (17:44 -0800)]
1 << 31 is invalid for signed integers, fix it by making 1 unsigned.
Found by Clang trunk's Undefined-Behavior Sanitizer. [more to come]
Hynek Schlawack [Mon, 10 Dec 2012 15:29:57 +0000 (16:29 +0100)]
#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. :(
Hynek Schlawack [Mon, 10 Dec 2012 11:01:28 +0000 (12:01 +0100)]
#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.
Hynek Schlawack [Mon, 10 Dec 2012 10:08:09 +0000 (11:08 +0100)]
#15872: More shutil test fixes for Windows
Hynek Schlawack [Mon, 10 Dec 2012 09:07:11 +0000 (10:07 +0100)]
#15872: Fix shutil.rmtree error tests for Windows
Hynek Schlawack [Mon, 10 Dec 2012 08:00:09 +0000 (09:00 +0100)]
#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.
Chris Jerdonek [Mon, 10 Dec 2012 02:17:27 +0000 (18:17 -0800)]
Issue #16629: Fix IDLE idlelib.CallTips test. Patch by Roger Serwy.
This commit updates a test broken by the change made for issue #14783.
Andrew Svetlov [Sun, 9 Dec 2012 22:02:31 +0000 (00:02 +0200)]
Issue #16582: use int exit code in tkinter._exit
Senthil Kumaran [Sun, 9 Dec 2012 21:51:05 +0000 (13:51 -0800)]
Fix issue13211 - Document the reason attribute for urllib.error.HTTPError
Benjamin Peterson [Sun, 9 Dec 2012 15:14:42 +0000 (10:14 -0500)]
merge 3.1
Antoine Pitrou [Sun, 9 Dec 2012 13:46:18 +0000 (14:46 +0100)]
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.
Antoine Pitrou [Sun, 9 Dec 2012 13:46:18 +0000 (14:46 +0100)]
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.
Éric Araujo [Sun, 9 Dec 2012 03:47:03 +0000 (22:47 -0500)]
Branch merge
Éric Araujo [Sun, 9 Dec 2012 03:41:11 +0000 (22:41 -0500)]
Fix setup.py register failure with invalid rst in description (#13614).
Original patch by Julien Courteau and Pierre Paul Lefebvre.
Éric Araujo [Sat, 8 Dec 2012 23:35:31 +0000 (18:35 -0500)]
Fix a few markup/grammar nits
Antoine Pitrou [Sat, 8 Dec 2012 20:15:26 +0000 (21:15 +0100)]
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.
Éric Araujo [Sat, 8 Dec 2012 19:51:47 +0000 (14:51 -0500)]
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.
Éric Araujo [Sat, 8 Dec 2012 19:21:51 +0000 (14:21 -0500)]
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.
Andrew Svetlov [Sat, 8 Dec 2012 15:59:03 +0000 (17:59 +0200)]
Drop double newlines printed in some file iteration examples.
Patch by Steven Kryskalla.
Ezio Melotti [Sat, 8 Dec 2012 10:29:40 +0000 (12:29 +0200)]
Remove debug output from example.
Antoine Pitrou [Sat, 8 Dec 2012 10:05:50 +0000 (11:05 +0100)]
Issue #16628: Fix a memory leak in ctypes.resize().
Andrew Svetlov [Thu, 6 Dec 2012 10:20:56 +0000 (12:20 +0200)]
Specify which I/O ABC methods have implementations in the docs.
Andrew Svetlov [Wed, 5 Dec 2012 13:06:23 +0000 (15:06 +0200)]
Skip pdb test for #13120 if threading is not available.
Andrew Svetlov [Tue, 4 Dec 2012 19:08:28 +0000 (21:08 +0200)]
Issue #13120: Allow to call pdb.set_trace() from thread.
Patch by Ilya Sandler.
Antoine Pitrou [Mon, 3 Dec 2012 20:08:43 +0000 (21:08 +0100)]
Fix test splitting in previous commit.
Antoine Pitrou [Mon, 3 Dec 2012 19:53:12 +0000 (20:53 +0100)]
Split the bigmem re test in two separate tests with different memory requirements.
Andrew Svetlov [Mon, 3 Dec 2012 14:13:07 +0000 (16:13 +0200)]
Issue #16583: Prevent nesting SystemExit in tkinter.CallWrapper
Victor Stinner [Mon, 3 Dec 2012 13:11:57 +0000 (14:11 +0100)]
Issue #16416: Fix compilation error
Victor Stinner [Mon, 3 Dec 2012 11:47:59 +0000 (12:47 +0100)]
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.
Mark Dickinson [Sun, 2 Dec 2012 13:20:22 +0000 (13:20 +0000)]
Issue 10052: fix failed uint32_t / uint64_t / int32_t / int64_t detection on some platforms.
Antoine Pitrou [Sun, 2 Dec 2012 11:52:36 +0000 (12:52 +0100)]
Issue #10182: The re module doesn't truncate indices to 32 bits anymore.
Patch by Serhiy Storchaka.
Christian Heimes [Sun, 2 Dec 2012 07:37:00 +0000 (08:37 +0100)]
Issue #16588: Silence unused-but-set warnings in Python/thread_pthread.h
Christian Heimes [Sun, 2 Dec 2012 07:14:50 +0000 (08:14 +0100)]
- Issue #16593: Have BSD 'make -s' do the right thing, thanks to Daniel Shahaf
Benjamin Peterson [Thu, 29 Nov 2012 15:57:01 +0000 (10:57 -0500)]
add changelog
Benjamin Peterson [Thu, 29 Nov 2012 15:55:22 +0000 (10:55 -0500)]
enumerate only requires an iterable (closes #16573)
Patch by Jonathan Kotta.
Andrew Svetlov [Thu, 29 Nov 2012 12:20:47 +0000 (14:20 +0200)]
Issue #16477: Close tarfile internal handlers in case of exception.
Patch by Serhiy Storchaka.
Ezio Melotti [Thu, 29 Nov 2012 03:10:07 +0000 (05:10 +0200)]
#16549: fix test failures on Windows.
Ezio Melotti [Thu, 29 Nov 2012 00:25:03 +0000 (02:25 +0200)]
#16476: Fix json.tool to avoid including trailing whitespace.
Ezio Melotti [Thu, 29 Nov 2012 00:15:18 +0000 (02:15 +0200)]
#16549: Make json.tool work again on Python 3 and add tests. Initial patch by Berker Peksag and Serhiy Storchaka.
Ezio Melotti [Wed, 28 Nov 2012 22:35:29 +0000 (00:35 +0200)]
#16333: document a way to get rid of trailing whitespace when indent is used.
Andrew Svetlov [Wed, 28 Nov 2012 17:23:52 +0000 (19:23 +0200)]
Revert duplicate changes in argparse docs.
Andrew Svetlov [Wed, 28 Nov 2012 17:17:26 +0000 (19:17 +0200)]
Issue #11076: document the way to convert argparse.Namespace to a dict.
Initial patch by Virgil Dupras.
Chris Jerdonek [Wed, 28 Nov 2012 10:29:33 +0000 (02:29 -0800)]
Improve argument/parameter documentation (issue #15990).
This commit adds "parameter" to the glossary, improves and consolidates the
"argument" glossary entry, and adds a question to the FAQ on the difference
between arguments and parameters.
Gregory P. Smith [Tue, 27 Nov 2012 18:16:55 +0000 (10:16 -0800)]
Plug a leak in timemodule. The module dictionary is saved during
initialization. If the interpreter is shut down and reinitialized (embedded
CPython), the old module dictionary was not dec-refed during the next import of
the time extension module.
Contributed by Torsten Marek of Google.
Ezio Melotti [Tue, 27 Nov 2012 17:17:57 +0000 (19:17 +0200)]
#16556: Fix inconsistency between kwds and kwargs. Patch by Taavi Burns.
Ezio Melotti [Mon, 26 Nov 2012 17:24:20 +0000 (19:24 +0200)]
#16559: Add more tests for the json module. Patch by Serhiy Storchaka.
Chris Jerdonek [Mon, 26 Nov 2012 04:38:01 +0000 (20:38 -0800)]
Add hyperlinks to the docs of some os.path functions (issue #16552).
Vinay Sajip [Sun, 25 Nov 2012 15:11:46 +0000 (15:11 +0000)]
Closes #16521: Improved error handling for basicConfig(), added tests for same.
Antoine Pitrou [Sat, 24 Nov 2012 19:40:21 +0000 (20:40 +0100)]
Issue #12848: The pure Python pickle implementation now treats object lengths as unsigned 32-bit integers, like the C implementation does.
Patch by Serhiy Storchaka.
Ezio Melotti [Fri, 23 Nov 2012 20:16:07 +0000 (22:16 +0200)]
Remove debug print.
Ezio Melotti [Fri, 23 Nov 2012 17:45:52 +0000 (19:45 +0200)]
#16530: the "options" arg of os.wait3 is required.
Ezio Melotti [Fri, 23 Nov 2012 16:48:32 +0000 (18:48 +0200)]
#16306: report only the first unknown option and add more tests. Patch by Serhiy Storchaka.
Ezio Melotti [Wed, 21 Nov 2012 16:36:08 +0000 (18:36 +0200)]
Remove unused variabile "plain" in builtin_exec.
Chris Jerdonek [Wed, 21 Nov 2012 13:32:44 +0000 (05:32 -0800)]
Fix label in docs (from issue #13538).
Chris Jerdonek [Wed, 21 Nov 2012 01:31:02 +0000 (17:31 -0800)]
Improve str() and object.__str__() documentation (issue #13538).
Antoine Pitrou [Tue, 20 Nov 2012 21:30:42 +0000 (22:30 +0100)]
Issue #1160: Fix compiling large regular expressions on UCS2 builds.
Patch by Serhiy Storchaka.
Ezio Melotti [Sun, 18 Nov 2012 21:14:42 +0000 (23:14 +0200)]
#7782: add a test for test_iter.
Antoine Pitrou [Sun, 18 Nov 2012 17:37:02 +0000 (18:37 +0100)]
The poplib module provides two classes, not one.
Ezio Melotti [Sun, 18 Nov 2012 11:55:52 +0000 (13:55 +0200)]
#16306: Fix multiple error messages when unknown command line parameters where passed to the interpreter. Patch by Hieu Nguyen.
Ezio Melotti [Sun, 18 Nov 2012 11:20:36 +0000 (13:20 +0200)]
#14313: zipfile now raises NotImplementedError when the compression type is unknown.
Ezio Melotti [Sun, 18 Nov 2012 10:55:35 +0000 (12:55 +0200)]
#16053: document csv.Dialect.strict. Patch by Kushal Das.
Mark Dickinson [Sun, 18 Nov 2012 10:42:07 +0000 (10:42 +0000)]
Typo fix.
Mark Dickinson [Sun, 18 Nov 2012 10:22:05 +0000 (10:22 +0000)]
Issue #12005: clarify behaviour of % and // for Decimal objects.
Antoine Pitrou [Sat, 17 Nov 2012 22:50:08 +0000 (23:50 +0100)]
Issue #16408: Fix file descriptors not being closed in error conditions in the zipfile module.
Patch by Serhiy Storchaka.
Ezio Melotti [Sat, 17 Nov 2012 15:38:11 +0000 (17:38 +0200)]
#16420: document a way to escape metacharacters in glob/fnmatch.
Ezio Melotti [Sat, 17 Nov 2012 10:50:14 +0000 (12:50 +0200)]
Update section about dir() in the tutorial.
Ezio Melotti [Sat, 17 Nov 2012 10:06:01 +0000 (12:06 +0200)]
Rephrase a sentence in the set and dict comprehensions tutorial page.
Jesus Cea [Sat, 17 Nov 2012 02:41:54 +0000 (03:41 +0100)]
Closes #16461: Wave library should be able to deal with 4GB wav files, and sample rate of 44100 Hz.
Ezio Melotti [Fri, 16 Nov 2012 11:17:08 +0000 (13:17 +0200)]
#16478: use floor division in tabnanny and fix a ResourceWarning. Patch by Serhiy Storchaka.
Philip Jenvey [Wed, 14 Nov 2012 22:37:24 +0000 (14:37 -0800)]
don't gc_collect on CPython to guarantee a lack of ref cycles (thanks Antoine)
Chris Jerdonek [Wed, 14 Nov 2012 20:12:30 +0000 (12:12 -0800)]
Update the description of which package versions PyPI displays (issue #16400).
Philip Jenvey [Tue, 13 Nov 2012 20:26:31 +0000 (12:26 -0800)]
add gc_collects to weakref tests
Antoine Pitrou [Sun, 11 Nov 2012 18:40:38 +0000 (19:40 +0100)]
Merge heads
Antoine Pitrou [Sun, 11 Nov 2012 18:36:51 +0000 (19:36 +0100)]
Issue #16453: Fix equality testing of dead weakref objects.
Also add tests for ordering and hashing.
Gregory P. Smith [Sun, 11 Nov 2012 17:59:27 +0000 (09:59 -0800)]
Refactor test_preexec_errpipe to not create an uncollectable reference cycle.
Nadeem Vawda [Sun, 11 Nov 2012 13:04:14 +0000 (14:04 +0100)]
Issue #15677: Document that zlib and gzip accept a compression level of 0 to mean 'no compression'.
Patch by Brian Brazil.