Hirokazu Yamamoto
406d7aaee7
Issue #5913 : os.listdir() should fail for empty path on windows.
2009-05-04 05:28:39 +00:00
Gregory P. Smith
eeb51a99c5
cleanup applied patch to match style that is already in py3k branch.
2009-05-04 00:48:41 +00:00
Gregory P. Smith
d02eedacab
Issue #4751 : For hashlib algorithms provided by OpenSSL, the Python
...
GIL is now released during computation on data lengths >= 2048 bytes.
2009-05-04 00:16:49 +00:00
Walter Dörwald
342c8db859
There's no %A in Python 2.x!
2009-05-03 22:46:07 +00:00
Walter Dörwald
ed960ac404
Issue #5108 : Handle %s like %S and %R in PyUnicode_FromFormatV(): Call
...
PyUnicode_DecodeUTF8() once, remember the result and output it in a second
step. This avoids problems with counting UTF-8 bytes that ignores the effect
of using the replace error handler in PyUnicode_DecodeUTF8().
2009-05-03 22:36:33 +00:00
Mark Dickinson
01fce5adc0
Don't use PyOS_strnicmp for NaN and Inf detection: it's locale-aware.
2009-05-03 22:33:34 +00:00
Mark Dickinson
777e4ff503
Eliminate some locale-dependent calls to isspace and tolower.
2009-05-03 20:59:48 +00:00
Mark Dickinson
85e269b37d
Remove unnecessary uses of context in PyGetSetDef. See issue #5880 .
2009-05-03 20:39:06 +00:00
Gregory P. Smith
4bd76641b8
docstring update.
2009-05-03 20:27:25 +00:00
Gregory P. Smith
9ac3ee63f6
Optimization: move RFC defined network constant construction out of
...
the is_*() methods and into module private instances.
2009-05-03 19:37:05 +00:00
Gregory P. Smith
6493d788f0
Issue 5379 - applies patch supplied by philipp hagemeister to fix
...
many problems with the ancient mcast.py demo code.
2009-05-03 18:42:15 +00:00
Kurt B. Kaiser
62e9a653b5
Further development of issue5559, handle Windows files
...
which not only have embedded spaces, but leading spaces.
2009-05-03 02:05:22 +00:00
Kurt B. Kaiser
106ac46b3f
idle.py modified and simplified to better support
...
developing experimental versions of IDLE which are
not installed in the standard location.
2009-05-03 01:03:44 +00:00
Michael Foord
07ef487a96
2009-05-02 22:43:34 +00:00
Antoine Pitrou
7430989cda
Isue #5084 : unpickling now interns the attribute names of pickled objects,
...
saving memory and avoiding growth in size of subsequent pickles. Proposal
and original patch by Jake McGuire.
2009-05-02 21:13:23 +00:00
Benjamin Peterson
2b42c29a50
add myself
2009-05-02 20:26:53 +00:00
Michael Foord
e2fb98f467
Add addCleanup and doCleanups to unittest.TestCase.
...
Closes issue 5679.
Michael Foord
2009-05-02 20:15:05 +00:00
Andrew M. Kuchling
420d4eb1f3
#1607951 : Make mailbox.Maildir re-read the directories less frequently.
...
This is done by recording the current time -1sec, and not re-reading unless
the directory mod. times are >= the recorded time.
2009-05-02 19:17:28 +00:00
Gregory P. Smith
6e7bdde2c8
Convert test method names to PEP8 style.
2009-05-02 18:58:21 +00:00
Mark Dickinson
d4b5c98fa6
Remove unnecessary use of context for long getters.
...
(Related to issue #5880 ).
2009-05-02 17:55:01 +00:00
Benjamin Peterson
bf6c410b2e
revert unrelated change
2009-05-02 17:35:39 +00:00
Benjamin Peterson
6282169142
remove py3k compat code
2009-05-02 17:33:01 +00:00
Andrew M. Kuchling
92b970037b
Add items
2009-05-02 17:12:15 +00:00
Benjamin Peterson
d7e8e3444f
don't let sys.argv be used in the tests
2009-05-02 16:24:37 +00:00
Michael Foord
829f6b8052
Adds an exit parameter to unittest.main(). If False main no longer
...
calls sys.exit.
Closes issue 3379.
Michael Foord
2009-05-02 11:43:06 +00:00
Eric Smith
27f204dc29
Keep py3k and trunk code in sync.
2009-05-02 09:58:09 +00:00
Georg Brandl
24cc78ac61
Fix directive name.
2009-05-01 21:30:25 +00:00
Georg Brandl
b64b8278d1
Review ipaddr docs and add them in the TOC under "Internet protocols".
2009-05-01 21:28:35 +00:00
Antoine Pitrou
3fd4ea9dab
Issue #5726 : Make Modules/ld_so_aix return the actual exit code of the linker, rather than always exit successfully.
...
Patch by Floris Bruynooghe.
2009-05-01 21:16:14 +00:00
Antoine Pitrou
1fc0231a22
Issue #3002 : `shutil.copyfile()` and `shutil.copytree()` now raise an
...
error when a named pipe is encountered, rather than blocking infinitely.
2009-05-01 20:55:35 +00:00
Gregory P. Smith
1d499265e0
Adds the ipaddr module to the standard library. Issue #3959 .
...
Based off of subversion r69 from http://code.google.com/p/ipaddr-py/
This code is 2to3 safe, I'll merge it into py3k later this afternoon.
2009-05-01 19:59:52 +00:00
Walter Dörwald
6733bed57e
Make test.test_support.EnvironmentVarGuard behave like a dictionary.
...
All changes are mirrored to the underlying os.environ dict, but rolled back
on exit from the with block.
2009-05-01 17:35:37 +00:00
Georg Brandl
ca87fa5a5b
#5889 : remove comma at the end of a list that some C compilers don't like.
2009-05-01 08:51:37 +00:00
Senthil Kumaran
4af40d2173
Fix for Issue1648102, based on the MSDN spec: If this parameter specifies the
...
"<local>" macro as the only entry, this function bypasses any host name that
does not contain a period.
2009-05-01 05:59:52 +00:00
R. David Murray
b01c6e53ed
Make the turtle.rst doctests pass. I have a feeling there should be
...
more cleanup, but I don't know now to kill turtles. Especially
unexpected ones... ;)
2009-04-30 12:42:32 +00:00
Eric Smith
9139cc6a3b
Issue #1588 : Add complex.__format__.
2009-04-30 00:58:58 +00:00
Benjamin Peterson
2518d3c1c0
prevent ref cycles by removing bound method on close()
2009-04-30 00:23:11 +00:00
Benjamin Peterson
7c7250da45
make sure to close file
2009-04-30 00:06:33 +00:00
Benjamin Peterson
a9b4d4777a
make sure mode is removable while cleaning up test droppings
2009-04-29 22:44:15 +00:00
Georg Brandl
8c5326f103
#5878 : fix repr of re object.
2009-04-29 22:44:07 +00:00
Benjamin Peterson
9c6fc5187f
fix test_shutil on ZFS #5676
2009-04-29 22:43:35 +00:00
Mark Dickinson
61a0d05291
Backport some of the float formatting tests from py3k.
2009-04-29 21:57:15 +00:00
Mark Dickinson
df108ca324
Remove format_float and use _PyOS_double_to_string instead.
2009-04-29 21:56:53 +00:00
Mark Dickinson
92fcc9c991
Issue #5864 : format(1234.5, '.4') gives misleading result
...
(Backport of r72109 from py3k.)
2009-04-29 20:41:00 +00:00
Benjamin Peterson
867475c970
run autoconf
2009-04-29 20:36:25 +00:00
R. David Murray
0f457e5825
More aifc tests.
2009-04-29 20:15:18 +00:00
Matthias Klose
61dbdb9677
- configure.in: Don't error, when no --with-dbmliborder option is present
2009-04-29 20:09:50 +00:00
Matthias Klose
51c614e3bf
- Issue #4587 : Add configure option --with-dbmliborder=db1:db2:... to specify
...
the order that backends for the dbm extension are checked.
2009-04-29 19:52:49 +00:00
Matthias Klose
10cbe4886e
- Issue #4587 : Add configure option --with-dbmliborder=db1:db2:... to specify
...
the order that backends for the dbm extension are checked.
2009-04-29 17:18:19 +00:00
R. David Murray
971b1b100b
Now that we've got a test_aifc, add a few tests.
2009-04-29 13:51:44 +00:00