Georg Brandl [Fri, 30 Jul 2010 09:14:20 +0000 (09:14 +0000)]
#1472251: remove addition of "\n" to code given to pdb.run[eval](), the bug in exec() that made this necessary has been fixed. Also document that you can give code objects to run() and runeval(), and add some tests to test_pdb.
Georg Brandl [Fri, 30 Jul 2010 08:54:49 +0000 (08:54 +0000)]
#8015: fix crash when entering an empty line for breakpoint commands. Also restore environment properly when an exception occurs during the definition of commands.
Georg Brandl [Fri, 30 Jul 2010 08:29:39 +0000 (08:29 +0000)]
#1437051: allow "continue"/"next"/etc. in .pdbrc, also add pdb -c option to give these commands. This allows to run a script until an exception occurs.
Georg Brandl [Thu, 29 Jul 2010 11:49:05 +0000 (11:49 +0000)]
#6538: fix regex documentation again -- use fictional class names "regex" and "match" but do not document them as classes, remove 1.5 compat info and use new default argument syntax where possible.
Georg Brandl [Wed, 28 Jul 2010 13:13:46 +0000 (13:13 +0000)]
#1682942: add some ConfigParser features: alternate delimiters, alternate comments, empty lines in values. Also enhance the docs with more examples and mention SafeConfigParser before ConfigParser. Patch by Lukas Langa, review by myself, Eric and Ezio.
Issue #4770: Restrict binascii module to accept only bytes (as specified).
And fix the email package to encode to ASCII instead of ``raw-unicode-escape`` before ASCII-to-binary decoding.
Gregory P. Smith [Tue, 27 Jul 2010 05:31:29 +0000 (05:31 +0000)]
The default size of the re module's compiled regular expression cache has
been increased from 100 to 500 and the cache replacement policy has changed
from simply clearing the entire cache on overflow to randomly forgetting 20%
of the existing cached compiled regular expressions. This is a performance
win for applications that use a lot of regular expressions and limits the
impact of the performance hit anytime the cache is exceeded.
Issue #9315: Renamed test_trace to test_sys_settrace and
test_profilehooks to test_sys_setprofile so that test_trace can be
used for testing the trace module and for naming consistency.
Ronald Oussoren [Sat, 24 Jul 2010 14:15:19 +0000 (14:15 +0000)]
Fix for issue 9367: the test code for os.getgroups
assumes that the result of getgroups and the output
of the id(1) command return groups in the same
order. That assumption is both fragile and false.
Richard Jones [Sat, 24 Jul 2010 09:51:40 +0000 (09:51 +0000)]
Implementation for issue 4184
Changes the previously private attributes to make them public, increasing the potential for extending the library in user code. Backward-compatible and documented.
Victor Stinner [Sat, 24 Jul 2010 02:24:55 +0000 (02:24 +0000)]
#9032: XML-RPC client: Transport.request() retries on EPIPE error
The EPIPE error occurs when the server closes the socket and the client sends a
"big" XML-RPC request (I don't know exactly the size threshold).
request() just have to ignore the error because single_request() closes the
socket on error, and so the next call to single_request() will open a new
socket.
Remove also a comment in the HTTP client because it's now wrong: see r70643
and issue #5542.
Victor Stinner [Sat, 24 Jul 2010 00:49:20 +0000 (00:49 +0000)]
Issue #4629: getopt raises an error if an argument ends with = whereas getopt
doesn't except a value (eg. --help= is rejected if getopt uses ['help='] long
options).
Ronald Oussoren [Fri, 23 Jul 2010 16:05:35 +0000 (16:05 +0000)]
Ensure that sys.prefix can reliably be found
on OSX. This fixes a small issue that was exposed
by running test_subprocess through regrtest (and
hence in a subdirectory).
Without this patch running python.exe from the
build tree will fail when these tree conditions
are true:
1) the CWD is not the root of build tree
2) python.exe is found through $PATH
3) the framework is not yet installed
Ronald Oussoren [Fri, 23 Jul 2010 11:54:59 +0000 (11:54 +0000)]
Fix for issue 7895. Avoid crashing the interpreter
when calling platform.mac_ver after calling os.fork by
reading from a system configuration file instead of
using OSX APIs.