Terry Jan Reedy
6b04dc9bcc
Issue #14105 : Change comment to reflect fix. Patch by Saimadhav Heblikar.
2014-10-12 01:11:05 -04:00
Victor Stinner
2de8a6980a
(Merge 3.4) Issue #22601 : run_forever() now consumes BaseException of the
...
temporary task
If the coroutine raised a BaseException, consume the exception to not log a
warning. The caller doesn't have access to the local task.
2014-10-11 14:35:33 +02:00
Victor Stinner
c8bd53f815
Issue #22601 : run_forever() now consumes BaseException of the temporary task
...
If the coroutine raised a BaseException, consume the exception to not log a
warning. The caller doesn't have access to the local task.
2014-10-11 14:30:18 +02:00
Terry Jan Reedy
da821db837
Merge with 3.4: #21986 , don't pickle user code objects.
2014-10-10 19:34:38 -04:00
Terry Jan Reedy
ad0c57fed8
Issue #21986 : Idle now matches interpreter in not pickling user code objects.
...
Patch by Claudiu Popa
2014-10-10 19:33:45 -04:00
Antoine Pitrou
759920c5cb
Issue #22604 : Fix assertion error in debug mode when dividing a complex number by (nan+0j).
2014-10-10 23:51:04 +02:00
Antoine Pitrou
9086f9260f
Issue #22604 : Fix assertion error in debug mode when dividing a complex number by (nan+0j).
2014-10-10 23:49:32 +02:00
Brett Cannon
1eb32c2045
Issue #20152 : Port the array module to Argument Clinic.
2014-10-10 16:26:45 -04:00
Petri Lehtinen
221439dd61
#11694 : merge with 3.4
2014-10-10 21:29:43 +03:00
Petri Lehtinen
3894b2a24f
Issue #11694 : Raise ConversionError in xdrlib as documented
2014-10-10 21:21:52 +03:00
Brett Cannon
5e8b04eefb
Issue #21052 : Don't raise ImportWarning for sys.meta_path or
...
sys.path_hooks when set to None during interpreter shutdown.
Thanks to Martin Panter for the initial bug report.
2014-10-10 10:54:28 -04:00
Victor Stinner
1aa3cb6030
(Merge 3.4) test_venv: use support.rmtree() instead of shutil.rmtree() to fix
...
sporadic failures on Windows
2014-10-10 14:23:25 +02:00
Victor Stinner
866c4e2188
test_venv: use support.rmtree() instead of shutil.rmtree() to fix sporadic
...
failures on Windows
2014-10-10 14:23:00 +02:00
Berker Peksag
8ee1513ada
Issue #21456 : Skip two tests in test_urllib2net.py if _ssl module not present.
...
Patch by Remi Pointel.
2014-10-10 14:35:51 +03:00
Berker Peksag
b77983d2bd
Issue #21456 : Skip two tests in test_urllib2net.py if _ssl module not present.
...
Patch by Remi Pointel.
2014-10-10 14:34:16 +03:00
Serhiy Storchaka
e2ccf5608c
Issue #19380 : Optimized parsing of regular expressions.
2014-10-10 11:14:49 +03:00
Serhiy Storchaka
7438e4b56f
Issue 1519638: Now unmatched groups are replaced with empty strings in re.sub()
...
and re.subn().
2014-10-10 11:06:31 +03:00
Terry Jan Reedy
365e28238f
Merge with 3.4
2014-10-09 23:13:54 -04:00
Terry Jan Reedy
4fe69ba01c
Issue #20167 : revise condition to accomodate message change.
2014-10-09 23:13:36 -04:00
Terry Jan Reedy
e66dc2aecc
Merge with 3.4: decolourize
2014-10-09 18:45:07 -04:00
Terry Jan Reedy
867579972d
De-'colour'ize stdlib except for idlelib.configDialog.
...
Tweak docstrigs and comments in affected functions in idlelib.configHandler.
2014-10-09 18:44:32 -04:00
R David Murray
4487dd0ed5
#18615 : Make sndhdr return namedtuples.
...
Patch by Claudiu Popa.
2014-10-09 16:59:30 -04:00
Terry Jan Reedy
d7b68f30a7
Merge with 3.4
2014-10-08 20:29:32 -04:00
Terry Jan Reedy
92cb0a361f
Issue 3068: Move idlelib.configDialog action button creation into a separate
...
method so it can be reused by the new extension dialog.
2014-10-08 20:29:13 -04:00
Antoine Pitrou
94262ebc9c
Issue #22462 : Fix pyexpat's creation of a dummy frame to make it appear in exception tracebacks.
...
Initial patch by Mark Shannon.
2014-10-08 20:02:40 +02:00
Antoine Pitrou
0ddbf4795f
Issue #22462 : Fix pyexpat's creation of a dummy frame to make it appear in exception tracebacks.
...
Initial patch by Mark Shannon.
2014-10-08 20:00:09 +02:00
Larry Hastings
2ce95d7b7c
Merge from 3.4.2 release head back into 3.4 mainline.
2014-10-08 02:50:50 -07:00
Terry Jan Reedy
32a7145764
Merge with 3.4: idlelib.configHandler
2014-10-06 23:27:02 -04:00
Terry Jan Reedy
deb7bf123c
idlelib.configHandler: revise docstrings, add spaces, use False/True, add some
...
TODOs (mostly to do after add tests), and make a few other changes.
2014-10-06 23:26:26 -04:00
Larry Hastings
dbb126103e
Release bump for 3.4.2 final.
2014-10-05 19:05:50 -07:00
Larry Hastings
c6256e5f7d
Update pydoc topics and fix supsicious markup for 3.4.2 final.
2014-10-05 19:03:48 -07:00
Antoine Pitrou
3cb9379881
Remove unused "block" argument in SSLObject.do_handshake() (issue #21965 )
2014-10-06 00:21:09 +02:00
Antoine Pitrou
b1fdf47ff5
Issue #21965 : Add support for in-memory SSL to the ssl module.
...
Patch by Geert Jansen.
2014-10-05 20:41:53 +02:00
Antoine Pitrou
414e15a88d
Closes #21173 : Fix len() on a WeakKeyDictionary when .clear() was called with an iterator alive.
2014-10-05 20:04:06 +02:00
Antoine Pitrou
1bf974dc6e
Closes #21173 : Fix len() on a WeakKeyDictionary when .clear() was called with an iterator alive.
2014-10-05 20:02:28 +02:00
R David Murray
861470c836
#16518 : Bring error messages in harmony with docs ("bytes-like object")
...
Some time ago we changed the docs to consistently use the term 'bytes-like
object' in all the contexts where bytes, bytearray, memoryview, etc are used.
This patch (by Ezio Melotti) completes that work by changing the error
messages that previously reported that certain types did "not support the
buffer interface" to instead say that a bytes-like object is required. (The
glossary entry for bytes-like object references the discussion of the buffer
protocol in the docs.)
2014-10-05 11:47:01 -04:00
Victor Stinner
d577cea8ab
Merge 3.4
2014-10-05 17:38:45 +02:00
Victor Stinner
bed04a77ee
cleanup test_posix
2014-10-05 17:37:59 +02:00
Victor Stinner
047b7ae566
Issue #22390 : Remove files created by tests
2014-10-05 17:37:41 +02:00
Victor Stinner
f4e4b83824
(Merge 3.4) Issue #22290 : Fix error handling in the _posixsubprocess module.
...
* Don't call the garbage collector with an exception set: it causes an
assertion to fail in debug mode.
* Enhance also error handling if allocating an array for the executable list
failed.
* Add an unit test for 4 different errors in the _posixsubprocess module.
2014-10-05 17:25:48 +02:00
Victor Stinner
8f437aac06
Issue #22290 : Fix error handling in the _posixsubprocess module.
...
* Don't call the garbage collector with an exception set: it causes an
assertion to fail in debug mode.
* Enhance also error handling if allocating an array for the executable list
failed.
* Add an unit test for 4 different errors in the _posixsubprocess module.
2014-10-05 17:25:19 +02:00
R David Murray
f5387c0d6d
Merge: #11866 : Eliminate race condition in the computation of names for new threads.
2014-10-04 17:45:15 -04:00
R David Murray
b186f1df41
#11866 : Eliminate race condition in the computation of names for new threads.
...
Original patch by Peter Saveliev.
2014-10-04 17:43:54 -04:00
Antoine Pitrou
5f6a7556bf
Issue #21905 : Avoid RuntimeError in pickle.whichmodule() when sys.modules is mutated while iterating.
...
Patch by Olivier Grisel.
2014-10-04 22:17:26 +02:00
Antoine Pitrou
e1618491ad
Issue #21905 : Avoid RuntimeError in pickle.whichmodule() when sys.modules is mutated while iterating.
...
Patch by Olivier Grisel.
2014-10-04 22:15:27 +02:00
Antoine Pitrou
4aae276eca
Issue #11271 : concurrent.futures.Executor.map() now takes a *chunksize*
...
argument to allow batching of tasks in child processes and improve
performance of ProcessPoolExecutor. Patch by Dan O'Reilly.
2014-10-04 20:20:10 +02:00
Serhiy Storchaka
e4f47088af
Fixed tests on Windows for issue #21883 .
2014-10-04 16:09:02 +03:00
Georg Brandl
e800a0e1c2
Bump to 3.2.6rc1
2014-10-04 14:15:42 +02:00
Serhiy Storchaka
3deeeb0c39
Issue #21883 : os.path.join() and os.path.relpath() now raise a TypeError with
...
more helpful error message for unsupported or mismatched types of arguments.
2014-10-04 14:58:43 +03:00
Georg Brandl
76e73f85a3
Bump to 3.3.6rc1
2014-10-04 14:22:11 +02:00
Serhiy Storchaka
90c24c42b2
Issue #22219 : The zipfile module CLI now adds entries for directories
...
(including empty directories) in ZIP file.
2014-10-04 13:42:28 +03:00
Serhiy Storchaka
518e71b18a
Issue #22219 : The zipfile module CLI now adds entries for directories
...
(including empty directories) in ZIP file.
2014-10-04 13:39:34 +03:00
Benjamin Peterson
91b62c4a8a
merge 3.4
2014-10-03 18:17:30 -04:00
Benjamin Peterson
91244e01bb
separate cert loading tests into Windows and non-Windows cases
2014-10-03 18:17:15 -04:00
Benjamin Peterson
8b9cfa1066
merge 3.4 ( #22449 )
2014-10-03 17:33:45 -04:00
Benjamin Peterson
5915b0f924
also use openssl envvars to find certs on windows ( closes #22449 )
...
Patch by Christian Heimes and Alex Gaynor.
2014-10-03 17:27:05 -04:00
R David Murray
df75fee9a3
#22508 : Drop email __version__ string. It no longer means anything.
...
A debian code search (by Tshepang Lekhonkhobe) turned up only one package
checking email.__version__...and it was the 2.7-only mailman package. Since
Barry approves this change, it seems safe enough to make it...
2014-10-03 13:02:47 -04:00
R David Murray
b55f944fa9
Merge: #12780 : update inspect test skipIf for PEP 3147.
2014-10-03 11:16:08 -04:00
R David Murray
32562d7da3
#12780 : update inspect test skipIf for PEP 3147.
...
The test needs to be skipped if unicodedata is either part of the
main binary (a repackaging of cpython on Windows?) or has python
source (pypy?). PEP 3147 makes __file__ point to the .py source,
so we need to change the extension check from looking for the
old .pyc/.pyo to just looking for .py.
Note that this skip should never trigger on CPython itself, so
one could argue it should be dropped instead. But since it exists,
why risk breaking someone else's python.
2014-10-03 11:15:38 -04:00
Antoine Pitrou
392f4139b3
Make test_datetime a better citizen (issue #22540 )
2014-10-03 11:25:30 +02:00
R David Murray
f355943002
Merge: #8473 : Add tests that doctest uses universal newlines in testfile.
2014-10-02 22:43:51 -04:00
R David Murray
b48cb29ac4
#8473 : Add tests that doctest uses universal newlines in testfile.
...
Python3 does not have the bug covered by the issue.
2014-10-02 22:42:42 -04:00
Georg Brandl
1f31583566
merge 3.4
2014-10-02 12:35:54 +02:00
Georg Brandl
529452926b
Closes #19434 : fix copy-paste error in MIMENonMultipart docstring.
2014-10-02 12:35:08 +02:00
Serhiy Storchaka
df77518d8c
Issue #20079 : Fixed tests.
2014-10-02 11:36:31 +03:00
Serhiy Storchaka
4601df58e7
Issue #20079 : Fixed tests.
2014-10-02 11:36:12 +03:00
Serhiy Storchaka
62c50c04e7
Issue #20079 : Updated alias mapping to glibc 2.19 SUPPORTED file.
2014-10-02 10:49:44 +03:00
Serhiy Storchaka
9e04edaf64
Issue #20079 : Updated alias mapping to glibc 2.19 SUPPORTED file.
2014-10-02 10:49:26 +03:00
Serhiy Storchaka
5189ee54cf
Issue #20076 : Apply optimization in makelocalealias.py repeatedly.
...
Remove just added the sr_rs.utf8@latn alias because it is
derived from sr_rs@latin.
2014-10-02 10:21:43 +03:00
Serhiy Storchaka
b8cd8cf8f2
Issue #20076 : Remove just added the sr_rs.utf8@latn alias because it is
...
derived from sr_rs@latin.
2014-10-02 10:19:29 +03:00
doko@ubuntu.com
9816619c5b
- Issue #17219 : Add library build dir for Python extension cross-builds.
2014-10-02 02:12:34 +02:00
doko@ubuntu.com
cef3bdc01d
- Issue #17219 : Add library build dir for Python extension cross-builds.
2014-10-02 02:10:47 +02:00
Serhiy Storchaka
c383ad8d9c
Issue #20076 : Added non derived UTF-8 aliases to locale aliases table.
...
The makelocalealias.py script no longer ignores UTF-8 mapping.
2014-10-02 00:11:21 +03:00
Serhiy Storchaka
1de0ba2cf5
Issue #20076 : Added non derived UTF-8 aliases to locale aliases table.
2014-10-02 00:09:37 +03:00
Serhiy Storchaka
99cb41d423
Issue #20079 : Added locales supported in glibc 2.18 to locale alias table.
2014-10-01 23:43:35 +03:00
Serhiy Storchaka
ea4f0573b4
Issue #20079 : Added locales supported in glibc 2.18 to locale alias table.
...
The makelocalealias.py script now can parse the SUPPORTED file
from glibc sources and supports command line options for source paths.
2014-10-01 23:42:30 +03:00
Georg Brandl
4480d30b8b
ref #19855 : skip uuid test_find_mac on non-Posix as in later branches
2014-10-01 22:31:04 +02:00
Georg Brandl
ea68398355
Closes #20218 : Added convenience methods read_text/write_text and read_bytes/
...
write_bytes to pathlib.Path objects.
Thanks to Christopher Welborn and Ram Rachum for original patches.
2014-10-01 19:12:33 +02:00
Terry Jan Reedy
5c4725e5bc
Update 3.5 Idle News up to 3.4.2 changes.
2014-10-01 03:10:27 -04:00
Terry Jan Reedy
9e883ca301
Update Idle news for 3.4.2 (and 3.4.1).
2014-10-01 03:08:17 -04:00
R David Murray
5a789f7eaf
Merge: #22512 : move distutils rpm test's .rpmdb to testing tmpdir.
2014-09-30 20:53:55 -04:00
R David Murray
e6edc03a61
#22512 : move distutils rpm test's .rpmdb to testing tmpdir.
...
Patch by Francis MB.
2014-09-30 20:53:21 -04:00
Victor Stinner
3b09d21a9d
Issue #22333 : test_threaded_import now displays elapsed time in verbose mode.
2014-10-01 01:48:05 +02:00
Victor Stinner
d7722d7147
Issue #22333 : Extend timeout in test_threaded_import
...
Check if the sporadic failure is related to a timeout.
The test just failed on the buildbot "x86 Windows7 3.x": 1 thread done / 20
(the 'done' condition was not signaled because 1 < 20).
2014-10-01 01:45:16 +02:00
Georg Brandl
61bd1dcf9b
Move Doc/tools/sphinxext content to Doc/tools, there is no need for the nested subdirectory anymore.
2014-09-30 22:56:38 +02:00
Georg Brandl
97e9ec688c
Move Doc/tools/sphinxext content to Doc/tools, there is no need for the nested subdirectory anymore.
2014-09-30 22:51:30 +02:00
Georg Brandl
51c116223e
Issue #19855 : uuid.getnode() on Unix now looks on the PATH for the
...
executables used to find the mac address, with /sbin and /usr/sbin as
fallbacks.
Issue #11508 : Fixed uuid.getnode() and uuid.uuid1() on environment with
virtual interface. Original patch by Kent Frazier.
Issue #18784 : The uuid module no more attempts to load libc via ctypes.CDLL,
if all necessary functions are already found in libuuid.
Patch by Evgeny Sologubov.
Issue #16102 : Make uuid._netbios_getnode() work again on Python 3.
2014-09-30 19:34:19 +02:00
Victor Stinner
63860e5407
(Merge 3.4) Issue #22448 : asyncio, cleanup _run_once(), only iterate once to
...
remove delayed calls that were cancelled.
2014-09-30 18:11:00 +02:00
Victor Stinner
68da8fc4c0
Issue #22448 : asyncio, cleanup _run_once(), only iterate once to remove delayed
...
calls that were cancelled.
2014-09-30 18:08:36 +02:00
Georg Brandl
3bc35672a2
Backport b533cc11d114 to fix intermittent test_urllibnet failures.
2014-09-30 17:30:18 +02:00
Georg Brandl
786c8e7dd5
Fix-up for 0f362676460d: add missing size argument to SSLFakeFile.readline(), as in 2.6 backport 8a6def3add5b
2014-09-30 16:31:21 +02:00
Antoine Pitrou
afa3153b27
Remove pointless "vile hack" that can cause the build step to fail when some extension modules can't be imported.
...
See issue #5309 for the build failures, issue #458343 for the original motivation.
2014-09-30 14:58:22 +02:00
Victor Stinner
6b8e0ed562
(Merge 3.4) faulthandler: test_gil_released() now uses _sigsegv() instead of
...
_read_null(), because _read_null() cannot be used on AIX. On AIX, reading from
NULL is allowed: the first page of memory is a mapped read-only on AIX.
_read_null() and _sigabrt() don't accept parameters.
2014-09-30 13:55:30 +02:00
Victor Stinner
5083828d65
faulthandler: test_gil_released() now uses _sigsegv() instead of _read_null(),
...
because _read_null() cannot be used on AIX. On AIX, reading from NULL is
allowed: the first page of memory is a mapped read-only on AIX.
2014-09-30 13:54:14 +02:00
Benjamin Peterson
58ee2d31ab
merge 3.4 ( #22517 )
2014-09-29 22:49:05 -04:00
Benjamin Peterson
c44eb73473
merge 3.3 ( #22517 )
2014-09-29 22:48:51 -04:00
Benjamin Peterson
bbd0a323ae
clear BufferedRWPair weakrefs on deallocation ( closes #22517 )
2014-09-29 22:46:57 -04:00
Benjamin Peterson
e87b7eafe4
fix windows tests ( #16662 )
...
From Robert Collins.
2014-09-29 21:54:28 -04:00
Serhiy Storchaka
9baa5b2de2
Issue #22437 : Number of capturing groups in regular expression is no longer
...
limited by 100.
2014-09-29 22:49:23 +03:00
R David Murray
c31e6227f9
#17442 : Add chained traceback support to InteractiveInterpreter.
...
Patch by Claudiu Popa.
2014-09-29 11:25:00 -04:00
Serhiy Storchaka
4d75a01798
Issue #22510 : Get rid of little overhead of testing re.DEBUG flag.
2014-09-29 18:13:02 +03:00
Alexander Belopolsky
6c7a4182f5
Closes issue #20858 : Enhancements/fixes to pure-python datetime module
...
This patch brings the pure-python datetime more in-line with the C
module. Patch contributed by Brian Kearns, a PyPy developer. PyPy
project has been running these modifications in PyPy2 stdlib.
This commit includes:
- General PEP8/cleanups;
- Better testing of argument types passed to constructors;
- Removal of duplicate operations;
- Optimization of timedelta creation;
- Caching the result of __hash__ like the C accelerator;
- Enhancements/bug fixes in tests.
2014-09-28 19:11:56 -04:00
Benjamin Peterson
a2f93885b0
merge 3.4 ( #22379 )
2014-09-28 12:57:22 -04:00
Benjamin Peterson
c31f12d196
check that exception messages are not empty ( #22379 )
...
Patch by Yongzhi Pan.
2014-09-28 12:56:42 -04:00
R David Murray
c081262be6
#10510 : Fix bug in forward port of 2.7 distutils patch.
...
Pointed out by Arfrever.
2014-09-28 11:01:42 -04:00
R David Murray
623ae29469
#10510 : Fix bug in forward port of 2.7 distutils patch.
...
Pointed out by Arfrever.
2014-09-28 11:01:11 -04:00
Serhiy Storchaka
be4de52fb1
Removed a code for suport Python version <2.2.
2014-09-28 15:36:18 +03:00
R David Murray
3a54c3e3aa
Merge: #10510 : make distuitls upload/register use HTML standards compliant CRLF.
2014-09-27 16:57:51 -04:00
R David Murray
9ce69672f3
#10510 : make distuitls upload/register use HTML standards compliant CRLF.
...
Patch by Ian Cordasco, approved by Éric Araujo.
2014-09-27 16:56:15 -04:00
Serhiy Storchaka
402e1e388d
Issue #9850 : Fixed macpath.join() for empty first component. Patch by
...
Oleg Oshmyan.
2014-09-27 18:55:15 +03:00
Serhiy Storchaka
ca534ab495
Issue #9850 : Fixed macpath.join() for empty first component. Patch by
...
Oleg Oshmyan.
2014-09-27 18:53:23 +03:00
Berker Peksag
fe21e4d4d7
Issue #16324 : _charset parameter of MIMEText now also accepts email.charset.Charset instances.
...
Initial patch by Claude Paroz.
2014-09-27 00:57:29 +03:00
Yury Selivanov
081bbf6b28
inspect: Fix getsource() to support decorated functions.
...
Issue #1764286 . Patch by Claudiu Popa.
2014-09-26 17:34:54 -04:00
Antoine Pitrou
2c0a916061
Issue #5309 : distutils' build and build_ext commands now accept a ``-j``
...
option to enable parallel building of extension modules.
2014-09-26 23:31:59 +02:00
Yury Selivanov
0b86660891
tempfile: Fix docstring. Issue #21397 , patch by R. David Murray.
2014-09-26 17:08:21 -04:00
Yury Selivanov
3e67d583ee
tempfile: Fix docstring. Issue #21397 , patch by R. David Murray.
2014-09-26 17:08:02 -04:00
Yury Selivanov
97e2e06af8
os: Include posix functions in os.__all__. Closes issue #18554 .
...
Patch by Ronald Oussoren.
2014-09-26 12:33:06 -04:00
Yury Selivanov
d359013eea
asyncio.test_tasks: Fix test_env_var_debug to use correct asyncio module
2014-09-25 19:12:37 -04:00
Yury Selivanov
d5a8f5807f
asyncio.test_tasks: Fix test_env_var_debug to use correct asyncio module
2014-09-25 19:12:10 -04:00
Yury Selivanov
1cfd36fdd7
asyncio: Improve canceled timer handles cleanup. Closes issue #22448 .
...
Patch by Joshua Moore-Oliva.
2014-09-25 12:09:09 -04:00
Yury Selivanov
592ada9b4b
asyncio: Improve canceled timer handles cleanup. Closes issue #22448 .
...
Patch by Joshua Moore-Oliva.
2014-09-25 12:07:56 -04:00
Nick Coghlan
bca9acf7ca
Issue #18093 : fix test_capi test skip due to _testembed move
2014-09-25 19:48:15 +10:00
Yury Selivanov
f45ea46fe8
asyncio: Reverting 69d474dab479 as issue #21645 is now closed and debug is no longer needed
2014-09-24 23:41:28 -04:00
Yury Selivanov
d1223a7adc
asyncio.test_events: Partially reverting f7643c893587 to stay in sync with tulip codebase
2014-09-24 23:30:03 -04:00
Yury Selivanov
5d0a790fc8
asyncio.unix_events: Move import statement to match code in tulip
2014-09-24 23:22:26 -04:00
Yury Selivanov
8c0e0ab767
asyncio.unix_events: Move import statement to match tulip code
2014-09-24 23:21:39 -04:00
Victor Stinner
3e4a80a2e1
(Merge 3.4) test_faulthandler: fix typo
2014-09-25 00:39:17 +02:00
Victor Stinner
29001c8319
test_faulthandler: fix typo
2014-09-25 00:38:48 +02:00
R David Murray
f7248257ac
Merge: Apply asyncio Task English fixes to docstrings as well.
2014-09-24 13:14:07 -04:00
R David Murray
8e069d5ce9
Apply asyncio Task English fixes to docstrings as well.
...
Also fixed the phrasing in a comment.
2014-09-24 13:13:45 -04:00
Berker Peksag
cf84098884
Issue #16056 : Rename test method in test_statistics to avoid conflict.
2014-09-24 15:03:57 +03:00
Berker Peksag
f8c111d4d7
Issue #16056 : Rename test method in test_statistics to avoid conflict.
2014-09-24 15:03:25 +03:00
Serhiy Storchaka
e9a086bf01
Issue #22427 : TemporaryDirectory no longer attempts to clean up twice when
...
used in the with statement in generator.
2014-09-24 13:29:27 +03:00
Serhiy Storchaka
5e193ac0bd
Issue #22427 : TemporaryDirectory no longer attempts to clean up twice when
...
used in the with statement in generator.
2014-09-24 13:26:25 +03:00
Georg Brandl
40f9735486
#22464 : Speed up common Fraction operations by special-casing several
...
operations for int-type arguments: constructor and equality test.
Also avoid redundant property lookups in addition and subtraction.
2014-09-24 08:37:55 +02:00
Serhiy Storchaka
c563caf3a2
Issue #22362 : Forbidden ambiguous octal escapes out of range 0-0o377 in
...
regular expressions.
2014-09-23 23:22:41 +03:00
Serhiy Storchaka
d8644db4e7
Fixed bytes literals in tests.
2014-09-23 23:04:54 +03:00
Serhiy Storchaka
cd9032d45b
Fixed bytes literals in tests.
2014-09-23 23:04:21 +03:00
Serhiy Storchaka
385ffbffe6
Issue #20912 : Now directories added to ZIP file have correct Unix and MS-DOS
...
directory attributes.
2014-09-23 22:42:02 +03:00
Serhiy Storchaka
46a34924e4
Issue #20912 : Now directories added to ZIP file have correct Unix and MS-DOS
...
directory attributes.
2014-09-23 22:40:23 +03:00
Serhiy Storchaka
09a555eb38
Fixed test_large_file_exception. Ported tests for large count of files
...
to AbstractTestZip64InSmallFiles.
2014-09-23 22:28:03 +03:00
Serhiy Storchaka
026a399bf9
Fixed test_large_file_exception. Ported tests for large count of files
...
to AbstractTestZip64InSmallFiles.
2014-09-23 22:27:34 +03:00
Serhiy Storchaka
07314bcbe7
Issue #21866 : ZipFile.close() no longer writes ZIP64 central directory
...
records if allowZip64 is false.
2014-09-23 21:35:57 +03:00
Serhiy Storchaka
cfbb394488
Issue #21866 : ZipFile.close() no longer writes ZIP64 central directory
...
records if allowZip64 is false.
2014-09-23 21:34:24 +03:00
Larry Hastings
61ff32f99a
Fix pydoc topics. I'll regenerate this again for 3.4.2 final,
...
but fixing it now means the test suite can have zero errors
during the next two weeks.
2014-09-22 23:51:20 +01:00
Larry Hastings
2887f76d45
Merge.
2014-09-22 15:21:08 +01:00
Senthil Kumaran
a66e3885fb
Issue #22278 : Fix urljoin problem with relative urls, a regression observed
...
after changes to issue22118 were submitted.
Patch contributed by Demian Brecht and reviewed by Antoine Pitrou.
2014-09-22 15:49:16 +08:00
Serhiy Storchaka
560c578d1d
Issue #22423 : Fixed debugging output of the GROUPREF_EXISTS opcode in the re
...
module.
2014-09-21 22:48:24 +03:00
Serhiy Storchaka
44dae8bde3
Issue #22423 : Fixed debugging output of the GROUPREF_EXISTS opcode in the re
...
module.
2014-09-21 22:47:55 +03:00
Serhiy Storchaka
d7fc141c7d
Merge heads
2014-09-21 22:26:11 +03:00
Serhiy Storchaka
1a5426dbaf
Merge heads
2014-09-21 22:25:25 +03:00
Antoine Pitrou
6e311aa748
Issue #21332 : Ensure that ``bufsize=1`` in subprocess.Popen() selects line buffering, rather than block buffering.
2014-09-21 21:15:42 +02:00
Antoine Pitrou
afe8d0646c
Issue #21332 : Ensure that ``bufsize=1`` in subprocess.Popen() selects line buffering, rather than block buffering.
2014-09-21 21:10:56 +02:00
Serhiy Storchaka
c904e87c13
Issue #22423 : Unhandled exception in thread no longer causes unhandled
...
AttributeError when sys.stderr is None.
2014-09-21 22:09:20 +03:00
Serhiy Storchaka
52005c2e13
Issue #22423 : Unhandled exception in thread no longer causes unhandled
...
AttributeError when sys.stderr is None.
2014-09-21 22:08:13 +03:00
Larry Hastings
03776e33a9
Bump version number for 3.4.2rc1 release.
2014-09-21 00:09:56 +01:00
Larry Hastings
43a4f7046c
Updated pydoc topics for 3.4.1rc1 release.
2014-09-21 00:05:05 +01:00
R David Murray
7c4093ca95
Merge: #21091 : make is_attachment a method.
2014-09-20 18:16:39 -04:00
R David Murray
8a97896a76
#21091 : make is_attachment a method.
...
Since EmailMessage is a provisional API we can fix API bugs in a
maintenance release, but I used a trick suggested by Serhiy to
maintain backward compatibility with 3.4.0/1.
2014-09-20 18:05:28 -04:00
R David Murray
1de0ac05f3
Merge: #21079 : is_attachment now looks only at the value, ignoring parameters.
2014-09-20 17:49:48 -04:00
R David Murray
97dfad7856
#21079 : is_attachment now looks only at the value, ignoring parameters.
2014-09-20 17:44:53 -04:00
Benjamin Peterson
e22735036b
merge 3.4
2014-09-20 11:53:27 -04:00
Benjamin Peterson
9833fcbca3
use patch context manager instead of decorator because the decorator 'leaks' metadata onto the function
2014-09-20 11:53:12 -04:00
Berker Peksag
bdfeb0387d
Issue #22247 : Add NNTPError to nntplib.__all__.
2014-09-20 08:54:32 +03:00
Berker Peksag
96756b6a27
Issue #22247 : Add NNTPError to nntplib.__all__.
2014-09-20 08:53:05 +03:00
Terry Jan Reedy
f633367231
Merge with 3.4
2014-09-19 22:54:27 -04:00
Terry Jan Reedy
b6e1778cbd
Update Idle's online doc url.
2014-09-19 22:54:15 -04:00
Terry Jan Reedy
5ef46ba63a
Issue #22420 : Merge with 3.4
2014-09-19 22:39:09 -04:00
Terry Jan Reedy
81b062f63a
Issue #22420 : Avoid 'write to None' crashes by using print instead.
...
Change a couple of existing prints. Original patch by Serhiy Storchaka.
2014-09-19 22:38:41 -04:00
Senthil Kumaran
8b7e161ac3
backport context argument of urlopen ( #22366 ) for pep 476
2014-09-19 15:23:30 +08:00
Senthil Kumaran
a5c85b3f5f
Issue #22366 : urllib.request.urlopen will accept a context object (SSLContext)
...
as an argument which will then used be for HTTPS connection.
Patch by Alex Gaynor.
2014-09-19 15:23:30 +08:00
Berker Peksag
3715da5c97
Issue #21391 : Use os.path.abspath in the shutil module.
2014-09-18 05:11:15 +03:00
Antoine Pitrou
e7811fca5e
Closes #11471 : avoid generating a JUMP_FORWARD instruction at the end of an if-block if there is no else-clause.
...
Original patch by Eugene Toder.
2014-09-18 03:06:50 +02:00
Antoine Pitrou
87538e7bc4
Issue #4180 : The warnings registries are now reset when the filters are modified.
2014-09-18 02:42:05 +02:00
Antoine Pitrou
cb0a006fd1
Issue #4180 : The warnings registries are now reset when the filters are modified.
2014-09-18 02:40:46 +02:00
Victor Stinner
605a64b436
(Merge 3.4) asyncio, Tulip issue 206: In debug mode, keep the callback in the
...
representation of Handle and TimerHandle after cancel().
2014-09-17 23:24:39 +02:00
Victor Stinner
1b38bc65dd
asyncio, Tulip issue 206: In debug mode, keep the callback in the
...
representation of Handle and TimerHandle after cancel().
2014-09-17 23:24:13 +02:00
Senthil Kumaran
dc41440401
Merge from 3.4
...
Issue #22419 : Limit the length of incoming HTTP request in wsgiref server to 65536 bytes.
2014-09-17 16:32:46 +08:00
Senthil Kumaran
86c9e1877c
Merge from 3.3
...
Issue #22419 : Limit the length of incoming HTTP request in wsgiref server to 65536 bytes.
2014-09-17 16:31:47 +08:00
Senthil Kumaran
e025b52db0
Issue #22419 : Limit the length of incoming HTTP request in wsgiref server to 65536 bytes.
2014-09-17 16:29:29 +08:00
Senthil Kumaran
810dc9bc81
Merge from 3.4
...
Issue #22421 - Secure pydoc server run. Bind it to localhost instead of all interfaces.
2014-09-17 13:19:34 +08:00
Senthil Kumaran
aa72b1b448
Merge from 3.3
...
Issue #22421 - Secure pydoc server run. Bind it to localhost instead of all interfaces.
2014-09-17 13:19:01 +08:00
Senthil Kumaran
2a42a0bff3
Issue #22421 - Secure pydoc server run. Bind it to localhost instead of all interfaces.
2014-09-17 13:17:58 +08:00
Ethan Furman
d9925a18ec
Close issue21706: add 'start' parameter to functional API
2014-09-16 20:35:55 -07:00
Ethan Furman
6a8e0fbcfb
consistently use _name_ and _value_; patch from Kiss Gyorgy
2014-09-16 19:02:30 -07:00
Ethan Furman
0081f23a08
consistently use _name_ and _value_; patch from Kiss Gyorgy
2014-09-16 17:31:23 -07:00
Antoine Pitrou
6cfa46e45f
Replace bad ftp URLs in test_urllib2net
2014-09-17 00:40:13 +02:00
Antoine Pitrou
bc2c4c9990
Replace bad ftp URLs in test_urllib2net
2014-09-17 00:39:21 +02:00
Antoine Pitrou
0d54887326
Lax cookie parsing in http.cookies could be a security issue when combined
...
with non-standard cookie handling in some Web browsers.
Reported by Sergey Bobrov.
2014-09-17 00:27:26 +02:00
Antoine Pitrou
637e4544af
Lax cookie parsing in http.cookies could be a security issue when combined
...
with non-standard cookie handling in some Web browsers.
Reported by Sergey Bobrov.
2014-09-17 00:25:57 +02:00
Antoine Pitrou
7d0b8f95e7
Lax cookie parsing in http.cookies could be a security issue when combined
...
with non-standard cookie handling in some Web browsers.
Reported by Sergey Bobrov.
2014-09-17 00:23:55 +02:00
Kushal Das
a37b958d65
Closes #21270 : We now override tuple methods in mock.call objects.
2014-09-16 18:33:37 +05:30
Nick Coghlan
a0f33759fa
Merge fix for issue #22166 from 3.4
2014-09-15 23:55:16 +12:00
Nick Coghlan
8fad1676a2
Issue #22166 : clear codec caches in test_codecs
2014-09-15 23:50:44 +12:00
Łukasz Langa
0b894b40db
Closes #18159 : ConfigParser getters not available on SectionProxy
2014-09-15 02:10:01 -07:00
Łukasz Langa
dfdd2f7ef8
Closes #18159 : ConfigParser getters not available on SectionProxy
2014-09-15 02:08:41 -07:00
Serhiy Storchaka
884d5284f7
Restored re pickling test.
2014-09-15 11:33:55 +03:00
Serhiy Storchaka
b85a97600a
Restored re pickling test.
2014-09-15 11:33:19 +03:00
Vinay Sajip
02a8f9e9ac
Closes #20537 : logging methods now accept an exception instance as well as a Boolean value or exception tuple. Thanks to Yury Selivanov for the patch.
2014-09-14 21:29:11 +01:00
Serhiy Storchaka
4ff91eb5e3
Issue #22384 : An exception in Tkinter callback no longer crashes the program
...
when it is run with pythonw.exe.
Documented that Tk.report_callback_exception() is purposed to be overriden in
applications.
2014-09-14 21:18:31 +03:00
Serhiy Storchaka
9502487781
Issue #22384 : An exception in Tkinter callback no longer crashes the program
...
when it is run with pythonw.exe.
Documented that Tk.report_callback_exception() is purposed to be overriden in
applications.
2014-09-14 21:17:32 +03:00
Serhiy Storchaka
f42cbff27e
Use more appropriate asserts in re tests.
2014-09-14 16:21:27 +03:00
Serhiy Storchaka
d9cf65f00e
Use more appropriate asserts in re tests.
2014-09-14 16:20:20 +03:00
Serhiy Storchaka
d1b440a377
Fixed re tests incorrectly ported from 2.x to 3.x.
2014-09-14 15:57:01 +03:00
Serhiy Storchaka
a25875cfd0
Fixed re tests incorrectly ported from 2.x to 3.x.
2014-09-14 15:56:27 +03:00
Ned Deily
2ebdb2c911
Issue #22168 : Prevent turtle AttributeError with non-default Canvas on OS X.
2014-09-13 23:40:27 -07:00
Ned Deily
152dfd1dac
Issue #22168 : Prevent turtle AttributeError with non-default Canvas on OS X.
2014-09-13 23:39:16 -07:00
Yury Selivanov
08d4a4f488
inspect.Signature: Fix discrepancy between __eq__ and __hash__.
...
Issue #20334 . Thanks to Antony Lee for bug report & initial patch.
2014-09-12 15:48:02 -04:00
Brett Cannon
f1a8df0ac9
Issue #16104 : Allow compileall to do parallel bytecode compilation.
...
Both compileall.compile_dir() and the CLI for compileall now allow for
specifying how many workers to use (or 0 to use all CPUs).
Thanks to Claudiu Popa for the patch.
2014-09-12 10:39:48 -04:00
Vinay Sajip
a56411e5d4
Closes #22386 : merged fix from 3.4.
2014-09-11 23:08:48 +01:00
Vinay Sajip
d1d4fbff63
Issue #22386 : fixed regression.
2014-09-11 23:06:09 +01:00
Serhiy Storchaka
a1b16bab2f
Issue #13968 : Fixed newly added recursive glob test.
...
It was failed when run with non-empty current directory.
2014-09-11 14:33:02 +03:00
Serhiy Storchaka
2c16df269a
Issue #21147 : sqlite3 now raises an exception if the request contains a null
...
character instead of truncate it. Based on patch by Victor Stinner.
2014-09-11 13:30:48 +03:00
Serhiy Storchaka
42d67af87f
Issue #21147 : sqlite3 now raises an exception if the request contains a null
...
character instead of truncate it. Based on patch by Victor Stinner.
2014-09-11 13:29:05 +03:00
Serhiy Storchaka
c2edcdd194
Issue #13968 : The glob module now supports recursive search in
...
subdirectories using the "**" pattern.
2014-09-11 12:17:37 +03:00
Serhiy Storchaka
d5fd6188e2
Issue #21951 : Fixed a crash in Tkinter on AIX when called Tcl command with
...
empty string or tuple argument.
On some platforms Tcl memory allocator returns NULL when allocating zero-sized
block of memory.
2014-09-11 10:58:02 +03:00
Serhiy Storchaka
abf68ce164
Issue #21951 : Fixed a crash in Tkinter on AIX when called Tcl command with
...
empty string or tuple argument.
On some platforms Tcl memory allocator returns NULL when allocating zero-sized
block of memory.
2014-09-11 10:57:13 +03:00
Serhiy Storchaka
dd6507eb86
Issue #22369 : Change "context manager protocol" to "context management protocol".
2014-09-10 23:45:42 +03:00
Serhiy Storchaka
148679982f
Issue #22369 : Change "context manager protocol" to "context management protocol".
2014-09-10 23:43:41 +03:00
Stefan Krah
9f69b86756
Whitespace.
2014-09-10 18:00:46 +02:00
Stefan Krah
b578f8a1ef
Issue #19232 : Speed up decimal import. Additionally, since _decimal is
...
self-contained, this change facilitates maintenance and the Python version
can be easily imported for experimentation.
2014-09-10 17:58:15 +02:00
Stefan Krah
082a9b1274
Issue #22284 : Merge 3.4
2014-09-09 19:57:59 +02:00
Stefan Krah
964feabd79
Issue #22284 : Update decimal.__all__
2014-09-09 19:56:56 +02:00
Serhiy Storchaka
38684c3663
imaplib.IMAP4 now supports the context manager protocol.
...
Original patch by Tarek Ziadé.
2014-09-09 19:07:49 +03:00
Barry Warsaw
bb1e3f1ebe
A few tweaks for issue16662 based on feedback from Robert Collins.
2014-09-08 17:29:02 -04:00
Barry Warsaw
d78742a260
- Issue #16662 : load_tests() is now unconditionally run when it is present in
...
a package's __init__.py. TestLoader.loadTestsFromModule() still accepts
use_load_tests, but it is deprecated and ignored. A new keyword-only
attribute `pattern` is added and documented. Patch given by Robert Collins,
tweaked by Barry Warsaw.
2014-09-08 14:21:37 -04:00
Benjamin Peterson
238f5aa6a5
merge 3.4 ( #22349 )
2014-09-06 17:24:35 -04:00
Benjamin Peterson
df0eb95b57
remove various dead version checks ( closes #22349 )
...
Patch from Thomas Kluyver.
2014-09-06 17:24:12 -04:00
Serhiy Storchaka
87a2803eb4
Issue #22226 : Added private function _splitdict() in the Tkinter module.
...
First letter no longer is stripped from the "status" key in
the result of Treeview.heading().
2014-09-06 22:49:07 +03:00
Serhiy Storchaka
8f0a1d0f28
Issue #22226 : Added private function _splitdict() in the Tkinter module.
...
First letter no longer is stripped from the "status" key in
the result of Treeview.heading().
2014-09-06 22:47:58 +03:00
Serhiy Storchaka
c70386ec16
Issue #22131 : Fixed a bug in handling an error occured during reading from
...
a pipe in _ipconfig_getnode().
2014-09-06 22:17:24 +03:00
Serhiy Storchaka
fa9be4f6a8
Issue #22131 : Modernized the code of the uuid module.
...
Optimized bytes and bytes_le properties of UUID and UUID constructor with
bytes_le argument.
Fixed a bug in handling an error occured during reading from a pipe in
_ipconfig_getnode().
2014-09-06 22:14:04 +03:00
Serhiy Storchaka
91453026ff
Issue #19524 : Fixed resource leak in the HTTP connection when an invalid
...
response is received. Patch by Martin Panter.
2014-09-06 21:43:49 +03:00
Serhiy Storchaka
f54c350160
Issue #19524 : Fixed resource leak in the HTTP connection when an invalid
...
response is received. Patch by Martin Panter.
2014-09-06 21:41:39 +03:00
Serhiy Storchaka
d8a1447c99
Issue #22215 : Now ValueError is raised instead of TypeError when str or bytes
...
argument contains not permitted null character or byte.
2014-09-06 20:07:17 +03:00
Serhiy Storchaka
0e395240cb
Issue #22221 : Add tests for compile() with source encoding cookie.
2014-09-05 11:01:43 +03:00
Serhiy Storchaka
607cb9cf99
Issue #22221 : Add tests for compile() with source encoding cookie.
2014-09-05 11:00:56 +03:00
Terry Jan Reedy
2ee44f7f55
Merge with 3.4
2014-09-04 21:00:52 -04:00
Terry Jan Reedy
d43ffc9aba
Issue #21933 : Make Control-Mousewhell only change font size and not also scroll.
...
Original patch by Serhiy Storchaka.
2014-09-04 20:59:41 -04:00
Antoine Pitrou
47e40429fb
Issue #20421 : Add a .version() method to SSL sockets exposing the actual protocol version in use.
2014-09-04 21:00:10 +02:00
Łukasz Langa
53c87d1be2
Merge fix for #19546 : configparser exceptions leak implementation details
2014-09-04 01:42:29 -07:00
Łukasz Langa
949053bff2
Fix #19546 : onfigparser exceptions expose implementation details. Patch by Claudiu Popa.
2014-09-04 01:36:33 -07:00
Victor Stinner
ece38d9497
Issue #22334 : Add debug traces to test_tcl
2014-09-04 09:53:16 +02:00
Victor Stinner
b39b918baa
Issue #22333 : Add debug traces to test_threaded_import
2014-09-04 09:38:38 +02:00
Terry Jan Reedy
2fd145a3e9
Merge with 3.4
2014-09-03 19:29:31 -04:00
Terry Jan Reedy
70349141ee
Issue #22051 : remove unneeded reload that allowed bad code.
2014-09-03 19:29:17 -04:00
Victor Stinner
8231d55cd4
Fix timeout in test.fork_wait
2014-09-04 01:02:17 +02:00
Victor Stinner
150b06fa19
(Merge 3.4) Issue #21440 : test_zipfile: replace last direct calls to
...
os.remove() with support.unlink()
2014-09-04 00:51:25 +02:00
Victor Stinner
88b215e20f
Issue #21440 : test_zipfile: replace last direct calls to os.remove() with
...
support.unlink()
2014-09-04 00:51:09 +02:00
Victor Stinner
57004c696a
Issue #21440 : Backport changeset 4ebf97299b18 to branch 3.4, use
...
support.rmtree() and support.unlink() in test_zipfile & test_tarfile
2014-09-04 00:49:01 +02:00
Victor Stinner
cde4517112
(Merge 3.4) Issue #20957 : test_smtpnet now uses support.transient_internet() to
...
call check_ssl_verifiy(), so only test_connect_using_sslcontext_verified() is
skipped if smtp.gmail.com cannot be joined, not the whole file.
2014-09-04 00:36:09 +02:00
Victor Stinner
19c899c1b1
Issue #20957 : test_smtpnet now uses support.transient_internet() to call
...
check_ssl_verifiy(), so only test_connect_using_sslcontext_verified() is
skipped if smtp.gmail.com cannot be joined, not the whole file.
2014-09-04 00:35:43 +02:00
Victor Stinner
e96c83bde1
(Merge 3.4) Issue #22332 : test_multiprocessing_main_handling is now skipped if
...
sem_open implementation is broken (ex: skipped on FreeBSD 6.4).
2014-09-03 23:48:37 +02:00
Victor Stinner
2bb8a08159
Issue #22332 : test_multiprocessing_main_handling is now skipped if sem_open
...
implementation is broken (ex: skipped on FreeBSD 6.4).
2014-09-03 23:48:08 +02:00
Victor Stinner
a6b6bba5ed
(Merge 3.4) Issue #22331 : Skip test_interrupted_write_text() on FreeBSD older
...
than 8.0
2014-09-03 23:33:43 +02:00
Victor Stinner
6ab728612d
Issue #22331 : Skip test_interrupted_write_text() on FreeBSD older than 8.0
2014-09-03 23:32:28 +02:00
Terry Jan Reedy
a4cc528752
Issue #21933 : Merge with 3.4
2014-09-03 16:18:34 -04:00
Terry Jan Reedy
c6a1c02cce
Issue #21933 : Users can now change the font size for example code.
...
Original patch by Lita Cho.
2014-09-03 16:17:41 -04:00
Victor Stinner
ae58649721
Issue #22043 : time.monotonic() is now always available
...
threading.Lock.acquire(), threading.RLock.acquire() and socket operations now
use a monotonic clock, instead of the system clock, when a timeout is used.
2014-09-02 23:18:25 +02:00
Berker Peksag
a42ad6bf84
Remove unused imports.
2014-09-01 12:33:12 +03:00
Berker Peksag
a7614d08bf
Issue #19447 : Suppress output of py_compile.compile().
2014-09-01 12:29:53 +03:00
Jason R. Coombs
311321edc1
#22315 : Use advertised API for OSError
2014-08-31 17:42:20 -04:00
Jason R. Coombs
d28c5f00ef
#22315 : Use an existent directory for 'src' to trigger appropriate behavior.
2014-08-31 17:51:22 -04:00
Jason R. Coombs
47f44c9309
#22315 : Provide an actual directory during test invocation.
2014-08-31 17:37:35 -04:00
Jason R. Coombs
e572ce3fb5
#22315 : Use technique outlined in test_file_util
2014-08-31 17:31:32 -04:00
Jason R. Coombs
4b02e7041c
#22315 : Add test to capture the failure.
2014-08-31 15:02:42 -04:00
Jason R. Coombs
1be2e82c57
Correct indent
2014-08-31 15:00:47 -04:00
Jason R. Coombs
b4efbe8a58
Remove unused import
2014-08-31 13:43:02 -04:00
Guido van Rossum
cfd4661e78
Closes #21527 : Add default number of workers to ThreadPoolExecutor. (Claudiu Popa.)
2014-09-02 10:39:18 -07:00
Berker Peksag
9425c05bab
Remove unused imports.
2014-09-01 12:33:41 +03:00
Berker Peksag
c85b7d3cd2
Issue #19447 : Suppress output of py_compile.compile().
2014-09-01 12:30:17 +03:00
Jason R. Coombs
71a8eed615
Merge with 3.4; Closes #22315
2014-08-31 18:02:18 -04:00
Benjamin Peterson
c49a6aa1f0
merge 3.4
2014-08-31 17:22:27 -04:00
Victor Stinner
de993bd9b6
(Merge 3.4) asyncio, Tulip issue 205: Fix a race condition in
...
BaseSelectorEventLoop.sock_connect()
There is a race condition in create_connection() used with wait_for() to have a
timeout. sock_connect() registers the file descriptor of the socket to be
notified of write event (if connect() raises BlockingIOError). When
create_connection() is cancelled with a TimeoutError, sock_connect() coroutine
gets the exception, but it doesn't unregister the file descriptor for write
event. create_connection() gets the TimeoutError and closes the socket.
If you call again create_connection(), the new socket will likely gets the same
file descriptor, which is still registered in the selector. When sock_connect()
calls add_writer(), it tries to modify the entry instead of creating a new one.
This issue was originally reported in the Trollius project, but the bug comes
from Tulip in fact (Trollius is based on Tulip):
https://bitbucket.org/enovance/trollius/issue/15/after-timeouterror-on-wait_for
This change fixes the race condition. It also makes sock_connect() more
reliable (and portable) is sock.connect() raises an InterruptedError.
2014-08-31 15:08:21 +02:00
Victor Stinner
d5aeccf976
asyncio, Tulip issue 205: Fix a race condition in BaseSelectorEventLoop.sock_connect()
...
There is a race condition in create_connection() used with wait_for() to have a
timeout. sock_connect() registers the file descriptor of the socket to be
notified of write event (if connect() raises BlockingIOError). When
create_connection() is cancelled with a TimeoutError, sock_connect() coroutine
gets the exception, but it doesn't unregister the file descriptor for write
event. create_connection() gets the TimeoutError and closes the socket.
If you call again create_connection(), the new socket will likely gets the same
file descriptor, which is still registered in the selector. When sock_connect()
calls add_writer(), it tries to modify the entry instead of creating a new one.
This issue was originally reported in the Trollius project, but the bug comes
from Tulip in fact (Trollius is based on Tulip):
https://bitbucket.org/enovance/trollius/issue/15/after-timeouterror-on-wait_for
This change fixes the race condition. It also makes sock_connect() more
reliable (and portable) is sock.connect() raises an InterruptedError.
2014-08-31 15:07:57 +02:00
R David Murray
b10be15508
Merge #22215 : have the smtplib 'quit' command reset the state.
2014-08-30 16:55:45 -04:00
R David Murray
0cff49fcf9
#22215 : have the smtplib 'quit' command reset the state.
...
Without this reset, starttls would fail if a connect/starttls was done after a
quit, because smtplib assumed the existing value of emspt_features was
accurate, but it gets reset when starttls completes (and the new value does
not contain the starttls capability, since tls is already started at that
point). (There may be additional places where this lack of reset was an
issue as well.)
Patch by Milan Oberkirch.
2014-08-30 16:51:59 -04:00
Antoine Pitrou
5ce8f35931
Issue #22098 : ctypes' BigEndianStructure and LittleEndianStructure now define an empty __slots__ so that subclasses don't always get an instance dict.
...
Patch by Claudiu Popa.
2014-08-30 00:37:18 +02:00
Antoine Pitrou
fa9211b11d
Issue #22185 : Fix an occasional RuntimeError in threading.Condition.wait() caused by mutation of the waiters queue without holding the lock.
...
Patch by Doug Zongker.
2014-08-29 23:27:33 +02:00
Antoine Pitrou
a64b92edd3
Issue #22185 : Fix an occasional RuntimeError in threading.Condition.wait() caused by mutation of the waiters queue without holding the lock.
...
Patch by Doug Zongker.
2014-08-29 23:26:36 +02:00
Berker Peksag
0dc10e0d1c
Issue #22182 : Use e.args to unpack exceptions correctly in distutils.file_util.move_file.
...
Patch by Claudiu Popa.
2014-08-29 07:09:25 +03:00
Berker Peksag
6685883c02
Issue #22182 : Use e.args to unpack exceptions correctly in distutils.file_util.move_file.
...
Patch by Claudiu Popa.
2014-08-29 07:07:35 +03:00
Victor Stinner
e6128a4a80
(Merge 3.4) asyncio, Tulip issue 201: Fix a race condition in wait_for()
...
Don't raise a TimeoutError if we reached the timeout and the future completed
in the same iteration of the event loop. A side effect of the bug is that
Queue.get() looses items.
2014-08-28 11:19:46 +02:00
Victor Stinner
59e0802301
asyncio, Tulip issue 201: Fix a race condition in wait_for()
...
Don't raise a TimeoutError if we reached the timeout and the future completed
in the same iteration of the event loop. A side effect of the bug is that
Queue.get() looses items.
2014-08-28 11:19:25 +02:00
Gregory P. Smith
a232613679
The webbrowser module now uses subprocess's start_new_session=True rather
...
than a potentially risky preexec_fn=os.setsid call.
2014-08-27 09:41:05 -07:00
Gregory P. Smith
feac3980ce
The webbrowser module now uses subprocess's start_new_session=True rather
...
than a potentially risky preexec_fn=os.setsid call.
2014-08-27 09:34:38 -07:00
Victor Stinner
7cea44d3cf
Issue #22042 : Fix test_signal on Windows
2014-08-27 14:02:36 +02:00
Victor Stinner
3822760f2d
Issue #22042 : signal.set_wakeup_fd(fd) now raises an exception if the file
...
descriptor is in blocking mode.
2014-08-27 12:59:44 +02:00
Terry Jan Reedy
86cc17e69e
Merge with 3.4
2014-08-27 01:58:57 -04:00
Terry Jan Reedy
2ced87f3e6
Issue #22065 : Remove the now unsed configGUI menu parameter and arguments.
2014-08-27 01:58:40 -04:00
Terry Jan Reedy
dfb110d8a3
Merge with 3.4
2014-08-27 01:44:13 -04:00
Terry Jan Reedy
8450c53315
Issue #22065 : Menus, unlike Menubottons, do not have a state option.
...
Since a new demo can now be loaded while one is running,
adjust loadfile to do the same cleanup as stopIt.
2014-08-27 01:43:50 -04:00
Stefan Krah
fc452518e6
Merge 3.4.
2014-08-26 21:32:26 +02:00
Stefan Krah
cf26115651
Introduce and check for MPD_VERSION_HEX for precise management of builds
...
with an external libmpdec.
2014-08-26 21:31:47 +02:00
Stefan Krah
9ea83cff47
Merge 3.4.
2014-08-26 20:47:32 +02:00
Stefan Krah
298131a448
Issue #22090 : Fix '%' formatting for infinities and NaNs.
2014-08-26 20:46:49 +02:00
Victor Stinner
54c69c2fe3
(Merge 3.4) asyncio, tulip issue 203: Add _FlowControlMixin.get_write_buffer_limits()
...
method
2014-08-26 00:23:23 +02:00
Victor Stinner
52bb949fd3
asyncio, tulip issue 203: Add _FlowControlMixin.get_write_buffer_limits() method
2014-08-26 00:22:28 +02:00
Victor Stinner
83b9ea4942
(Merge 3.4) asyncio: sync with Tulip
...
* PipeServer.close() now cancels the "accept pipe" future which cancels the
overlapped operation.
* Fix _SelectorTransport.__repr__() if the transport was closed
* Fix debug log in BaseEventLoop.create_connection(): get the socket object
from the transport because SSL transport closes the old socket and creates a
new SSL socket object. Remove also the _SelectorSslTransport._rawsock
attribute: it contained the closed socket (not very useful) and it was not
used.
* Issue #22063 : socket operations (sock_recv, sock_sendall, sock_connect,
sock_accept) of the proactor event loop don't raise an exception in debug
mode if the socket are in blocking mode. Overlapped operations also work on
blocking sockets.
* Fix unit tests in debug mode: mock a non-blocking socket for socket
operations which now raise an exception if the socket is blocking.
* _fatal_error() method of _UnixReadPipeTransport and _UnixWritePipeTransport
now log all exceptions in debug mode
* Don't log expected errors in unit tests
* Tulip issue 200: _WaitHandleFuture._unregister_wait() now catchs and logs
exceptions.
* Tulip issue 200: Log errors in debug mode instead of simply ignoring them.
2014-08-25 23:22:54 +02:00
Victor Stinner
b261475a48
asyncio: sync with Tulip
...
* PipeServer.close() now cancels the "accept pipe" future which cancels the
overlapped operation.
* Fix _SelectorTransport.__repr__() if the transport was closed
* Fix debug log in BaseEventLoop.create_connection(): get the socket object
from the transport because SSL transport closes the old socket and creates a
new SSL socket object. Remove also the _SelectorSslTransport._rawsock
attribute: it contained the closed socket (not very useful) and it was not
used.
* Issue #22063 : socket operations (sock_recv, sock_sendall, sock_connect,
sock_accept) of the proactor event loop don't raise an exception in debug
mode if the socket are in blocking mode. Overlapped operations also work on
blocking sockets.
* Fix unit tests in debug mode: mock a non-blocking socket for socket
operations which now raise an exception if the socket is blocking.
* _fatal_error() method of _UnixReadPipeTransport and _UnixWritePipeTransport
now log all exceptions in debug mode
* Don't log expected errors in unit tests
* Tulip issue 200: _WaitHandleFuture._unregister_wait() now catchs and logs
exceptions.
* Tulip issue 200: Log errors in debug mode instead of simply ignoring them.
2014-08-25 23:20:52 +02:00