Mark Dickinson
93d768d632
Remove unused import.
2010-08-08 17:12:46 +00:00
Florent Xicluna
37d3d9aa96
Add test case for the HTTPResponse being an iterable. Follow-up of issue #4608 .
2010-08-08 16:25:27 +00:00
Tim Golden
e3f76168a9
Issue #2304 : Add additional quotes when using cmd shell on Windows. Original patch from Gabriel Genellina
2010-08-08 16:17:48 +00:00
Florent Xicluna
419e384601
Use unittest specific methods for some urllib test cases. And replace urllib2 with urllib.request in comments.
2010-08-08 16:16:07 +00:00
Benjamin Peterson
1f594ad424
use same quoting as the rest of the file
2010-08-08 13:17:07 +00:00
Senthil Kumaran
d95cc75483
Fix Issue8280 - urllib2's Request method will remove fragements in the url.
...
This is how it should work,wget and curl work like this way too. Old behavior was wrong.
2010-08-08 11:27:53 +00:00
Tim Golden
ad537f23e2
Issue #3210 : Revert C module changes and apply patch from Hirokazu Yamamoto instead
2010-08-08 11:18:16 +00:00
Raymond Hettinger
d331ce9e66
Issue #9507 : Named tuple repr will now automatically display the right
...
name in a tuple subclass.
2010-08-08 01:13:42 +00:00
Benjamin Peterson
fa45076cbd
kill outdated comment
2010-08-07 21:32:12 +00:00
Mark Dickinson
af43e9a288
Issue #8433 : Fix test_curses failure for platforms with recent versions of ncurses.
2010-08-07 12:33:36 +00:00
Victor Stinner
6c6f851eae
Issue #9425 : skip tests if a filename is not encodable
2010-08-07 10:09:35 +00:00
Brian Curtin
42143562c2
Fix an assertRaises situation and typo. Also pass all tests to run_unittest
...
rather than do it by platform -- the proper skips are in place already.
2010-08-07 03:47:21 +00:00
Brian Curtin
ef9efbd69c
Fix #9324 : Add parameter validation to signal.signal on Windows in order
...
to prevent crashes.
2010-08-06 19:27:32 +00:00
Tim Golden
af5ac3974b
Issue #3210 : Ensure stdio handles are closed if CreateProcess fails
2010-08-06 13:03:56 +00:00
Gerhard Häring
1c5471f319
Issue #6683 : For SMTP logins we now try all authentication methods advertised
...
by the server. Many servers are buggy and advertise authentication methods they
o not support in reality. This change makes smtplib.auth() work more often in
the real world, where we face misconfigured servers and servers that advertise
methods they don't support due to the madness that is SASL.
2010-08-05 14:08:44 +00:00
Mark Dickinson
388122d43b
Issue #9337 : Make float.__str__ identical to float.__repr__.
...
(And similarly for complex numbers.)
2010-08-04 20:56:28 +00:00
Antoine Pitrou
560f7647ce
Issue #8814 : function annotations (the `__annotations__` attribute)
...
are now included in the set of attributes copied by default by
functools.wraps and functools.update_wrapper. Patch by Terrence Cole.
2010-08-04 18:28:02 +00:00
Senthil Kumaran
5626eec0c2
Sending the auth info as string. Fix BytesWarning: str() on a bytes instance Exception on buildbot.
2010-08-04 17:46:23 +00:00
Antoine Pitrou
23df483cb6
Try to fix issue #9415 : skip some tests on broken Ubuntu OpenSSL
2010-08-04 17:14:06 +00:00
Antoine Pitrou
15cee6209f
In verbose mode, identify OpenSSL build and platform more precisely
2010-08-04 16:45:21 +00:00
Brian Curtin
a6a3274aad
Fix #9513 to remove relative imports from multiprocessing.
...
The test suite currently skips test_multiprocessing on Windows
because it fails on finding _multiprocessing in several
win32-specific blocks. Removing the relative import lets this
through and allows the test to run (and pass).
2010-08-04 15:47:24 +00:00
Antoine Pitrou
482e66a58a
Issue #9496 : Provide a test suite for the rlcompleter module. Patch by
...
Michele Orrù.
2010-08-04 15:43:16 +00:00
Richard Jones
6a9e6bbf1a
fix test_smtplib/test_smtpd collision through pre-loaded reply data in mock_socket
2010-08-04 12:27:36 +00:00
Antoine Pitrou
62f68ed31f
Factor out stripping of interpreter debug output in test.support.strip_python_stderr()
2010-08-04 11:48:56 +00:00
Giampaolo Rodolà
f96482e91a
as per discussion with antoine revert changes made in 83708 as the user useing ftplib's readline methods is supposed to always use a binary file
2010-08-04 10:36:18 +00:00
Giampaolo Rodolà
b939235c6a
fix issue #6822 : ftplib's storline method doesn't work with text files
2010-08-04 10:12:00 +00:00
Giampaolo Rodolà
b5c23761d3
issue #8687 : provides a test suite for sched.py module
2010-08-04 09:28:05 +00:00
Giampaolo Rodolà
934abddaec
fix issue #2944 : asyncore doesn't handle connection refused correctly (patch by Alexander Shigin). Merged from 2.7 branch.
2010-08-04 09:02:27 +00:00
Senthil Kumaran
84c7d9f87b
Fix Issue754016 - urlparse goes wrong with IP:port without scheme
2010-08-04 04:50:44 +00:00
Richard Jones
4aa0d4d2d0
improve smtpd module test coverage
2010-08-04 01:20:14 +00:00
Antoine Pitrou
577ba7d43a
That test was never run (since thread has been renamed to _thread in 3.x)
2010-08-04 00:18:49 +00:00
R. David Murray
c4e69cc1d8
#3196 : if needed pad a short base64 encoded word before trying to decode.
...
The RFCs encourage following Postel's law: be liberal in what you accept.
So if someone forgot to pad the base64 encoded word payload to an
even four bytes, we add the padding before handing it to base64mime.decode.
Previously, missing padding resulted in a HeaderParseError.
Patch by Jason Williams.
2010-08-03 22:14:10 +00:00
Antoine Pitrou
da991da30b
In test_threading_local, test both the default _thread._local implementation
...
and the pure Python implementation in Lib/_threading_local.py
2010-08-03 18:32:26 +00:00
R. David Murray
88c49fe320
#9444 : use first of prefix_chars for help opt instead of raising error
...
An argparse option parser created with a prefix_chars that did not
include a '-' would happily add -h and --help options, and then throw
an error when it tried to format the help because the - was an invalid
prefix character. This patch makes it use the first character of
prefix_chars as the character for the help options if and only if '-'
is not one of the valid prefix_chars.
Fix by Theodore Turocy, unit tests by Catherine Devlin.
2010-08-03 17:56:09 +00:00
Georg Brandl
e8e02e3b5b
Fix regrtest -F.
2010-08-03 07:56:50 +00:00
Ronald Oussoren
fcd77016b3
Fix for issue 9455: platform.mac_ver() broken on OSX/ppc
2010-08-03 07:42:42 +00:00
Richard Jones
64b02de010
improvements to test_smtplib per issue2423
...
merged the socket mock introduced in test_smtpd
2010-08-03 06:39:33 +00:00
Georg Brandl
c8284cfc57
#9087 : update json docstrings -- unicode and long do not exist anymore.
2010-08-02 20:16:18 +00:00
Georg Brandl
07b90caed4
#8861 : remove unused variable.
2010-08-02 19:44:48 +00:00
Georg Brandl
56be37cef2
#7973 : Fix distutils options spelling.
2010-08-02 19:16:34 +00:00
Georg Brandl
dee7b8503d
#8560 : add progress indicator to regrtest.
2010-08-02 18:59:52 +00:00
Georg Brandl
6fcac0d6f6
Move test_SimpleHTTPServer into test_httpservers.
2010-08-02 18:56:54 +00:00
Georg Brandl
2d3c4e79a1
#7372 : fix regression in pstats: a previous fix to handle cProfile data in add_callers broke handling of profile data.
2010-08-02 17:24:49 +00:00
Georg Brandl
283b125551
#3821 : beginnings of a trace.py unittest.
2010-08-02 12:48:46 +00:00
Georg Brandl
dc50c696ab
Fix softspace relic.
2010-08-02 12:40:22 +00:00
Georg Brandl
24085d7940
Get rid of spurious "threading" entries in trace output.
2010-08-02 12:36:24 +00:00
Georg Brandl
8e43fbfffa
#9428 : fix running scripts from profile/cProfile with their own name and the right namespace. Same fix as for trace.py in #1690103 .
2010-08-02 12:20:23 +00:00
Georg Brandl
b1a97afadb
#9209 and #7781 : fix two crashes in pstats interactive browser.
2010-08-02 12:06:18 +00:00
Senthil Kumaran
9f8dc4441f
Fix Issue8572 - httplib getheader() throws error instead of default
2010-08-02 11:04:58 +00:00
Raymond Hettinger
5be21b7a5a
Update OrderedDict implementation to match that in Py2.7.
2010-08-01 22:10:57 +00:00
Antoine Pitrou
7ffa196dce
Issue #8397 : Raise an error when attempting to mix iteration and regular
...
reads on a BZ2File object, rather than returning incorrect results.
2010-08-01 20:08:46 +00:00
Ronald Oussoren
7fb6f5121a
test_getgroups as introduced with issue7900 failed on systems
...
where 'id -G' and posix.getgroups() returned the same information,
but one of the sources contains duplicate information. Rewrite the
check using sets instead of lists.
2010-08-01 19:18:13 +00:00
Senthil Kumaran
de0eb249c6
Fix Issue8123 - TypeError in urllib when trying to use HTTP authentication
2010-08-01 17:53:37 +00:00
Georg Brandl
e6c5950af0
#5551 : symbolic links never can be mount points. Fixes the fix for #1713 .
2010-08-01 15:30:56 +00:00
Brian Curtin
ea47eaa395
Fix #8105 . Add validation to mmap.mmap so invalid file descriptors
...
don't cause a crash on Windows.
2010-08-01 15:26:26 +00:00
Georg Brandl
0bccc185b4
#8046 : add context manager protocol support to mmap objects. Also add closed property.
2010-08-01 14:50:00 +00:00
Georg Brandl
120d633871
#4943 : do not try to include drive letters (and colons) when looking for a probably module name.
2010-08-01 14:38:17 +00:00
Mark Dickinson
5b1d35b9c7
Add test for memory leak reported in issue 9422.
2010-08-01 11:10:28 +00:00
Mark Dickinson
5b65df7ce2
Issue #9416 : Fix some issues with complex formatting where the
...
output with no type specifier failed to match the str output:
- format(complex(-0.0, 2.0), '-') omitted the real part from the output,
- format(complex(0.0, 2.0), '-') included a sign and parentheses.
2010-08-01 10:41:49 +00:00
Georg Brandl
b16e38b825
#8826 : the "expires" attribute value is a date string with spaces, but apparently not all user-agents put it in quotes. Handle that as a special case.
2010-08-01 09:06:34 +00:00
Ronald Oussoren
bda4672b01
Ensure that test_site actually passes with a framework build
2010-08-01 09:02:50 +00:00
Georg Brandl
794f5b3559
#4810 : document "--" option separator in timeit help.
2010-08-01 08:52:32 +00:00
Georg Brandl
8f9f466505
#1690103 : fix initial namespace for code run with trace.main().
2010-08-01 08:35:29 +00:00
Georg Brandl
f325e03f48
#8230 : make Lib/test/sortperf.py run on Python 3.
2010-08-01 08:07:49 +00:00
Georg Brandl
f02e7367eb
Small improvements to pstats browser: do not crash on reading invalid file, and actually do a reload when executing "read" as intended.
2010-08-01 07:57:47 +00:00
Georg Brandl
3e4f2ec704
#7395 : fix traceback in do_add() when no stats are loaded. Apply same fix for do_sort() and do_reverse().
2010-08-01 07:48:43 +00:00
Georg Brandl
33b6a31c18
#8768 : name test method properly so that it gets executed.
2010-08-01 06:44:46 +00:00
Georg Brandl
04c837e4b4
#8773 : mailbox.py does not need to be executable.
2010-08-01 06:42:45 +00:00
Georg Brandl
76ae397583
Build properties using lambdas. This makes test_pyclbr pass again, because it does not think that input and output are methods anymore.
2010-08-01 06:32:55 +00:00
R. David Murray
7905d61b2c
#8620 : Cmd no longer truncates last character if stdin ends without newline
...
Cmd used to blindly chop off the last character of every input line. If
the input reached EOF and there was no final new line, it would truncate
the last character of the last command. This fix instead strips trailing
\r\n from the input lines. While this is a small behavior change, it
should not break any working code, since feeding a '\r\n' terminated
file to Cmd would previously leave the \r's on the lines, resulting
in failed command execution.
I wrote the unit test in preparation for a PyOhio TeachMe session
run by Catherine Devlin, and we can thank Catherine and the PyOhio
session attendees for the fix. I've added Catherine to the Acks file
for organizing and leading the TeachMe session, out of which we will
hopefully get some new contributors.
2010-08-01 03:31:09 +00:00
Georg Brandl
05245f7487
#5146 : handle UID THREAD command correctly.
2010-07-31 22:32:52 +00:00
Georg Brandl
87a1564f24
#5147 : revert accidental indentation of header constant for MozillaCookieJar.
2010-07-31 22:11:11 +00:00
Georg Brandl
62e2ca2193
#8292 : Fix three instances of truth tests on return values of filter() (which is always true in Python 3).
2010-07-31 21:54:24 +00:00
Georg Brandl
78aa396415
#8198 : the Helper class should not save the stdin and stdout objects
...
at import time, rather by default use the current streams like the
other APIs that output help.
2010-07-31 21:51:48 +00:00
Georg Brandl
cfb68218b7
#7909 : the prefixes \\.\ and \\?\ indicate special Windows paths, do not try to manipulate them. See http://msdn.microsoft.com/en-us/library/aa365247%28VS.85%29.aspx for details.
2010-07-31 21:40:15 +00:00
Georg Brandl
a8867b4173
There always is a False and True now.
2010-07-31 21:26:40 +00:00
Georg Brandl
4f85ae10f5
#8910 : add a file explaining why Lib/test/data is there.
2010-07-31 21:12:15 +00:00
Georg Brandl
76e155a157
#3788 : more tests for http.cookies, now at 95% coverage. Also bring coding style in the module up to PEP 8, where it does not break backwards compatibility.
2010-07-31 21:04:00 +00:00
Georg Brandl
7b280e9197
Clarify comment in comments test case explaining comment semantics.
2010-07-31 20:13:44 +00:00
Georg Brandl
6cb7b6593e
#1286 : allow using fileinput.FileInput as context manager.
2010-07-31 20:08:15 +00:00
Georg Brandl
ec5ae3b9f5
Fix bad merge: test_support -> support.
2010-07-31 19:17:11 +00:00
Georg Brandl
38005e8156
#9440 : Remove borderline test case that fails based on unpredictable conditions such as compiler flags.
2010-07-31 18:11:07 +00:00
Georg Brandl
2e7346acc9
Re-commit r83327 now that the release is done.
2010-07-31 18:09:23 +00:00
Georg Brandl
a8fbc6a521
Import test_pdb with its full name, so that running python -m test.test_pdb succeeds.
2010-07-31 11:52:46 +00:00
Victor Stinner
d5baeee66b
Issue #8966 : Fix ctypes tests for Windows
...
I removed the implicit conversion from str to bytes.
2010-07-31 10:52:56 +00:00
Georg Brandl
014e0ca58e
Revert r83327. This will have to wait until after the alpha1 release.
2010-07-31 10:16:21 +00:00
Raymond Hettinger
9e46ef819c
Add functools.lfu_cache() and functools.lru_cache().
2010-07-31 10:11:39 +00:00
Georg Brandl
17e3d698b5
Avoid triggering DeprecationWarnings in test_smtpd and smtpd.
2010-07-31 10:08:09 +00:00
Georg Brandl
b00a75f175
At least give IDLE 3.1 a release date. No further entries there for 3.2 though.
2010-07-31 09:03:30 +00:00
Florent Xicluna
c049fca0da
Fix an oversight in r83294. unquote() should reject bytes. Issue #9301 .
2010-07-31 08:56:55 +00:00
Georg Brandl
62069d3ce7
Bump versions and review NEWS file.
2010-07-31 08:56:11 +00:00
Georg Brandl
80ff2adf88
Update pydoc topics and adapt Topics builder to Sphinx 1.0.
2010-07-31 08:27:46 +00:00
Georg Brandl
604ef370b3
Make urllib tests pass for now. Will figure out what the correct semantics should be after release.
2010-07-31 08:20:02 +00:00
Georg Brandl
e1e8df1082
Fix pdb test failures on the buildbots.
2010-07-31 08:14:16 +00:00
Raymond Hettinger
51b401bbe1
Only expose the abstract base classes.
...
The concrete types are for internal use (registration).
We are not trying to resurrect the types module
in collections.
2010-07-31 07:12:50 +00:00
Georg Brandl
b90ffd88f1
Part of #7245 : when KeyboardInterrupt is raised while defining commands, restore the old commands instead of producing a traceback.
2010-07-30 22:20:16 +00:00
Senthil Kumaran
d496c4c936
Fix issue9301 - handle unquote({}) kind of case.
2010-07-30 19:34:36 +00:00
Georg Brandl
0a9c3e91dc
Show the traceback line numbers as well as the current line numbers if an exception is being debugged. Courtesy of pdb++ by Antonio Cuni. Also document -> and >> markers for "list".
2010-07-30 18:46:38 +00:00
Georg Brandl
cdf66a9a7c
Test that "source" with nonexisting things works as expected.
2010-07-30 18:15:16 +00:00
Georg Brandl
5ed2b5a92a
Fix source finding if the given frame is a module-level frame.
2010-07-30 18:08:12 +00:00
Georg Brandl
e59ca2afe3
Add "longlist" and "source" commands, ideas borrowed from pdb++ by Antonio Cuni.
2010-07-30 17:04:28 +00:00
Georg Brandl
0d08962659
Several enhancements to pdb and its test suite.
...
* added basic test for basic commands
* removed duplication of command docs, and moved them to their implementation
* unified and useful display of exceptions
* output messages and errors using overridable methods (also fixes #1503502 )
2010-07-30 16:00:46 +00:00
Georg Brandl
9d624d26d1
pdb now has its own tests.
2010-07-30 15:33:52 +00:00
Georg Brandl
d2fd4cae8e
Add Breakpoint.bpformat(), which returns the info usually printed by bpprint(). Necessary for major refactoring of pdb output handling.
2010-07-30 15:01:23 +00:00
Georg Brandl
6cccb865d1
#7964 followup: add test case to ensure issue remains fixed.
2010-07-30 14:16:43 +00:00
Georg Brandl
7410dd11ef
#809887 : improve pdb feedback for breakpoint-related actions. Also add a functional test for these commands.
2010-07-30 12:01:20 +00:00
Georg Brandl
3f94089a77
#5294 : Fix the behavior of pdb "continue" command when called in the top-level debugged frame.
2010-07-30 10:29:19 +00:00
Georg Brandl
d72e043bdd
#5727 : Restore the ability to use readline when calling into pdb in doctests.
2010-07-30 09:59:28 +00:00
Georg Brandl
06535ee56d
Remove redundant import.
2010-07-30 09:54:44 +00:00
Georg Brandl
34cc0f53be
#6719 : In pdb, do not stop somewhere in the encodings machinery if the source file to be debugged is in a non-builtin encoding.
2010-07-30 09:43:00 +00:00
Georg Brandl
25fbb891d8
Issue #8048 : Prevent doctests from failing when sys.displayhook has
...
been reassigned.
2010-07-30 09:23:23 +00:00
Georg Brandl
46b9afc862
#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.
2010-07-30 09:14:20 +00:00
Georg Brandl
44f8bf9411
#8015 : fix crash when entering an empty line for breakpoint commands. Also restore environment properly when an exception occurs during the definition of commands.
2010-07-30 08:54:49 +00:00
Georg Brandl
26a0f87e28
Document the "jump" command in pdb.__doc__, and add a version tag for "until X".
2010-07-30 08:45:26 +00:00
Georg Brandl
2dfec552fe
Allow giving an explicit line number to "until".
2010-07-30 08:43:32 +00:00
Georg Brandl
e023091815
#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.
2010-07-30 08:29:39 +00:00
Georg Brandl
1e30bd3753
#9230 : allow Pdb.checkline() to be called without a current frame, for setting breakpoints before starting debugging.
2010-07-30 07:21:26 +00:00
Georg Brandl
a91a94b7c0
#4179 : In pdb, allow "list ." as a command to return to the currently debugged line.
2010-07-30 07:14:01 +00:00
Georg Brandl
0a0fc07d37
#4108 : the first default entry (User-agent: *) wins.
2010-07-29 17:55:01 +00:00
Victor Stinner
70120e202d
#8603 : Add environb to os.__all__
2010-07-29 17:19:38 +00:00
Georg Brandl
056cb93e7a
#6630 : allow customizing flags for compiling string.Template.idpattern.
2010-07-29 17:16:10 +00:00
Victor Stinner
1cec3e367c
#9397 : remove mention of dbm.bsd which does not exist anymore.
2010-07-29 16:26:56 +00:00
Georg Brandl
470a123910
#1090076 : explain the behavior of *vars* in get() better.
2010-07-29 14:17:12 +00:00
Georg Brandl
6d23c44ee5
Fix #9412 : make list of messages an instance attribute instead of class attribute.
2010-07-29 13:19:42 +00:00
Georg Brandl
8dcaa7396f
#9411 : allow selecting an encoding for configparser files. Also adds a new test config file to test special cases.
2010-07-29 12:17:40 +00:00
Georg Brandl
f206d0e393
Fix for r83202: improve the handling of empty lines.
2010-07-29 11:56:20 +00:00
Victor Stinner
96f0de9004
Update test_os.py according to my last changes on _Environ.__repr__()
2010-07-29 00:29:00 +00:00
Victor Stinner
bed7117fda
Issue #9283 : Oops, add missing { and } to repr(os.environ)
2010-07-28 21:25:42 +00:00
Victor Stinner
d73c1a3009
#9283 : Fix repr(os.environ), display unicode keys and values on POSIX systems
2010-07-28 21:23:23 +00:00
Georg Brandl
aa5b33311a
Add missing file.
2010-07-28 17:37:27 +00:00
Florent Xicluna
02ea12b291
Syntax cleanup.
2010-07-28 16:39:41 +00:00
Senthil Kumaran
3f8ab965f7
Fix Issue6325 - robotparse to honor urls with query strings.
2010-07-28 16:27:56 +00:00
Georg Brandl
96a60ae90c
#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.
2010-07-28 13:13:46 +00:00
Georg Brandl
cbb0ae4a42
#9354 : Provide getsockopt() in asyncore file_wrapper(). Patch by Lukas Langa.
2010-07-28 08:19:35 +00:00
Ezio Melotti
84befb00bd
Fix failure introduced in r83182.
2010-07-28 00:23:21 +00:00
Victor Stinner
cf448832eb
Issue #8966 : ctypes: Remove implicit bytes-unicode conversion
2010-07-28 00:15:03 +00:00
Victor Stinner
42746df17b
Fix ctypes tests to avoid implicit bytes-unicode conversion
2010-07-27 23:36:41 +00:00
Alexander Belopolsky
455f7bdc05
Issue #9378 : python -m pickle <pickle file> will now load and display
...
the first object in the pickle file.
2010-07-27 23:02:38 +00:00
Ezio Melotti
9a381c7a02
With skipUnless there is no need to add test classes conditionally.
2010-07-27 22:24:13 +00:00
Ezio Melotti
63c4640327
Use proper skips and assert* methods in test_asyncore.
2010-07-27 22:03:33 +00:00
Florent Xicluna
f1046ca817
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.
2010-07-27 21:20:15 +00:00
Alexander Belopolsky
c02cc2707a
Issue #9384 : python -m tkinter will now display a simple demo applet.
2010-07-27 14:16:32 +00:00
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
Alexander Belopolsky
aeb039863d
Make python version of fromtimestamp behave more like C.
2010-07-26 02:36:41 +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
Michael Foord
bd6c079552
Issue #4686 - add .args to exceptions in the configparsermodule
2010-07-25 23:09:25 +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