]>
granicus.if.org Git - python/log
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: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
Eli Bendersky [Sat, 24 Aug 2013 22:11:44 +0000 (15:11 -0700)]
Clarify the documentation of XMLParser.close
The return value of close() is not always a toplevel element. It depends on
what the underlying target returns. By default, TreeBuilder returns the
toplevel document element.
Tim Peters [Sat, 24 Aug 2013 20:31:07 +0000 (15:31 -0500)]
Various clarifications based on feedback & questions over the years.
Tim Peters [Sat, 24 Aug 2013 20:15:19 +0000 (15:15 -0500)]
Various clarifications based on feedback & questions over the years.
(grafted from
23181bf411a16287a0a54e910fc0f9ecd2764bf0 )
Antoine Pitrou [Sat, 24 Aug 2013 19:07:07 +0000 (21:07 +0200)]
Issue #18772: fix the gdb plugin after the set implementation changes
Antoine Pitrou [Sat, 24 Aug 2013 18:52:45 +0000 (20:52 +0200)]
Issue #18756: make test_urandom_failure more robust by executing its code in a subprocess
Antoine Pitrou [Sat, 24 Aug 2013 18:52:27 +0000 (20:52 +0200)]
Issue #18756: make test_urandom_failure more robust by executing its code in a subprocess
Nick Coghlan [Sat, 24 Aug 2013 14:48:17 +0000 (00:48 +1000)]
Close #18538: ``python -m dis`` now uses argparse.
Patch by Michele Orrù.
Victor Stinner [Sat, 24 Aug 2013 13:53:39 +0000 (15:53 +0200)]
(Merge 3.3) test_socket: cancel scheduled alarm on test failure
Victor Stinner [Sat, 24 Aug 2013 13:52:47 +0000 (15:52 +0200)]
test_socket: cancel scheduled alarm on test failure
Benjamin Peterson [Sat, 24 Aug 2013 02:01:48 +0000 (21:01 -0500)]
remove support for compiling on systems without getcwd()
Do we need a fallback implementation of getcwd() from 1991 that claims to
support "really old Unix systems"? I don't think so.
Serhiy Storchaka [Fri, 23 Aug 2013 21:42:54 +0000 (00:42 +0300)]
Merge heads
Serhiy Storchaka [Fri, 23 Aug 2013 21:27:59 +0000 (00:27 +0300)]
Issue #18757: Improved cross-references in the concurrent package.
Serhiy Storchaka [Fri, 23 Aug 2013 21:23:38 +0000 (00:23 +0300)]
Issue #18757: Improved cross-references in the concurrent package.
Antoine Pitrou [Fri, 23 Aug 2013 21:18:20 +0000 (23:18 +0200)]
Back out
5bd9db528aed (issue #18408). It caused unsolved buildbot failures.
Antoine Pitrou [Fri, 23 Aug 2013 21:04:30 +0000 (23:04 +0200)]
Issue #17741: use composition, rather than inheritance, for xml.etree.iterparse's result class.
Patch by Stefan Behnel.
Ezio Melotti [Fri, 23 Aug 2013 20:09:32 +0000 (23:09 +0300)]
#18798: merge typo fix from 3.3 and also use two unused variables.
Ezio Melotti [Fri, 23 Aug 2013 20:06:31 +0000 (23:06 +0300)]
#18798: fix typo in test_fcntl. Patch by Vajrasky Kok.
Ezio Melotti [Fri, 23 Aug 2013 19:41:39 +0000 (22:41 +0300)]
#18796: improve documentation of the file argument of dis.show_code. Initial patch by Vajrasky Kok.
Brett Cannon [Fri, 23 Aug 2013 19:15:48 +0000 (15:15 -0400)]
Issue #18394: Explicitly close the file object cgi.FieldStorage
caches.
Eliminates the ResoureWarning raised during testing.
Patch also independently written by Vajrasky Kok.
Brett Cannon [Fri, 23 Aug 2013 18:38:11 +0000 (14:38 -0400)]
Stop using assertEquals.
Brett Cannon [Fri, 23 Aug 2013 18:31:27 +0000 (14:31 -0400)]
Make test_import more robust and stop using assertRaisesRegexp().
Victor Stinner [Fri, 23 Aug 2013 17:23:42 +0000 (19:23 +0200)]
(Merge 3.3) Close #17702: On error, os.environb now removes suppress the except
context when raising a new KeyError with the original key.
Victor Stinner [Fri, 23 Aug 2013 17:19:15 +0000 (19:19 +0200)]
Close #17702: On error, os.environb now removes suppress the except context
when raising a new KeyError with the original key.
Brett Cannon [Fri, 23 Aug 2013 16:10:09 +0000 (12:10 -0400)]
Delete merge markers
Brett Cannon [Fri, 23 Aug 2013 15:52:44 +0000 (11:52 -0400)]
merge for issue #18755
Brett Cannon [Fri, 23 Aug 2013 15:52:19 +0000 (11:52 -0400)]
merge for issue #18755
Brett Cannon [Fri, 23 Aug 2013 15:47:26 +0000 (11:47 -0400)]
NEW entry for issue #18755
Brett Cannon [Fri, 23 Aug 2013 15:45:57 +0000 (11:45 -0400)]
Issue #18755: Allow imp.load_*() loaders to have get_data() called
multiple times.
Brett Cannon [Fri, 23 Aug 2013 15:00:04 +0000 (11:00 -0400)]
merge emphasized discouragement of overriding __import__
Brett Cannon [Fri, 23 Aug 2013 14:58:49 +0000 (10:58 -0400)]
Emphasize that people should not override __import__.
With importlib getting used more and more, changing __import__ will
not work as well as people used to hope as it will potentially bypass
importers, etc. It also will not work with importlib.import_module()
as it uses "importlib.__import__" (i.e. importlib's implementation of
import) directly and not builtins.__import__.
Raymond Hettinger [Fri, 23 Aug 2013 08:22:15 +0000 (03:22 -0500)]
Add the same dummy type that is used in dictionaries.
Tim Peters [Thu, 22 Aug 2013 23:42:02 +0000 (18:42 -0500)]
Add line explaining the "%sort" test.
Tim Peters [Thu, 22 Aug 2013 23:32:53 +0000 (18:32 -0500)]
Add line explaining the "%sort" test.
(grafted from
1ea833ecaf5a9d43a886e9e73b4e2551d0d5b548 )