Éric Araujo
f5949b5e47
The change done for #10645 deserves a NEWS entry
2011-06-09 14:10:07 +02:00
Brian Curtin
9a82eaade3
Fix #11583 . Changed os.path.isdir to use GetFileAttributes instead of os.stat.
...
By changing to the Windows GetFileAttributes API in nt._isdir we can figure
out if the path is a directory without opening the file via os.stat. This has
the minor benefit of speeding up os.path.isdir by at least 2x for regular
files and 10-15x improvements were seen on symbolic links (which opened the
file multiple times during os.stat). Since os.path.isdir is used in
several places on interpreter startup, we get a minor speedup in startup time.
2011-06-08 18:43:57 -05:00
Brian Curtin
9c669ccc77
Fix #11583 . Changed os.path.isdir to use GetFileAttributes instead of os.stat.
...
By changing to the Windows GetFileAttributes API in nt._isdir we can figure
out if the path is a directory without opening the file via os.stat. This has
the minor benefit of speeding up os.path.isdir by at least 2x for regular
files and 10-15x improvements were seen on symbolic links (which opened the
file multiple times during os.stat). Since os.path.isdir is used in
several places on interpreter startup, we get a minor speedup in startup time.
2011-06-08 18:17:18 -05:00
Charles-François Natali
4dd453c6aa
Issue #12021 : Make mmap's read() method argument optional. Patch by Petri
...
Lehtinen.
2011-06-08 19:18:14 +02:00
Antoine Pitrou
dd69649660
Issue #9205 : concurrent.futures.ProcessPoolExecutor now detects killed
...
children and raises BrokenProcessPool in such a situation. Previously it
would reliably freeze/deadlock.
2011-06-08 17:21:55 +02:00
Brett Cannon
c5011fe227
When building sqlite3, the directory where sqlite.h was found was
...
always appended to the include directories regardless of whether it
was already in the list of directories. This could cause issue if
sqlite was installed in the same location as another install of
Python. Now a check is done to make sure the directory is not included
twice.
2011-06-06 20:09:10 -07:00
Antoine Pitrou
176f07dadf
Issue #12040 : Expose a new attribute `sentinel` on instances of
...
:class:`multiprocessing.Process`. Also, fix Process.join() to not use
polling anymore, when given a timeout.
2011-06-06 19:35:31 +02:00
Antoine Pitrou
f068ab8304
Issue #11893 : Remove obsolete internal wrapper class `SSLFakeFile` in the smtplib module.
...
Patch by Catalin Iacob.
2011-06-06 19:17:09 +02:00
Benjamin Peterson
b204a42383
greatly improve argument parsing error messages ( closes #12265 )
2011-06-05 22:04:07 -05:00
Gregory P. Smith
d64b2bae9b
merge heads.
2011-06-04 23:05:19 -07:00
Mark Dickinson
7ce0fa8775
Issue #12080 : Fix a performance issue in Decimal._power_exact that causes some corner-case Decimal.__pow__ calls to take an unreasonably long time.
2011-06-04 18:14:23 +01:00
Éric Araujo
765e94f80c
Add NEWS and whatsnew entries for the packaging module
2011-06-03 17:26:59 +02:00
Raymond Hettinger
22cc1183a3
merge
2011-06-02 23:49:44 -07:00
Raymond Hettinger
3d89057ff8
Fix named tuples to work with vars().
2011-06-02 23:40:24 -07:00
Benjamin Peterson
8c6f88efa2
remove __version__s dependent on subversion keyword expansion ( closes #12221 )
2011-05-31 20:52:17 -05:00
Benjamin Peterson
9e3e1c6e4e
merge 3.2 ( #12221 )
2011-05-31 19:07:45 -05:00
Benjamin Peterson
0aa71f7982
merge 3.1 ( #12221 )
2011-05-31 19:06:17 -05:00
Benjamin Peterson
a22c98de85
simply use the Python version for pyexpat.__version__ #12221
2011-05-31 18:59:49 -05:00
Victor Stinner
1b5b9d7434
(Merge 3.2) Close #12085 : Fix an attribute error in subprocess.Popen destructor
...
if the constructor has failed, e.g. because of an undeclared keyword argument.
Patch written by Oleg Oshmyan.
2011-06-01 00:58:57 +02:00
Victor Stinner
87b9bc3893
Close #12085 : Fix an attribute error in subprocess.Popen destructor if the
...
constructor has failed, e.g. because of an undeclared keyword argument. Patch
written by Oleg Oshmyan.
2011-06-01 00:57:47 +02:00
Benjamin Peterson
0bb2991653
add news note
2011-05-31 17:11:26 -05:00
Nick Coghlan
62ecb6aa0a
Tidy up the additional string module tests added at the Pycon sprints ( closes #11505 )
2011-05-31 19:40:11 +10:00
Victor Stinner
1eb6d278a8
(Merge 3.2) Issue #12057 : Add tests for ISO 2022 codecs
...
iso2022_jp, iso2022_jp_2 and iso2022_kr
2011-05-31 00:03:07 +02:00
Victor Stinner
ee49797c8d
Issue #12057 : Add tests for ISO 2022 codecs
...
iso2022_jp, iso2022_jp_2 and iso2022_kr
2011-05-31 00:01:24 +02:00
Victor Stinner
4f1252dfbe
(Merge 3.2) Issue #1195 : fix the issue number of the NEWS entry
2011-05-30 23:50:34 +02:00
Victor Stinner
19c5233303
Issue #1195 : fix the issue number of the NEWS entry
2011-05-30 23:50:04 +02:00
Victor Stinner
0c9f31b4c0
(Merge 3.2) Issue #12016 : my_fgets() now always clears errors before calling
...
fgets(). Fix the following case: sys.stdin.read() stopped with CTRL+d (end of
file), raw_input() interrupted by CTRL+c.
2011-05-30 23:47:01 +02:00
Victor Stinner
4f71101eed
Issue #12016 : my_fgets() now always clears errors before calling fgets(). Fix
...
the following case: sys.stdin.read() stopped with CTRL+d (end of file),
raw_input() interrupted by CTRL+c.
2011-05-30 23:46:00 +02:00
Victor Stinner
58ab766965
Issue #12028 : fix NEWS entry
2011-05-30 23:23:50 +02:00
Victor Stinner
2a12974bca
Close #12028 : Make threading._get_ident() public, rename it to
...
threading.get_ident() and document it. This function was used by
_thread.get_ident().
2011-05-30 23:02:52 +02:00
Victor Stinner
e15dce3d18
Close #12171 : IncrementalEncoder.reset() of CJK codecs (multibytecodec) calls
...
encreset() instead of decreset().
2011-05-30 22:56:00 +02:00
Tarek Ziade
371df05740
Issue 12218: Removing wsgiref.egg-info
2011-05-30 18:55:32 +02:00
Benjamin Peterson
758888d437
don't restrict unexpected EOF errors to the first line ( closes #12216 )
2011-05-30 11:12:38 -05:00
Ned Deily
65bf417fe1
Issue #10736 : Revert changeset de4d34a95603 as it causes failures with
...
old Apple-supplied Carbon Tk 8.4.
2011-05-29 15:39:11 -07:00
Ned Deily
d8e08067b9
Issue #10736 : Fix test_ttk test_widgets failures with Cocoa Tk 8.5.9
...
on Mac OS X. (Patch by Ronald Oussoren)
2011-05-29 15:28:54 -07:00
Benjamin Peterson
9a63745273
bump to 3.1.4rc1
2011-05-29 16:06:00 -05:00
Charles-François Natali
daafdd5bea
Issue #12196 : Add pipe2() to the os module.
2011-05-29 20:07:40 +02:00
Benjamin Peterson
43af12b0b4
unify TryExcept and TryFinally ( closes #12199 )
2011-05-29 11:43:10 -05:00
Éric Araujo
f7d08e8522
Merge 3.2
2011-05-29 18:13:51 +02:00
Éric Araujo
4b8f6651f0
Branch merge
2011-05-29 18:05:53 +02:00
Ned Deily
d5a91961dd
Issue #12205 : Fix test_subprocess failure due to uninstalled test data.
2011-05-29 02:39:02 -07:00
Éric Araujo
f0ab5d6e7f
Fix typos in Misc/NEWS
2011-05-29 03:43:59 +02:00
Ned Deily
e4eed06dfa
Issue #11217 : For 64-bit/32-bit Mac OS X universal framework builds,
...
ensure "make install" creates symlinks in --prefix bin for the "-32"
files in the framework bin directory like the installer does.
2011-05-28 06:04:02 -07:00
Ned Deily
6e5fd04ce2
Issue #11217 : For 64-bit/32-bit Mac OS X universal framework builds,
...
ensure "make install" creates symlinks in --prefix bin for the "-32"
files in the framework bin directory like the installer does.
2011-05-28 05:59:55 -07:00
Ned Deily
59a333844a
Issue #985064 : Make plistlib more resilient to faulty input plists.
...
Patch by Mher Movsisyan.
2011-05-28 03:09:33 -07:00
Ned Deily
32b5cb0a66
Issue #985064 : Make plistlib more resilient to faulty input plists.
...
Patch by Mher Movsisyan.
2011-05-28 03:02:30 -07:00
Ned Deily
b8e59f77e6
Issue #985064 : Make plistlib more resilient to faulty input plists.
...
Patch by Mher Movsisyan.
2011-05-28 02:19:19 -07:00
Ned Deily
61be422bd7
Issue #9670 : Increase the default stack size for secondary threads on
...
Mac OS X and FreeBSD to reduce the chances of a crash instead of a
"maximum recursion depth" RuntimeError exception.
(patch by Ronald Oussoren)
2011-05-28 00:45:52 -07:00
Ned Deily
056f5b9dad
Issue #9670 : Increase the default stack size for secondary threads on
...
Mac OS X and FreeBSD to reduce the chances of a crash instead of a
"maximum recursion depth" RuntimeError exception.
(patch by Ronald Oussoren)
2011-05-28 00:36:12 -07:00
Ned Deily
9a7c524dc6
Issue #9670 : Increase the default stack size for secondary threads on
...
Mac OS X and FreeBSD to reduce the chances of a crash instead of a
"maximum recursion depth" RuntimeError exception.
(patch by Ronald Oussoren)
2011-05-28 00:19:56 -07:00