]>
granicus.if.org Git - python/log
Victor Stinner [Sun, 1 Sep 2013 08:22:41 +0000 (10:22 +0200)]
Issue #18571: Merge duplicate test code
Merge test/subprocessdata/inherited.py into test/subprocessdata/fd_status.py
Andrew Svetlov [Sun, 1 Sep 2013 04:58:41 +0000 (07:58 +0300)]
Issue #11798: fix tests for regrtest -R :
Tim Peters [Sun, 1 Sep 2013 04:44:34 +0000 (23:44 -0500)]
Back out
868ad6fa8e68 - it left all the buildbots failing.
Unclear to me why it was pushed to begin with. See issue 11798.
Perhaps it's because regrtest with -R was failing? Fine, but
that's better than regrtest _always_ failing ;-)
Raymond Hettinger [Sun, 1 Sep 2013 04:34:24 +0000 (21:34 -0700)]
Update copyright.
Raymond Hettinger [Sun, 1 Sep 2013 04:28:58 +0000 (21:28 -0700)]
merge
Raymond Hettinger [Sun, 1 Sep 2013 04:27:08 +0000 (21:27 -0700)]
Further reduce the cost of hash collisions by inspecting an additional nearby entry.
Ethan Furman [Sun, 1 Sep 2013 02:17:41 +0000 (19:17 -0700)]
Close #18738: Route __format__ calls to mixed-in type for mixed Enums (such as IntEnum).
Eli Bendersky [Sat, 31 Aug 2013 22:18:48 +0000 (15:18 -0700)]
Update whatsnew/3.4.rst wrt. the socket constants switch to IntEnum
[issue #18730]
Eli Bendersky [Sat, 31 Aug 2013 22:13:30 +0000 (15:13 -0700)]
Switch the AF_* and SOCK_* constants in the socket module to IntEnum.
Closes #18720.
Terry Jan Reedy [Sat, 31 Aug 2013 21:16:45 +0000 (17:16 -0400)]
Issue #12037: Fix test_email for desktop Windows.
Terry Jan Reedy [Sat, 31 Aug 2013 21:12:21 +0000 (17:12 -0400)]
Issue #12037: Fix test_email for desktop Windows.
Terry Jan Reedy [Sat, 31 Aug 2013 20:28:53 +0000 (16:28 -0400)]
Merge from 3.3 #18489 Search Engine tests
Terry Jan Reedy [Sat, 31 Aug 2013 20:27:16 +0000 (16:27 -0400)]
Issue #18489: Add complete, gui-free tests for idlelib.SearchEngine.
Patch import and initialization in SearchEngine to make testing easier.
Improve docstrings, especially to clarify the double role of 'ok' parameters.
Original patch by Phil Webster.
Ethan Furman [Sat, 31 Aug 2013 19:48:51 +0000 (12:48 -0700)]
Issue #18780: code cleanup.
Andrew Svetlov [Sat, 31 Aug 2013 17:55:25 +0000 (20:55 +0300)]
Temporary disable tests cleanup (issue 11798).
Ethan Furman [Sat, 31 Aug 2013 17:18:55 +0000 (10:18 -0700)]
Close #18780: %-formatting now prints value for int subclasses with %d, %i, and %u codes.
Charles-François Natali [Sat, 31 Aug 2013 15:32:30 +0000 (17:32 +0200)]
Merge.
Eli Bendersky [Sat, 31 Aug 2013 14:37:23 +0000 (07:37 -0700)]
Fix XMLPullParser documentation to say "non-blocking" instead of "asynchronous".
The latter is more ambiguous.
Related to issue #17741
Charles-François Natali [Sat, 31 Aug 2013 12:48:25 +0000 (14:48 +0200)]
Use INADDR_BROADCAST instead of hard-coded value (it's part of POSIX and
already appears without #ifdef a couple lines above).
Charles-François Natali [Sat, 31 Aug 2013 12:40:49 +0000 (14:40 +0200)]
Use the recent support.HOSTv6 addition.
Antoine Pitrou [Fri, 30 Aug 2013 22:26:02 +0000 (00:26 +0200)]
Issue #18756: os.urandom() now uses a lazily-opened persistent file descriptor, so as to avoid using many file descriptors when run in parallel from multiple threads.
Antoine Pitrou [Fri, 30 Aug 2013 22:12:37 +0000 (00:12 +0200)]
Forward port new tests from Issue #18851.
Antoine Pitrou [Fri, 30 Aug 2013 21:38:13 +0000 (23:38 +0200)]
Forward port new tests from Issue #18851.
Charles-François Natali [Fri, 30 Aug 2013 21:34:26 +0000 (23:34 +0200)]
Issue #18418: After fork(), reinit all threads states, not only active ones.
Patch by A. Jesse Jiryu Davis.
Charles-François Natali [Fri, 30 Aug 2013 21:32:53 +0000 (23:32 +0200)]
Issue #18418: After fork(), reinit all threads states, not only active ones.
Patch by A. Jesse Jiryu Davis.
Eli Bendersky [Fri, 30 Aug 2013 12:51:20 +0000 (05:51 -0700)]
Issue #17741: Rename IncrementalParser and its methods.
The new names are hopefully more descriptive and consistent. If you feel you
don't agree with this change, *please* read issue 17741 first - there's a lot of
discussion in there.
Philip Jenvey [Fri, 30 Aug 2013 01:33:50 +0000 (18:33 -0700)]
utilize int.from_bytes
Benjamin Peterson [Thu, 29 Aug 2013 21:29:30 +0000 (17:29 -0400)]
improve comment
Benjamin Peterson [Thu, 29 Aug 2013 21:27:57 +0000 (17:27 -0400)]
make lists uniformly integers for the benefit of pypy
Gregory P. Smith [Thu, 29 Aug 2013 20:39:44 +0000 (13:39 -0700)]
Fixes Issue #15507: test_subprocess's test_send_signal could fail if the test
runner were run in an environment where the process inherited an ignore
setting for SIGINT. Restore the SIGINT handler to the desired
KeyboardInterrupt raising one during that test.
Gregory P. Smith [Thu, 29 Aug 2013 20:35:27 +0000 (13:35 -0700)]
Fixes issue #15507: test_subprocess's test_send_signal could fail if the test
runner were run in an environment where the process inherited an ignore
setting for SIGINT. Restore the SIGINT handler to the desired
KeyboardInterrupt raising one during that test.
Tim Peters [Thu, 29 Aug 2013 17:35:37 +0000 (12:35 -0500)]
Null merge of 3.3 into default.
Charles-François Natali [Thu, 29 Aug 2013 17:27:17 +0000 (19:27 +0200)]
Merge.
Charles-François Natali [Thu, 29 Aug 2013 17:26:37 +0000 (19:26 +0200)]
Merge.
Charles-François Natali [Thu, 29 Aug 2013 17:02:23 +0000 (19:02 +0200)]
Issue #18643: Fix some test_socket failures due to large default socket buffer
sizes.
Charles-François Natali [Thu, 29 Aug 2013 17:01:40 +0000 (19:01 +0200)]
Issue #18643: Fix some test_socket failures due to large default socket buffer
sizes.
Richard Oudkerk [Thu, 29 Aug 2013 13:37:47 +0000 (14:37 +0100)]
Issue #8713: Print dangling processes/threads, if any.
Richard Oudkerk [Thu, 29 Aug 2013 11:51:11 +0000 (12:51 +0100)]
Issue #8713: Cleanup before saving process._dangling.
Richard Oudkerk [Thu, 29 Aug 2013 11:41:19 +0000 (12:41 +0100)]
Issue #8713: Test should not print message about start method.
Serhiy Storchaka [Thu, 29 Aug 2013 09:37:28 +0000 (12:37 +0300)]
Issue #17974: Switch unittest from using getopt to using argparse.
Serhiy Storchaka [Thu, 29 Aug 2013 09:26:23 +0000 (12:26 +0300)]
Issue #16799: Switched from getopt to argparse style in regrtest's argument
parsing. Added more tests for regrtest's argument parsing.
Serhiy Storchaka [Thu, 29 Aug 2013 08:39:48 +0000 (11:39 +0300)]
Issue #18743: Fix references to non-existant "StringIO" module
in docstrings and comments.
Serhiy Storchaka [Thu, 29 Aug 2013 08:35:43 +0000 (11:35 +0300)]
Issue #18743: Fix references to non-existant "StringIO" module
in docstrings and comments.
Serhiy Storchaka [Thu, 29 Aug 2013 07:29:30 +0000 (10:29 +0300)]
Issue #18760: Improved cross-references in the xml package.
Serhiy Storchaka [Thu, 29 Aug 2013 07:28:44 +0000 (10:28 +0300)]
Issue #18760: Improved cross-references in the xml package.
Raymond Hettinger [Thu, 29 Aug 2013 03:59:31 +0000 (20:59 -0700)]
Tighten-up the lookkey() logic and beautify the code a bit.
Use less code by moving many of the steps from the initial
lookup into the main search loop.
Beautify the code but keep the overall logic unchanged.
Andrew Svetlov [Wed, 28 Aug 2013 22:24:39 +0000 (01:24 +0300)]
Fix tests for #11798
Andrew Svetlov [Wed, 28 Aug 2013 18:28:38 +0000 (21:28 +0300)]
Issue #11798: TestSuite now drops references to own tests after execution.
Richard Oudkerk [Wed, 28 Aug 2013 12:50:19 +0000 (13:50 +0100)]
Issue #18786: Don't reinstall old SIGUSR1 handler prematurely.
Victor Stinner [Wed, 28 Aug 2013 10:34:16 +0000 (12:34 +0200)]
(Merge 3.3) Fix @requires_freebsd_version and @requires_linux_version
decorators of test.support, run the test if the platform matchs!
Victor Stinner [Wed, 28 Aug 2013 10:28:18 +0000 (12:28 +0200)]
Fix test_socket.test_SOCK_CLOEXEC(), the test was wrong
Victor Stinner [Wed, 28 Aug 2013 10:26:28 +0000 (12:26 +0200)]
Fix @requires_freebsd_version and @requires_linux_version decorators of
test.support, run the test if the platform matchs!
Victor Stinner [Wed, 28 Aug 2013 10:25:40 +0000 (12:25 +0200)]
test_posix.test_pipe2() now checks that the O_NONBLOCK flag is set
Use also os.get_inheritable() instead of fcntl() to check the inheritable flag
(FD_CLOEXEC).
Victor Stinner [Wed, 28 Aug 2013 10:22:39 +0000 (12:22 +0200)]
select.epoll.fromfd(fd) must be not change the inheritable flag of the file
descriptor
Victor Stinner [Wed, 28 Aug 2013 10:21:47 +0000 (12:21 +0200)]
Issue #18865: remove unused import from multiprocessing.util.spawnv_passfds()
Richard Oudkerk [Wed, 28 Aug 2013 10:25:34 +0000 (11:25 +0100)]
Issue #18865: PEP 446 makes multiprocessing.util.pipe() unnecessary.
Victor Stinner [Wed, 28 Aug 2013 00:06:21 +0000 (02:06 +0200)]
Get rid of signed/unsigned comparaison in _sre.c
Fix compilation warnings on Windows (Visual C++) like: "_sre.c(3121): warning
C4018: '>' : signed/unsigned mismatch".
_validate_outer() ensures that groups >= 0, so _validate_inner() can cast
groups to size_t.
Victor Stinner [Tue, 27 Aug 2013 23:53:39 +0000 (01:53 +0200)]
_datetimemodule.c: fix the compilation warning "conversion from 'double' to
'long', possible loss of data" in delta_new(), use an explicit cast from double
to long
Victor Stinner [Tue, 27 Aug 2013 23:51:06 +0000 (01:51 +0200)]
fix a compilation warning in posix_openpty() on "PPC64 AIX 3.x" buildbot
Victor Stinner [Tue, 27 Aug 2013 23:47:46 +0000 (01:47 +0200)]
pythonrun.c: use MAXPATHLEN instead of PATH_MAX
PATH_MAX is not available on "MIPS IRIX 6.5.30 [SB] 3.x" buildbot
Victor Stinner [Tue, 27 Aug 2013 23:45:39 +0000 (01:45 +0200)]
(Merge 3.3) Fix compilation of the _sqlite module if threads are disabled
Victor Stinner [Tue, 27 Aug 2013 23:44:42 +0000 (01:44 +0200)]
Fix compilation of the _sqlite module if threads are disabled
Victor Stinner [Tue, 27 Aug 2013 22:53:59 +0000 (00:53 +0200)]
Issue #18571: Implementation of the PEP 446: file descriptors and file handles
are now created non-inheritable; add functions os.get/set_inheritable(),
os.get/set_handle_inheritable() and socket.socket.get/set_inheritable().
Serhiy Storchaka [Tue, 27 Aug 2013 17:17:03 +0000 (20:17 +0300)]
Issue #18783: Removed existing mentions of Python long type in docstrings,
error messages and comments.
Serhiy Storchaka [Tue, 27 Aug 2013 16:40:23 +0000 (19:40 +0300)]
Issue #18783: Removed existing mentions of Python long type in docstrings,
error messages and comments.
Victor Stinner [Mon, 26 Aug 2013 20:28:21 +0000 (22:28 +0200)]
Close #11619: The parser and the import machinery do not encode Unicode
filenames anymore on Windows.
Victor Stinner [Mon, 26 Aug 2013 12:05:19 +0000 (14:05 +0200)]
Restore changeset
5bd9db528aed (issue #18408)
"Issue #18408: PyObject_Str(), PyObject_Repr() and type_call() now fail with an
assertion error if they are called with an exception set (PyErr_Occurred()).
As PyEval_EvalFrameEx(), they may clear the current exception and so the caller
looses its exception."
Victor Stinner [Mon, 26 Aug 2013 12:04:10 +0000 (14:04 +0200)]
Issue #18664, #18408: Rewrite PyErr_WriteUnraisable() to handle errors
* Catch PyFile_WriteString() and PyFile_WriteObject() errors
* Clear the current exception on _PyObject_GetAttrId() failure
* Use PyUnicode_CompareWithASCIIString() and PyFile_WriteObject() instead of
_PyUnicode_AsString() and strcmp() to avoid Unicode encoding error. stderr
has a more tolerant error handler than utf-8/strict.
Victor Stinner [Mon, 26 Aug 2013 11:49:06 +0000 (13:49 +0200)]
Issue #18408: _PyObject_Dump() now saves/restores the current exception
So it can be called even if an exception was raised
Ezio Melotti [Mon, 26 Aug 2013 11:01:29 +0000 (14:01 +0300)]
#18839: merge with 3.3.
Ezio Melotti [Mon, 26 Aug 2013 11:00:39 +0000 (14:00 +0300)]
#18839: document that sys.exit() will not accept a non-integer numeric value as exit status.
Eli Bendersky [Mon, 26 Aug 2013 02:06:16 +0000 (19:06 -0700)]
Clarify pyexpat documentation in StartElementHandler
Eli Bendersky [Mon, 26 Aug 2013 02:05:55 +0000 (19:05 -0700)]
Clarify pyexpat documentation in StartElementHandler
Eli Bendersky [Mon, 26 Aug 2013 01:58:18 +0000 (18:58 -0700)]
Remove the obsolete XMLParser._start/_start_list duality.
XMLParser configures expat to report attributes in a list (ordered_attributes),
so only _start_list is needed. Rename it to _start and kill _start.
Ezio Melotti [Sun, 25 Aug 2013 22:33:30 +0000 (01:33 +0300)]
#18803: merge with 3.3.
Ezio Melotti [Sun, 25 Aug 2013 22:32:56 +0000 (01:32 +0300)]
#18803: fix more typos. Patch by Févry Thibault.
Eli Bendersky [Sun, 25 Aug 2013 22:30:39 +0000 (15:30 -0700)]
Merge doc fix from 3.3
Eli Bendersky [Sun, 25 Aug 2013 22:27:36 +0000 (15:27 -0700)]
Update XMLParser.close documentation and fix formatting.
Using ``method`` markup because the method is on a callback object, not an
explicitly documented method. :meth: markup creates links within the current
class which is incorrect.
In addition, indent the paragraph correctly.
Ezio Melotti [Sun, 25 Aug 2013 22:05:57 +0000 (01:05 +0300)]
Fix markup in elementtree docs.
Ezio Melotti [Sun, 25 Aug 2013 21:17:21 +0000 (00:17 +0300)]
#18833: merge with 3.3.
Ezio Melotti [Sun, 25 Aug 2013 20:56:43 +0000 (23:56 +0300)]
#18833: add a test for test_telnetlib. Patch by Alex Volkov.
Antoine Pitrou [Sun, 25 Aug 2013 17:48:18 +0000 (19:48 +0200)]
Issue #18808: Non-daemon threads are now automatically joined when a sub-interpreter is shutdown (it would previously dump a fatal error).
Charles-François Natali [Sun, 25 Aug 2013 16:29:16 +0000 (18:29 +0200)]
Merge.
Charles-François Natali [Sun, 25 Aug 2013 16:28:44 +0000 (18:28 +0200)]
Merge.
Charles-François Natali [Sun, 25 Aug 2013 16:27:59 +0000 (18:27 +0200)]
Merge.
Charles-François Natali [Sun, 25 Aug 2013 16:25:38 +0000 (18:25 +0200)]
Issue #18763: subprocess: The file descriptors are now closed after calling the
preexec_fn callback, which may open file descriptors.
Charles-François Natali [Sun, 25 Aug 2013 16:24:45 +0000 (18:24 +0200)]
Issue #18763: subprocess: The file descriptors are now closed after calling the
preexec_fn callback, which may open file descriptors.
Serhiy Storchaka [Sun, 25 Aug 2013 16:16:01 +0000 (19:16 +0300)]
Issue #18817: Fix a resource warning in Lib/aifc.py demo. Patch by
Vajrasky Kok.
Serhiy Storchaka [Sun, 25 Aug 2013 16:12:56 +0000 (19:12 +0300)]
Issue #18817: Fix a resource warning in Lib/aifc.py demo.
R David Murray [Sun, 25 Aug 2013 15:09:45 +0000 (11:09 -0400)]
Merge #16611: BaseCookie now parses 'secure' and 'httponly' flags.
R David Murray [Sun, 25 Aug 2013 15:09:02 +0000 (11:09 -0400)]
#16611: BaseCookie now parses 'secure' and 'httponly' flags.
Previously it generated them if they were given a value, but completely
ignored them if they were present in the string passed in to be parsed. Now
if the flag appears on a cookie, the corresponding Morsel key will reference a
True value. Other pre-existing behavior is retained in this maintenance
patch: if the source contains something like 'secure=foo', morsel['secure']
will return 'foo'. Since such a value doesn't round trip and never did (and
would be a surprising occurrence) a subsequent non-bug-fix patch may change
this behavior.
Inspired by a patch from Julien Phalip, who reviewed this one.
Christian Heimes [Sun, 25 Aug 2013 12:57:38 +0000 (14:57 +0200)]
Issue #11973: Fix a problem in kevent. The flags and fflags fields are now
properly handled as unsigned.
Christian Heimes [Sun, 25 Aug 2013 12:57:00 +0000 (14:57 +0200)]
Issue #11973: Fix a problem in kevent. The flags and fflags fields are now
properly handled as unsigned.
Christian Heimes [Sun, 25 Aug 2013 12:19:29 +0000 (14:19 +0200)]
Issue #18747: Fix spelling errors in my commit message and comments,
thanks to Vajrasky Kok for proof-reading.
Christian Heimes [Sun, 25 Aug 2013 12:19:16 +0000 (14:19 +0200)]
Issue #18747: Fix spelling errors in my commit message and comments,
thanks to Vajrasky Kok for proof-reading.
Christian Heimes [Sun, 25 Aug 2013 12:12:50 +0000 (14:12 +0200)]
Issue #18709: Fix issue with IPv6 address in subjectAltName on Mac OS X Tiger
Christian Heimes [Sun, 25 Aug 2013 12:12:41 +0000 (14:12 +0200)]
Issue #18709: Fix issue with IPv6 address in subjectAltName on Mac OS X Tiger
Vinay Sajip [Sat, 24 Aug 2013 23:04:06 +0000 (00:04 +0100)]
Closes #18807: pyvenv now takes a --copies argument allowing copies instead of symlinks even where symlinks are available and the default.
Richard Oudkerk [Sat, 24 Aug 2013 22:46:27 +0000 (23:46 +0100)]
Fix compiler warning on Windows.
Eli Bendersky [Sat, 24 Aug 2013 22:17:08 +0000 (15:17 -0700)]
Use consistent style for else if / else