Brett Cannon
6072e0bf42
Remove uses of % with str.format.
13 years ago
Brian Curtin
0b960f5a58
Fix #16176 . Properly identify Windows 8 via platform.platform()
Add handling of the 6.2 release line, aka Windows 8 and Windows 2012 Server.
13 years ago
Vinay Sajip
bd40d3e144
Closes #15776 : pyvenv now works with existing directories.
13 years ago
Senthil Kumaran
24dfdb69ca
code smell. remove pdb
13 years ago
Senthil Kumaran
52d2720499
Issue #16088 : BaseHTTPRequestHandler's send_error method includes a
Content-Length header. Patch by Antoine Pitrou.
13 years ago
Jesus Cea
5ea197aef3
Closes #16135 : Removal of OS/2 support (distutils) (II)
13 years ago
Jesus Cea
d17833d360
Closes #16135 : Removal of OS/2 support (distutils)
13 years ago
Brett Cannon
a6ce4fd426
Closes issue #15111 : Calling __import__ with a module specified in
fromlist which causes its own ImportError (e.g. the module tries to
import a non-existent module) should have that exception propagate.
13 years ago
Gregory P. Smith
5591b02a4c
Fixes Issue #16114 : The subprocess module no longer provides a
misleading error message stating that args[0] did not exist when
either the cwd or executable keyword arguments specified a path that
did not exist.
It now keeps track of if the child got as far as preexec and reports it if
not back to the parent via a special "noexec" error message value in
the error pipe so that the cwd can be blamed for a failed chdir
instead of the exec of the executable being blamed instead.
The executable is also always reported accurately when exec fails.
Unittests enhanced to cover these cases.
13 years ago
Chris Jerdonek
86b0fb23e5
Issue #16170 : Remove Linux skip from test_subprocess's test_executable test.
13 years ago
Benjamin Peterson
b29614e047
compare singletons by identity not equality ( closes #16712 )
Patch from Serhiy Storchaka.
13 years ago
Benjamin Peterson
a511935151
compare with equality not identity (issue #16172 )
Patch from Serhiy Storchaka.
13 years ago
Richard Oudkerk
ea69bd3ce1
Issue #16169 : Fix ctypes.WinError()'s confusion between errno and winerror
13 years ago
Vinay Sajip
cf9e2f2420
Closes #16110 : fileConfig now accepts a pre-initialised ConfigParser instance.
13 years ago
Vinay Sajip
b5ca932be2
Issue #16168 : Use specified socket type for domain sockets in SysLogHandler.
13 years ago
Vinay Sajip
8cf4eb1463
Issue #16141 : replaced old-style exception handling code in logging with the modern idiom.
13 years ago
Chris Jerdonek
2d051b8eaf
Issue #16115 : Skip a newly added subprocess.Popen() test on Linux.
13 years ago
Chris Jerdonek
776cb199bc
Issue #16115 : Improve testing of the executable argument to subprocess.Popen().
13 years ago
Nadeem Vawda
4907b0a2e0
bz2 module: Rewrap docstrings at 72 columns, as per PEP 8.
13 years ago
Nadeem Vawda
3b4a4f5199
Stylistic tweaks to the bz2 module to make it easier to transplant changes from
it to http://pypi.python.org/pypi/bz2file .
13 years ago
Richard Oudkerk
fc7b0ec5a2
Use setUpClass() and tearDownClass() in test_multiprocessing.
Each manager test class now uses a separate manager. Also, process
pools are no longer created before starting any tests.
Note that warnings are written if the manager for a test case still
has live objects when it is shutdown. This is true for a few test cases
which fail to wait for all child processes to end.
13 years ago
Richard Oudkerk
5046e9741c
Make __mp_main__ an alias for __main__ in all processes to simplify
pickling of classes defined in main module.
13 years ago
Andrew Svetlov
2aa5f3cf51
Issue #16120 : Use |yield from| in stdlib.
Patch by Berker Peksag.
13 years ago
Andrew Svetlov
c3e5b10ae7
Issue #14900 : Add aliases for sorting params for pstat to follow column names from pstat output.
Patch by Arne Babenhauserheide.
13 years ago
Andrew Svetlov
2ef4584e6d
Issue #14900 : Distuguish call count and primitive call count in pstat output.
Patch by Arne Babenhauserheide.
13 years ago
Eli Bendersky
948af23a77
Issue #15888 : fixing problems in ipaddress doctests. Patch by Chris Jerdonek
13 years ago
Hynek Schlawack
4865376c44
Closes #1492704 : Make shutil.copyfile() raise a distinct SameFileError
Patch by Atsuo Ishimoto.
13 years ago
Armin Ronacher
74b38b190f
Issue #16148 : Small improvements and cleanup. Added version information
to docs.
13 years ago
Victor Stinner
15a1136547
Issue #16147 : PyUnicode_FromFormatV() doesn't need anymore to allocate a buffer
on the heap to format numbers.
13 years ago
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.
13 years ago
Andrew Svetlov
b2209ccfa0
revert accidental inclusion of subprocess tests
13 years ago
Andrew Svetlov
ac0f965fd0
Add spaces to follow PEP8.
13 years ago
Andrew Svetlov
afbf90c993
Issue #16025 : Minor corrections to the zipfile documentation.
Patch by Serhiy Storchaka.
13 years ago
Andrew Svetlov
7d14015e62
Issue #16120 : Use |yield from| in stdlib.
Patch by Berker Peksag.
13 years ago
Armin Ronacher
aa9a79d279
Issue #16148 : implemented PEP 424
13 years ago
Andrew Svetlov
ef08fb1f04
Issue #13896 : Make shelf instances work with 'with' as context managers.
Original patch by Filip Gruszczyński.
13 years ago
Christian Heimes
4a0270d82b
Issue #16113 : integrade SHA-3 (Keccak) patch from http://hg.python.org/sandbox/cheimes
13 years ago
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
13 years ago
Andrew Svetlov
64478ac219
normalize whitespaces
13 years ago
Andrew Svetlov
9b1e59a2b3
Issue #16123 : IDLE - deprecate running without a subprocess.
Patch by Roger Serwy
13 years ago
Jesus Cea
685fffa8f4
#16112 : platform.architecture does not correctly escape argument to /usr/bin/file. Fix original patch
13 years ago
Jesus Cea
adc8211e00
#16112 : platform.architecture does not correctly escape argument to /usr/bin/file. Use 'communicate()' and decode the bytes
13 years ago
Jesus Cea
f01d695ccd
Closes #16135 : Removal of OS/2 support
13 years ago
Jesus Cea
fa7d5392d4
Test should be skipped in 'riscos', as intented
13 years ago
Jesus Cea
4791a24268
#16135 : Removal of OS/2 support (Python code partial cleanup)
13 years ago
Jesus Cea
f1af705720
#16135 : Removal of OS/2 support (Remove OS2 and OS/2 references)
13 years ago
Andrew Svetlov
4ca222d4d5
Issue #14997 : disable <F5> in idle shell window.
Thanks to Roger Serwy for patch.
13 years ago
Andrew Svetlov
456b2b8777
Issue #14446 : Remove deprecated tkinter functions
Thanks to Michael Driscoll
13 years ago
Andrew Svetlov
65e9c57369
Issue #15417 : Add support for csh and fish in venv activation scripts.
13 years ago
Antoine Pitrou
ee329318db
Issue #16089 : Allow ElementTree.TreeBuilder to work again with a non-Element element_factory (fixes a regression in SimpleTAL).
13 years ago