]>
granicus.if.org Git - python/log
R David Murray [Wed, 10 Jul 2013 20:22:14 +0000 (16:22 -0400)]
#18424: PEP8ify the tense of the sum docstring.
R David Murray [Wed, 10 Jul 2013 14:57:39 +0000 (10:57 -0400)]
#18399: fix comment typo.
Patch by Andrew Rowe.
Charles-François Natali [Tue, 9 Jul 2013 17:15:43 +0000 (19:15 +0200)]
Issue #18308: don't take the scope ID into account when comparing IPv6
addresses.
Christian Heimes [Tue, 9 Jul 2013 12:30:04 +0000 (14:30 +0200)]
use $(LN) makefile variable instead of ln
Ezio Melotti [Mon, 8 Jul 2013 15:52:54 +0000 (17:52 +0200)]
#18403: fix an off-by-one typo noticed by Xue Fuqiao.
Ezio Melotti [Mon, 8 Jul 2013 15:48:29 +0000 (17:48 +0200)]
Add a couple of tests for str.center with non-ASCII chars.
Ezio Melotti [Sun, 7 Jul 2013 11:15:08 +0000 (13:15 +0200)]
#17198: Fix a NameError in the dbm module. Patch by Valentina Mukhamedzhanova.
Florent Xicluna [Sun, 7 Jul 2013 10:44:28 +0000 (12:44 +0200)]
Issue #18013: Fix cgi.FieldStorage to parse the W3C sample form.
Ronald Oussoren [Sun, 7 Jul 2013 07:53:08 +0000 (09:53 +0200)]
Issue #18377: Code cleanup in Python Launcher
This changeset fixes a number of compiler warnings in the Python Launcher
binary for OSX. It also cleans up whitespace usage in those sources.
Ronald Oussoren [Sun, 7 Jul 2013 07:26:45 +0000 (09:26 +0200)]
Cleanup of documentation change from #17860
Reformulated the textual change, and applied it to the docstring as well.
Brett Cannon [Sat, 6 Jul 2013 21:56:43 +0000 (17:56 -0400)]
Issue #18351: Fix various issues with
importlib._bootstrap._get_sourcefile().
Thanks to its only use by the C API, it was never properly tested
until now.
Thanks to Neal Norwitz for discovering the bug and Madison May for the patch.
Ezio Melotti [Sat, 6 Jul 2013 15:16:04 +0000 (17:16 +0200)]
#18380: pass regex flags to the right argument. Patch by Valentina Mukhamedzhanova.
Florent Xicluna [Sat, 6 Jul 2013 13:08:21 +0000 (15:08 +0200)]
test_ftplib: silence a BytesWarning when checking TypeError
Ronald Oussoren [Sat, 6 Jul 2013 11:20:57 +0000 (13:20 +0200)]
Issue #12990: The "Python Launcher" on OSX could not launch python scripts that have paths that include wide characters.
Florent Xicluna [Sat, 6 Jul 2013 10:25:52 +0000 (12:25 +0200)]
Issue #18375: Assume --randomize when --randseed is used for running the testsuite.
Ronald Oussoren [Sat, 6 Jul 2013 08:23:59 +0000 (10:23 +0200)]
Issue #17860: explicitly mention that std* streams are opened in binary mode by default.
The documentation does mention that the streams are opened in text mode
when univeral_newlines is true, but not that that they are opened in
binary mode when that argument is false and that seems to confuse at
least some users.
Christian Heimes [Thu, 4 Jul 2013 23:39:49 +0000 (01:39 +0200)]
Issue #18347: ElementTree's html serializer now preserves the case of closing tags.
Antoine Pitrou [Thu, 4 Jul 2013 19:03:10 +0000 (21:03 +0200)]
Issue #11185: Fix test_wait4 under AIX. Patch by Sébastien Sablé.
Victor Stinner [Wed, 3 Jul 2013 21:07:37 +0000 (23:07 +0200)]
test_time.test_monotonic(): use a longer sleep to try to make the test more reliable
Victor Stinner [Wed, 3 Jul 2013 20:29:42 +0000 (22:29 +0200)]
test_faulthandler: skip test_read_null() on AIX
AIX maps the first page of memory at address zero as valid, read-only. Reading
NULL is not a fault on AIX. This is utilized by IBM compiler optimizations.
One speculatively can indirect through a pointer which may be null without
first testing if null and defer the test before using the value.
Eric V. Smith [Tue, 2 Jul 2013 13:06:54 +0000 (09:06 -0400)]
Closes #18312: 'make distclean' no longer deletes files in dot-directories.
Richard Oudkerk [Tue, 2 Jul 2013 12:37:43 +0000 (13:37 +0100)]
Issue #17261: Ensure multiprocessing's proxies use proper address.
Richard Oudkerk [Tue, 2 Jul 2013 11:59:55 +0000 (12:59 +0100)]
Issue #14206: Clarify docs for Queue.join_cancel_thread().
Richard Oudkerk [Tue, 2 Jul 2013 11:32:00 +0000 (12:32 +0100)]
Issue #17273: Clarify that pool methods can only be used by parent process.
Victor Stinner [Mon, 1 Jul 2013 22:14:56 +0000 (00:14 +0200)]
Issue #18343: faulthandler.register() now keeps the previous signal handler
when the function is called twice, so faulthandler.unregister() restores
correctly the original signal handler.
Christian Heimes [Mon, 1 Jul 2013 21:42:28 +0000 (23:42 +0200)]
Issue #18328: Reorder ops in PyThreadState_Delete*() functions. Now the
tstate is first removed from TLS and then deallocated.
CID
1019639 (#1 of 1): Use after free (USE_AFTER_FREE)
use_after_free: Using freed pointer tstate.
Christian Heimes [Mon, 1 Jul 2013 21:00:13 +0000 (23:00 +0200)]
Issue #18339: use with self.assertRaises() to make test case more readable
Richard Oudkerk [Mon, 1 Jul 2013 17:59:26 +0000 (18:59 +0100)]
Issue #17097: Make multiprocessing ignore EINTR.
Christian Heimes [Mon, 1 Jul 2013 13:23:39 +0000 (15:23 +0200)]
Singular form just like the other error message.
Christian Heimes [Mon, 1 Jul 2013 13:17:45 +0000 (15:17 +0200)]
Issue #18339: Negative ints keys in unpickler.memo dict no longer cause a
segfault inside the _pickle C extension.
Terry Jan Reedy [Mon, 1 Jul 2013 04:42:52 +0000 (00:42 -0400)]
Issue #7136: In the Idle File menu, "New Window" is renamed "New File".
Patch by Tal Einat, Roget Serwy, and Todd Rovito.
Terry Jan Reedy [Sun, 30 Jun 2013 22:37:05 +0000 (18:37 -0400)]
Issue #18189: add test_delegator for Idle Delegator class.
Also change private dict used as a set to a set.
Vinay Sajip [Sun, 30 Jun 2013 21:11:10 +0000 (22:11 +0100)]
Issue #18224: Updated test.
Vinay Sajip [Sun, 30 Jun 2013 21:06:52 +0000 (22:06 +0100)]
Issue #18224: Removed pydoc script from created venv, as it causes problems on Windows and adds no value over and above python -m pydoc ...
Terry Jan Reedy [Sun, 30 Jun 2013 20:52:19 +0000 (16:52 -0400)]
Issue 18189: remove unused methods in idlelib.Delegator.Delegator.
Idle code already uses x.delegate instead of x.getdelegate().
The printed report must have been for testing.
R David Murray [Sun, 30 Jun 2013 15:46:32 +0000 (11:46 -0400)]
#18038: Use non-deprecated assert names in tests.
R David Murray [Sat, 29 Jun 2013 22:40:53 +0000 (18:40 -0400)]
#18155: Regex-escape delimiter, in case it is a regex special char.
Patch by Vajrasky Kok, with slight modification to the tests by me.
Terry Jan Reedy [Sat, 29 Jun 2013 22:22:02 +0000 (18:22 -0400)]
Issue #18103: Update README.txt and test_idle to describe and run gui tests.
Terry Jan Reedy [Sat, 29 Jun 2013 17:15:43 +0000 (13:15 -0400)]
Issue #18237: Fix assertRaisesRegexp error caought by Jeff Tratner.
Terry Jan Reedy [Sat, 29 Jun 2013 03:50:12 +0000 (23:50 -0400)]
Issue *18081, #18242: Change Idle warnings capture in PyShell and run to stop
replacing warnings.formatwarnings and to reverse replacement of
warnings.showwarnings when import is complete and when main function exits.
Add test_warning.py. Vinay Sajip provided capture_warnings function.
Terry Jan Reedy [Fri, 28 Jun 2013 22:59:28 +0000 (18:59 -0400)]
Issue #18315: Improve fileinput docs by adding 'bufsize' where missing and
replacing redundant signature in input() docstring with one-line summary.
Original patch by Terrel Shumway.
R David Murray [Fri, 28 Jun 2013 19:08:03 +0000 (15:08 -0400)]
#14360: Add news item.
R David Murray [Thu, 27 Jun 2013 22:37:00 +0000 (18:37 -0400)]
#14360: make encoders.encode_quopri work.
There were no tests for the encoders module. encode_base64 worked
because it is the default and so got tested implicitly elsewhere, and
we use encode_7or8bit internally, so that worked, too. I previously
fixed encode_noop, so this fix means that everythign in the encoders
module now works, hopefully correctly. Also added an explicit test
for encode_base64.
R David Murray [Wed, 26 Jun 2013 19:11:12 +0000 (15:11 -0400)]
#18311: fix typo.
Victor Stinner [Tue, 25 Jun 2013 00:33:53 +0000 (02:33 +0200)]
Fix time.strftime("%Y") on AIX: raise a ValueError for year > 9999
time.strtime("%Y") returned "2345" when formatting year 12345.
Victor Stinner [Mon, 24 Jun 2013 22:42:31 +0000 (00:42 +0200)]
Issue #18135: ssl.SSLSocket.write() now raises an OverflowError if the input
string in longer than 2 gigabytes, and ssl.SSLContext.load_cert_chain() raises
a ValueError if the password is longer than 2 gigabytes. The ssl module does
not support partial write.
Ned Deily [Mon, 24 Jun 2013 21:22:09 +0000 (14:22 -0700)]
Issue #18164: Clarify the embedding docs regarding link options.
Richard Oudkerk [Mon, 24 Jun 2013 19:38:46 +0000 (20:38 +0100)]
Fix typo.
Richard Oudkerk [Mon, 24 Jun 2013 17:12:57 +0000 (18:12 +0100)]
Clarify note and fix typo.
Richard Oudkerk [Mon, 24 Jun 2013 14:42:00 +0000 (15:42 +0100)]
Issue #15818: Typo in docs.
Richard Oudkerk [Mon, 24 Jun 2013 13:48:07 +0000 (14:48 +0100)]
Issue #18277: Document quirks of multiprocessing queue.
Christian Heimes [Mon, 24 Jun 2013 13:39:41 +0000 (15:39 +0200)]
Fix test for GCC 3.1+ but not strict ANSI C
Christian Heimes [Sun, 23 Jun 2013 21:51:44 +0000 (23:51 +0200)]
Check for correct macro, code uses S_ISDIR().
R David Murray [Sun, 23 Jun 2013 20:05:44 +0000 (16:05 -0400)]
#18179: reflow paragraphs.
R David Murray [Sun, 23 Jun 2013 19:47:50 +0000 (15:47 -0400)]
#18179: document the local_hostname parameter.
Original patch by Berker Peksag.
Serhiy Storchaka [Sun, 23 Jun 2013 17:25:40 +0000 (20:25 +0300)]
Merge heads
Serhiy Storchaka [Sun, 23 Jun 2013 17:12:14 +0000 (20:12 +0300)]
Issue #18184: PyUnicode_FromFormat() and PyUnicode_FromFormatV() now raise
OverflowError when an argument of %c format is out of range.
Łukasz Langa [Sun, 23 Jun 2013 17:10:25 +0000 (19:10 +0200)]
Fixed issue #18260: configparser TypeError on source name specified as bytes
Christian Heimes [Sun, 23 Jun 2013 14:10:29 +0000 (16:10 +0200)]
Solaris' /dev/null is a symlink. The device test now uses stat instead of lstat to compensate
for symlinks.
Victor Stinner [Sun, 23 Jun 2013 13:08:23 +0000 (15:08 +0200)]
Issue #18135: Fix a possible integer overflow in ssl.SSLSocket.write()
and in ssl.SSLContext.load_cert_chain() for strings and passwords longer
than 2 gigabytes.
Victor Stinner [Sun, 23 Jun 2013 12:58:43 +0000 (14:58 +0200)]
_ssl.c: strip trailing spaces
Victor Stinner [Sun, 23 Jun 2013 12:54:30 +0000 (14:54 +0200)]
Issue #18137: Detect integer overflow on precision in float.__format__() and
complex.__format__().
Andrew Kuchling [Sat, 22 Jun 2013 23:20:54 +0000 (19:20 -0400)]
Closes #18220: expand itertools.islice docstring to 2 lines
Andrew Kuchling [Sat, 22 Jun 2013 23:04:11 +0000 (19:04 -0400)]
Close #18285: add 'repeat' parameter to docstring for product
Terry Jan Reedy [Sat, 22 Jun 2013 22:26:51 +0000 (18:26 -0400)]
#18151, part 2: Silence debug build resource warning for each file opened by
'Find in files' by replacing 'open with implicit close' by 'with open' in
GrepDialog method grep_it. Streamline code with enumerate(), direct file
iteration, and output tweak. Add test for this method, including output format.
Andrew Kuchling [Sat, 22 Jun 2013 18:50:56 +0000 (14:50 -0400)]
#18113: avoid segfault if Py_XDECREF triggers code that calls set_panel_userptr again
Problem noted & original patch by Serhiy Storchaka; I tweaked the patch a bit.
Christian Heimes [Sat, 22 Jun 2013 12:48:32 +0000 (14:48 +0200)]
BSD: block devices are gone
http://www.freebsd.org/doc/en/books/arch-handbook/driverbasics-block.html
Brett Cannon [Fri, 21 Jun 2013 22:31:55 +0000 (18:31 -0400)]
Issue #18278: properly document how the loaders are called for FileFinder
Christian Heimes [Fri, 21 Jun 2013 16:53:13 +0000 (18:53 +0200)]
Fix test_stat on BSD, /dev/da0 and /dev/ad0 are links
Christian Heimes [Fri, 21 Jun 2013 16:25:56 +0000 (18:25 +0200)]
Add tests for untested features of the 'stat' module (part of issue #11016)
Andrew Kuchling [Fri, 21 Jun 2013 12:00:58 +0000 (08:00 -0400)]
Closes #18218: use correct variable name for starting point
Andrew Kuchling [Fri, 21 Jun 2013 11:58:35 +0000 (07:58 -0400)]
Closes #18239: correct description of count() in module docstring
Andrew Kuchling [Fri, 21 Jun 2013 01:33:05 +0000 (21:33 -0400)]
Closes #18267: use floor division in code example
Andrew Kuchling [Fri, 21 Jun 2013 01:17:41 +0000 (21:17 -0400)]
Closes #18272: use 'builtins' for 3.3 instead of __builtin__
Andrew Kuchling [Thu, 20 Jun 2013 13:29:09 +0000 (09:29 -0400)]
#4153: update Unicode howto for Python 3.3
* state that python3 source encoding is UTF-8, and give examples
* mention surrogateescape in the 'tips and tricks' section, and
backslashreplace in the "Python's Unicode Support" section.
* Describe Unicode support provided by the re module.
* link to Nick Coghlan's and Ned Batchelder's notes/presentations.
* default filesystem encoding is now UTF-8, not ascii.
* Describe StreamRecoder class.
* update acks section
* remove usage of "I think", "I'm not going to", etc.
* various edits
* remove revision history and original outline
Senthil Kumaran [Thu, 20 Jun 2013 03:19:46 +0000 (22:19 -0500)]
Add -b and -X options to python man page.
Patch contributed by Corey Brune.
R David Murray [Wed, 19 Jun 2013 20:58:26 +0000 (16:58 -0400)]
Tweak programming faq examples so that it (mostly) passes doctest.
The exception is the import related questions at the end, which
need to be rewritten anyway.
Benjamin Peterson [Wed, 19 Jun 2013 16:01:42 +0000 (09:01 -0700)]
fix libffi build on AIX (closes #18248)
Serhiy Storchaka [Wed, 19 Jun 2013 07:23:35 +0000 (10:23 +0300)]
Issue #18202: Fix minor bugs and cleanup test_coding.py.
Christian Heimes [Wed, 19 Jun 2013 00:40:38 +0000 (02:40 +0200)]
fixed libffi on PPC without __NO_FPRS__
ISO C90 forbids mixed declarations and code
Christian Heimes [Wed, 19 Jun 2013 00:09:00 +0000 (02:09 +0200)]
merge heads
Christian Heimes [Wed, 19 Jun 2013 00:06:29 +0000 (02:06 +0200)]
Issue #18259: Declare sethostname in socketmodule.c for AIX
Antoine Pitrou [Tue, 18 Jun 2013 20:17:48 +0000 (22:17 +0200)]
Issue #18256: Compilation fix for recent AIX releases. Patch by David Edelsohn.
Christian Heimes [Tue, 18 Jun 2013 11:22:17 +0000 (13:22 +0200)]
Fix for r84195: add HAVE_ALLOCA_H to configure and only include alloca.h if it's available
Victor Stinner [Mon, 17 Jun 2013 21:37:59 +0000 (23:37 +0200)]
test_faulthandler: use _sigsegv() instead of _read_null()
faulthandler._read_null() is not reliable: it does not crash on AIX.
Victor Stinner [Mon, 17 Jun 2013 20:01:53 +0000 (22:01 +0200)]
ctypes: AIX needs an explicit #include <alloca.h> to get alloca()
Victor Stinner [Mon, 17 Jun 2013 19:51:56 +0000 (21:51 +0200)]
Issue #18238: Skip test_signal.test_sigwaitinfo_interrupted() on AIX
sigwaitinfo() can be interrupted on Linux (raises InterruptedError), but not on
AIX.
Victor Stinner [Mon, 17 Jun 2013 18:35:08 +0000 (20:35 +0200)]
regrtest.py: Fix another typo in the usage of the faulthandler module
Victor Stinner [Mon, 17 Jun 2013 18:27:10 +0000 (20:27 +0200)]
regrtest.py: Fix typo in the usage of the faulthandler module
Serhiy Storchaka [Mon, 17 Jun 2013 13:34:41 +0000 (16:34 +0300)]
Issue #18167: cgi.FieldStorage no more fails to handle multipart/form-data
when \r\n appears at end of 65535 bytes without other newlines.
Serhiy Storchaka [Mon, 17 Jun 2013 12:38:50 +0000 (15:38 +0300)]
Issue #18223: Refactor test_tarfile.
* Use mixins for generating tests for different compression types.
* Make test_tarfile discoverable.
* Use more special tests (i.e. assertEqual, assertIs) instead of assertTrue.
* Add explicit test skips instead of reporting skipped tests as passed.
* Wrap long lines.
* Correct a comment for test_hardlink_extraction1.
* Add support.requires_gzip.
and some other minor enhancements.
Brett Cannon [Sun, 16 Jun 2013 23:07:16 +0000 (19:07 -0400)]
merge
Brett Cannon [Sun, 16 Jun 2013 23:06:55 +0000 (19:06 -0400)]
Fix a misnaming of a method and an argument
Andrew Kuchling [Sun, 16 Jun 2013 16:58:48 +0000 (12:58 -0400)]
Describe 'surrogateescape' in the documentation.
Also, improve some docstring descriptions of the 'errors' parameter.
Closes #14015.
Gregory P. Smith [Sun, 16 Jun 2013 01:05:17 +0000 (18:05 -0700)]
news entry for subprocess double close fix.
Gregory P. Smith [Sun, 16 Jun 2013 01:04:26 +0000 (18:04 -0700)]
Prevent a possible double close of parent pipe fds when the subprocess
exec runs into an error. Prevent a regular multi-close of the /dev/null
fd when any of stdin, stdout and stderr was set to DEVNULL.
Andrew Kuchling [Sat, 15 Jun 2013 18:04:04 +0000 (14:04 -0400)]
#18113: Objects associated to a curses.panel object with set_userptr() were leaked.
Reported by Atsuo Ishimoto.
Brett Cannon [Sat, 15 Jun 2013 17:37:12 +0000 (13:37 -0400)]
Drop some dead imports of imp
Christian Heimes [Fri, 14 Jun 2013 13:40:28 +0000 (15:40 +0200)]
Issue #15172: Document NASM 2.10+ as requirement for building OpenSSL 1.0.1 on Windows
Serhiy Storchaka [Wed, 12 Jun 2013 06:20:44 +0000 (09:20 +0300)]
Add tests for issue #18183.