Hynek Schlawack
4865376c44
Closes #1492704 : Make shutil.copyfile() raise a distinct SameFileError
...
Patch by Atsuo Ishimoto.
2012-10-07 12:49:58 +02:00
Armin Ronacher
74b38b190f
Issue #16148 : Small improvements and cleanup. Added version information
...
to docs.
2012-10-07 10:29:32 +02:00
Victor Stinner
15a1136547
Issue #16147 : PyUnicode_FromFormatV() doesn't need anymore to allocate a buffer
...
on the heap to format numbers.
2012-10-06 23:48:20 +02:00
Victor Stinner
e215d960be
Issue #16147 : Rewrite PyUnicode_FromFormatV() to use _PyUnicodeWriter API
...
* Simplify the code: replace 4 steps with one unique step using the
_PyUnicodeWriter API. PyUnicode_Format() has the same design. It avoids to
store intermediate results which require to allocate an array of pointers on
the heap.
* Use the _PyUnicodeWriter API for speed (and its convinient API):
overallocate the buffer to reduce the number of "realloc()"
* Implement "width" and "precision" in Python, don't rely on sprintf(). It
avoids to need of a temporary buffer allocated on the heap: only use a small
buffer allocated in the stack.
* Add _PyUnicodeWriter_WriteCstr() function
* Split PyUnicode_FromFormatV() into two functions: add
unicode_fromformat_arg().
* Inline parse_format_flags(): the format of an argument is now only parsed
once, it's no more needed to have a subfunction.
* Optimize PyUnicode_FromFormatV() for characters between two "%" arguments:
search the next "%" and copy the substring in one chunk, instead of copying
character per character.
2012-10-06 23:03:36 +02:00
Andrew Svetlov
7e3cde5901
revert accidental inclusion of subprocess tests
2012-10-06 18:46:09 +03:00
Andrew Svetlov
a2028733ef
revert accidental inclusion of subprocess tests
2012-10-06 18:45:47 +03:00
Andrew Svetlov
b2209ccfa0
revert accidental inclusion of subprocess tests
2012-10-06 18:45:24 +03:00
Andrew Svetlov
1d0d541259
Issue #16025 : Minor corrections to the zipfile documentation.
...
Patch by Serhiy Storchaka.
2012-10-06 18:10:52 +03:00
Andrew Svetlov
5061a34283
Issue #16025 : Minor corrections to the zipfile documentation.
...
Patch by Serhiy Storchaka.
2012-10-06 18:10:01 +03:00
Andrew Svetlov
afbf90c993
Issue #16025 : Minor corrections to the zipfile documentation.
...
Patch by Serhiy Storchaka.
2012-10-06 18:02:05 +03:00
Armin Ronacher
aa9a79d279
Issue #16148 : implemented PEP 424
2012-10-06 14:03:24 +02:00
Andrew Svetlov
ef08fb1f04
Issue #13896 : Make shelf instances work with 'with' as context managers.
...
Original patch by Filip Gruszczyński.
2012-10-06 13:52:19 +03:00
Christian Heimes
4a0270d82b
Issue #16113 : integrade SHA-3 (Keccak) patch from http://hg.python.org/sandbox/cheimes
2012-10-06 02:23:36 +02:00
Andrew Svetlov
220e869a51
Merge issue #16115 : Add test for check that executable arg to Popen() takes precedence over args[0] arg\n \n Patch by Kushal Das
2012-10-05 22:53:12 +03:00
Andrew Svetlov
1a53c0cbf5
Issue #16115 : Add test for check that executable arg to Popen() takes precedence over args[0] arg\n \n Patch by Kushal Das
2012-10-05 22:52:15 +03:00
Jesus Cea
f01d695ccd
Closes #16135 : Removal of OS/2 support
2012-10-05 03:36:11 +02:00
Jesus Cea
fa7d5392d4
Test should be skipped in 'riscos', as intented
2012-10-05 03:28:20 +02:00
Jesus Cea
4791a24268
#16135 : Removal of OS/2 support (Python code partial cleanup)
2012-10-05 03:15:39 +02:00
Jesus Cea
f1af705720
#16135 : Removal of OS/2 support (Remove OS2 and OS/2 references)
2012-10-05 02:48:46 +02:00
Antoine Pitrou
997adb5819
Issue #16089 : Allow ElementTree.TreeBuilder to work again with a non-Element element_factory (fixes a regression in SimpleTAL).
2012-10-04 19:54:53 +02:00
Antoine Pitrou
ee329318db
Issue #16089 : Allow ElementTree.TreeBuilder to work again with a non-Element element_factory (fixes a regression in SimpleTAL).
2012-10-04 19:53:29 +02:00
Jesus Cea
d96c1fb6ed
MERGE: Closes #16126 : PyErr_Format format mismatch in _testcapimodule.c
2012-10-04 16:07:03 +02:00
Jesus Cea
6e1d2b6e78
Closes #16126 : PyErr_Format format mismatch in _testcapimodule.c
2012-10-04 16:06:30 +02:00
Jesus Cea
dc469454ec
Closes #15488 : Closed files keep their buffer alive
2012-10-04 12:37:56 +02:00
Ezio Melotti
3ffd29b615
Remove unnecessary [].
2012-10-02 19:45:00 +03:00
Vinay Sajip
4ded5512d7
Issue #15452 : Added verify option for logging configuration socket listener.
2012-10-02 15:56:16 +01:00
Victor Stinner
621ef3d84f
Issue #15609 : Optimize str%args for integer argument
...
- Use _PyLong_FormatWriter() instead of formatlong() when possible, to avoid
a temporary buffer
- Enable the fast path when width is smaller or equals to the length,
and when the precision is bigger or equals to the length
- Add unit tests!
- formatlong() uses PyUnicode_Resize() instead of _PyUnicode_FromASCII()
to resize the output string
2012-10-02 00:33:47 +02:00
Stefan Krah
ca1232f7db
Merge 3.3.
2012-10-01 23:30:32 +02:00
Stefan Krah
219c7b90d0
Issue #15599 : Increase the switch interval. Several systems cannot handle
...
gil_interval == 1 in extreme situations.
2012-10-01 23:21:45 +02:00
Philip Jenvey
075bbb176f
utilize subprocess.DEVNULL
2012-10-01 11:48:46 -07:00
Chris Jerdonek
9a6ada8026
Issue #15533 : Merge update from 3.2.
2012-09-30 09:46:04 -07:00
Chris Jerdonek
c2cd626497
Issue #15533 : Skip test_cwd_with_relative_*() tests on Windows pending resolution of issue.
2012-09-30 09:45:00 -07:00
Chris Jerdonek
ca42f00657
Issue #15533 : Merge update from 3.3.
2012-09-30 09:46:55 -07:00
Chris Jerdonek
1e0a88a11d
Issue #15533 : Merge fix from 3.3.
2012-09-30 02:22:50 -07:00
Chris Jerdonek
28714c8c26
Issue #15533 : Merge fix from 3.2.
2012-09-30 02:15:37 -07:00
Chris Jerdonek
ec3ea94251
Issue #15533 : Clarify docs and add tests for subprocess.Popen()'s cwd argument.
2012-09-30 00:10:28 -07:00
Antoine Pitrou
04e21607d1
Speed up test_httpservers by avoiding a one-second cleanup wait after each test case.
2012-09-30 01:09:59 +02:00
Antoine Pitrou
2a180207ba
Speed up test_httpservers by avoiding a one-second cleanup wait after each test case.
2012-09-30 01:08:55 +02:00
Antoine Pitrou
f727082b71
Speed up test_httpservers by avoiding a one-second cleanup wait after each test case.
2012-09-30 01:05:30 +02:00
Gregory P. Smith
b8ad23f4aa
Remove the new trivial pty.spawn() test as it hangs on many buildbots.
2012-09-29 13:50:40 -07:00
Gregory P. Smith
0f21adf799
pty.spawn() now returns the child process status as returned by os.waitpid().
...
Addresses the remaining feature request from issue #2489 .
2012-09-29 12:41:03 -07:00
Gregory P. Smith
288d9aec4b
Fixes issue #15756 : subprocess.poll() now properly handles errno.ECHILD to
...
return a returncode of 0 when the child has already exited or cannot be
waited on.
2012-09-29 11:55:16 -07:00
Gregory P. Smith
02dee1acd8
Fixes issue #15756 : subprocess.poll() now properly handles errno.ECHILD
...
to return a returncode of 0 when the child has already exited or cannot be
waited on.
2012-09-29 11:53:08 -07:00
Gregory P. Smith
3905171f1e
Fixes issue #15756 : subprocess.poll() now properly handles errno.ECHILD
...
to return a returncode of 0 when the child has already exited or cannot
be waited on.
2012-09-29 11:40:38 -07:00
Benjamin Peterson
14fb44e1ba
merge mostly from default
2012-09-29 14:14:19 -04:00
Benjamin Peterson
b8350f1c7d
upgrade to UCD 6.2
2012-09-29 13:47:39 -04:00
Georg Brandl
8850664d26
merge with 3.3
2012-09-29 09:51:42 +02:00
Georg Brandl
e054f452bd
Fix test_sys.test_implementation for final releases.
2012-09-29 09:44:17 +02:00
Stefan Krah
8a491a8eef
Closes #16080 : The decorator ignores failed attempts to set the required
...
locale, so an additional check is required.
2012-09-28 17:17:11 +02:00
Stefan Krah
6fb204af79
Issue #16080 : Use run_with_locale() decorator to reset the locale properly.
2012-09-28 16:18:54 +02:00