Gregory P. Smith
5a63183a8b
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.
2010-07-27 05:31:29 +00:00
Georg Brandl
f5ae1efd41
Clarify.
2010-07-26 21:12:13 +00:00
Alexander Belopolsky
f39f62802d
Added versionadded entry for the annotate argument.
2010-07-26 18:27:49 +00:00
Georg Brandl
a1c2ce0431
Add Reid.
2010-07-26 17:09:32 +00:00
Georg Brandl
571a953590
Fix indentation in example.
2010-07-26 17:00:20 +00:00
Georg Brandl
f6914aa76b
Fix grammar.
2010-07-26 15:11:49 +00:00
Andrew M. Kuchling
3f911a16db
Reword paragraph
2010-07-26 13:08:58 +00:00
Andrew M. Kuchling
57a7c3df85
#7637 : fix a grammar error; simplify a sentence
2010-07-26 12:54:02 +00:00
Georg Brandl
ae51c17e6e
Add Brian Quinlan.
2010-07-26 09:33:12 +00:00
Georg Brandl
6f934196ae
#9381 : fix markup.
2010-07-26 08:51:42 +00:00
Alexander Belopolsky
aeb039863d
Make python version of fromtimestamp behave more like C.
2010-07-26 02:36:41 +00:00
Brian Curtin
0f0c3320ee
Add note about #7113 and add Łukasz Langa to ACKS
2010-07-26 02:36:32 +00:00
Brian Curtin
9a27b0cd19
Fix #7113 . Patch by Łukasz Langa.
...
Changes include using a list of lines instead of patching together using
string interpolation, and a multi-line value test cases.
2010-07-26 00:27:10 +00:00
Andrew M. Kuchling
688b9e384e
#777884 : make .normalize() do nothing for childless nodes, instead of raising an exception
2010-07-25 23:38:47 +00:00
Andrew M. Kuchling
ea64a6a4ca
#7637 : clarify description of encoding parameter
2010-07-25 23:23:30 +00:00
Michael Foord
bd6c079552
Issue #4686 - add .args to exceptions in the configparsermodule
2010-07-25 23:09:25 +00:00
Andrew M. Kuchling
4d4d1ce7a7
#1495229 : update the type names used by the XML DOM mapping
2010-07-25 22:57:12 +00:00
Alexander Belopolsky
07de165d6e
Corrected comments on where settrace and setprofile are tested.
2010-07-25 15:05:42 +00:00
Alexander Belopolsky
13c475385b
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.
2010-07-25 15:02:55 +00:00
Alexander Belopolsky
f6d2ca06ac
Issue #9315 : Revert r83005 before renaming test_trace to
...
test_sys_settrace and test_profilehooks to test_sys_setprofile in all
three branches.
2010-07-25 14:58:54 +00:00
Ronald Oussoren
cb615e6abe
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.
2010-07-24 14:15:19 +00:00
Martin v. Löwis
9c71f90329
Put listdir default argument into declaration.
2010-07-24 10:09:11 +00:00
Richard Jones
803ef8a694
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.
2010-07-24 09:51:40 +00:00
Victor Stinner
756f547b9a
#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 .
2010-07-24 02:24:55 +00:00
Victor Stinner
eccc5facd3
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).
2010-07-24 00:49:20 +00:00
Alexander Belopolsky
a565874cc1
Use _datetime docstring if _datetime is available.
2010-07-23 20:03:53 +00:00
Alexander Belopolsky
cf86e368eb
Issue #7989 : Added pure python implementation of the datetime module.
2010-07-23 19:25:47 +00:00
Brett Cannon
c2721b0cd0
Add Brian Brazil.
2010-07-23 16:58:57 +00:00
Brett Cannon
030244aaf9
Mention in the fnmatch docs that meta-characters in translate cannot be quoted.
...
Closes issue 9358. Thanks to Brian Brazil for the patch.
2010-07-23 16:58:21 +00:00
Brett Cannon
671153db25
Add queue tests for empty, full, put_nowait, and get_nowait.
...
Closes issue 9357. Thanks to Brian Brazil for the patch.
2010-07-23 16:56:21 +00:00
Georg Brandl
6b0e0e41b8
Update to 1.0.
2010-07-23 16:55:42 +00:00
Georg Brandl
a5eacee237
Fix some markup glitches.
2010-07-23 16:55:26 +00:00
Ezio Melotti
6086118ced
#9359 : fix typo. Thanks to Piotr Kasprzyk for the patch.
2010-07-23 16:48:22 +00:00
Brian Curtin
81a4a6abb7
Tab test_repr_daemon over so it's included in ThreadTests.
...
Noticed by Amaury.
2010-07-23 16:30:10 +00:00
Brett Cannon
4b16e130cc
Add tests for fnmatch.filter and translate.
...
Partially closes issue 9356. Thanks to Brian Brazil for the patch.
2010-07-23 16:23:13 +00:00
Brett Cannon
cc14320159
Make fnmatch be more PEP 8 compliant.
...
Partially closes issue 9356. Thanks to Brian Brazil for the patch.
2010-07-23 16:22:25 +00:00
Richard Jones
8cb3619f86
New tests for smtpd module. Has full coverage for SMTPChannel and SMTPServer.
2010-07-23 16:20:40 +00:00
Ronald Oussoren
97d1119dde
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
2010-07-23 16:05:35 +00:00
Brett Cannon
3f5f226ba0
Add more tests for the threading.Thread.repr.
...
Partially closes issue 9346. Thanks to Brian Brazil for the patch.
2010-07-23 15:50:52 +00:00
Brett Cannon
148724d39b
Rip out old testing code that was inlined in threading.
...
Partially closes issue 9346. Thanks Brian Brazil for the patch.
2010-07-23 15:50:02 +00:00
Brett Cannon
f079c57c35
Rename some macros in the sha1 module to no longer conflict with termios.h.
2010-07-23 15:43:14 +00:00
Brett Cannon
42e54b29b9
Stop shadowing a test class.
2010-07-23 14:45:19 +00:00
Brett Cannon
1f27479e26
Explicitly test relative imports by reusing importlib tests.
...
Closes issue 8392. Thanks Virgil Dupras for the initial patch.
2010-07-23 14:03:16 +00:00
Brett Cannon
cfae36fa8e
Test calendar.monthrange.
...
Closes issue 9342. Thanks John Chandler for the patch.
2010-07-23 13:54:14 +00:00
Ronald Oussoren
b6ee4f5bfc
This fixes issue7900 by adding code that deals
...
with the fact that getgroups(2) might return
more that MAX_GROUPS on OSX.
See the issue (and python-dev archives) for the
gory details. Summarized: OSX behaves rather oddly
and Apple says this is intentional.
2010-07-23 13:53:51 +00:00
Brett Cannon
a57edd0e9e
Clarify the wording for threading.is_alive() to not suggest something is
...
"roughly" done.
Closes issue 9339. Thanks Brian Brazil for the patch.
2010-07-23 12:26:35 +00:00
Martin v. Löwis
c9e1c7d97f
Issue #6095 : Make directory argument to os.listdir optional.
...
Patch by Virgil Dupras.
2010-07-23 12:16:41 +00:00
Ronald Oussoren
e186e384f4
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.
2010-07-23 11:54:59 +00:00
Ronald Oussoren
c3960c28b0
Minor tweak of test_osx_env to
...
avoid failing when the framework is not
yet installed.
2010-07-23 11:48:36 +00:00
Brett Cannon
3a4e50cb7e
Document the fact that the 'test' package is meant only for use by Python
...
itself and not by others.
Closes issue 9255.
2010-07-23 11:31:31 +00:00