]> granicus.if.org Git - python/log
python
10 years agoCloses #21431: make docs depend on Sphinx 1.2 and fix pydoc-topics builder to
Georg Brandl [Mon, 22 Sep 2014 19:18:24 +0000 (21:18 +0200)]
Closes #21431: make docs depend on Sphinx 1.2 and fix pydoc-topics builder to
return Unicode strings on Python 3.

10 years agoMerge.
Larry Hastings [Mon, 22 Sep 2014 14:21:08 +0000 (15:21 +0100)]
Merge.

10 years agoPost-release engineering work for 3.4.2rc1.
Larry Hastings [Mon, 22 Sep 2014 14:19:30 +0000 (15:19 +0100)]
Post-release engineering work for 3.4.2rc1.

10 years agoTypo: headeronly -> headersonly
Jesus Cea [Sun, 21 Sep 2014 22:43:39 +0000 (00:43 +0200)]
Typo: headeronly -> headersonly

10 years agoFixed issue #22415 number in Misc/NEWS for changeset e99a1df8db36.
Serhiy Storchaka [Sun, 21 Sep 2014 19:58:31 +0000 (22:58 +0300)]
Fixed issue #22415 number in Misc/NEWS for changeset e99a1df8db36.

10 years agoIssue #22423: Fixed debugging output of the GROUPREF_EXISTS opcode in the re
Serhiy Storchaka [Sun, 21 Sep 2014 19:47:55 +0000 (22:47 +0300)]
Issue #22423: Fixed debugging output of the GROUPREF_EXISTS opcode in the re
module.

10 years agoMerge heads
Serhiy Storchaka [Sun, 21 Sep 2014 19:25:25 +0000 (22:25 +0300)]
Merge heads

10 years agoIssue #21332: Ensure that ``bufsize=1`` in subprocess.Popen() selects line buffering...
Antoine Pitrou [Sun, 21 Sep 2014 19:10:56 +0000 (21:10 +0200)]
Issue #21332: Ensure that ``bufsize=1`` in subprocess.Popen() selects line buffering, rather than block buffering.

10 years agoIssue #22423: Unhandled exception in thread no longer causes unhandled
Serhiy Storchaka [Sun, 21 Sep 2014 19:08:13 +0000 (22:08 +0300)]
Issue #22423: Unhandled exception in thread no longer causes unhandled
AttributeError when sys.stderr is None.

10 years agoAdded tag v3.4.2rc1 for changeset 8711a0951384
Larry Hastings [Sat, 20 Sep 2014 23:10:20 +0000 (00:10 +0100)]
Added tag v3.4.2rc1 for changeset 8711a0951384

10 years agoBump version number for 3.4.2rc1 release. v3.4.2rc1
Larry Hastings [Sat, 20 Sep 2014 23:09:56 +0000 (00:09 +0100)]
Bump version number for 3.4.2rc1 release.

10 years agoUpdated pydoc topics for 3.4.1rc1 release.
Larry Hastings [Sat, 20 Sep 2014 23:05:05 +0000 (00:05 +0100)]
Updated pydoc topics for 3.4.1rc1 release.

10 years agoDoc: remove invalid uses of ":option:" which will emit warnings in Sphinx 1.3.
Georg Brandl [Sat, 20 Sep 2014 22:35:08 +0000 (00:35 +0200)]
Doc: remove invalid uses of ":option:" which will emit warnings in Sphinx 1.3.

10 years ago#21091: make is_attachment a method.
R David Murray [Sat, 20 Sep 2014 22:05:28 +0000 (18:05 -0400)]
#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.

10 years ago#21079: is_attachment now looks only at the value, ignoring parameters.
R David Murray [Sat, 20 Sep 2014 21:44:53 +0000 (17:44 -0400)]
#21079: is_attachment now looks only at the value, ignoring parameters.

10 years agouse patch context manager instead of decorator because the decorator 'leaks' metadata...
Benjamin Peterson [Sat, 20 Sep 2014 15:53:12 +0000 (11:53 -0400)]
use patch context manager instead of decorator because the decorator 'leaks' metadata onto the function

10 years agoIssue #22247: Add NNTPError to nntplib.__all__.
Berker Peksag [Sat, 20 Sep 2014 05:53:05 +0000 (08:53 +0300)]
Issue #22247: Add NNTPError to nntplib.__all__.

10 years agoIssue #15661: Update OS X installer welcome and readme files for 3.4.2.
Ned Deily [Sat, 20 Sep 2014 04:03:45 +0000 (21:03 -0700)]
Issue #15661: Update OS X installer welcome and readme files for 3.4.2.
python.org OS X installers are now distributed as signed installer
packages compatible with the Gatekeeper security feature.

10 years agoUpdate Idle's online doc url.
Terry Jan Reedy [Sat, 20 Sep 2014 02:54:15 +0000 (22:54 -0400)]
Update Idle's online doc url.

10 years agoIssue #22420: Avoid 'write to None' crashes by using print instead.
Terry Jan Reedy [Sat, 20 Sep 2014 02:38:41 +0000 (22:38 -0400)]
Issue #22420: Avoid 'write to None' crashes by using print instead.
Change a couple of existing prints.  Original patch by Serhiy Storchaka.

10 years agostandardize pep 466 relnote style
Benjamin Peterson [Fri, 19 Sep 2014 21:27:03 +0000 (17:27 -0400)]
standardize pep 466 relnote style

10 years agoremove extra letter
Benjamin Peterson [Fri, 19 Sep 2014 21:29:08 +0000 (17:29 -0400)]
remove extra letter

10 years agowhatsnew for pep 466 ssl backport
Benjamin Peterson [Fri, 19 Sep 2014 21:23:21 +0000 (17:23 -0400)]
whatsnew for pep 466 ssl backport

10 years agoIssue #22436: Improved documentation for getEffectiveLevel() and getLevelName().
Vinay Sajip [Thu, 18 Sep 2014 17:01:12 +0000 (18:01 +0100)]
Issue #22436: Improved documentation for getEffectiveLevel() and getLevelName().

10 years agoIssue #16827: Make Interpreter introduction section of the tutorial more
Senthil Kumaran [Thu, 18 Sep 2014 13:30:28 +0000 (21:30 +0800)]
Issue #16827: Make Interpreter introduction section of the tutorial more
focussed and move advanced section and customization information to a separate
file called appendix.

Patch credits: Jamayla Wiley, Ya-Ting Huang and James Brewer.

10 years agoIssue #14824: Update Repr.repr_TYPE documentation to use correct name mangling implem...
Berker Peksag [Thu, 18 Sep 2014 03:05:14 +0000 (06:05 +0300)]
Issue #14824: Update Repr.repr_TYPE documentation to use correct name mangling implementation.

Patch by Chris Rebert.

10 years agoIssue #4180: The warnings registries are now reset when the filters are modified.
Antoine Pitrou [Thu, 18 Sep 2014 00:40:46 +0000 (02:40 +0200)]
Issue #4180: The warnings registries are now reset when the filters are modified.

10 years agoasyncio, Tulip issue 206: In debug mode, keep the callback in the
Victor Stinner [Wed, 17 Sep 2014 21:24:13 +0000 (23:24 +0200)]
asyncio, Tulip issue 206: In debug mode, keep the callback in the
representation of Handle and TimerHandle after cancel().

10 years agoMerge from 3.3
Senthil Kumaran [Wed, 17 Sep 2014 08:31:47 +0000 (16:31 +0800)]
Merge from 3.3

Issue #22419: Limit the length of incoming HTTP request in wsgiref server to 65536 bytes.

10 years agoIssue #22419: Limit the length of incoming HTTP request in wsgiref server to 65536...
Senthil Kumaran [Wed, 17 Sep 2014 08:29:29 +0000 (16:29 +0800)]
Issue #22419: Limit the length of incoming HTTP request in wsgiref server to 65536 bytes.

10 years agoMerge from 3.3
Senthil Kumaran [Wed, 17 Sep 2014 05:19:01 +0000 (13:19 +0800)]
Merge from 3.3

Issue #22421 - Secure pydoc server run. Bind it to localhost instead of all interfaces.

10 years agoIssue #22421 - Secure pydoc server run. Bind it to localhost instead of all interfaces.
Senthil Kumaran [Wed, 17 Sep 2014 05:17:58 +0000 (13:17 +0800)]
Issue #22421 - Secure pydoc server run. Bind it to localhost instead of all interfaces.

10 years agoIssue21738: clarify usage of __new__ in Enum subclasses
Ethan Furman [Wed, 17 Sep 2014 02:13:31 +0000 (19:13 -0700)]
Issue21738: clarify usage of __new__ in Enum subclasses

10 years agoconsistently use _name_ and _value_; patch from Kiss Gyorgy
Ethan Furman [Wed, 17 Sep 2014 00:31:23 +0000 (17:31 -0700)]
consistently use _name_ and _value_; patch from Kiss Gyorgy

10 years agoReplace bad ftp URLs in test_urllib2net
Antoine Pitrou [Tue, 16 Sep 2014 22:39:21 +0000 (00:39 +0200)]
Replace bad ftp URLs in test_urllib2net

10 years agoLax cookie parsing in http.cookies could be a security issue when combined
Antoine Pitrou [Tue, 16 Sep 2014 22:25:57 +0000 (00:25 +0200)]
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.

10 years agoLax cookie parsing in http.cookies could be a security issue when combined
Antoine Pitrou [Tue, 16 Sep 2014 22:23:55 +0000 (00:23 +0200)]
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.

10 years agoIssue #22166: clear codec caches in test_codecs
Nick Coghlan [Mon, 15 Sep 2014 11:50:44 +0000 (23:50 +1200)]
Issue #22166: clear codec caches in test_codecs

10 years agoRestored re pickling test.
Serhiy Storchaka [Mon, 15 Sep 2014 08:33:19 +0000 (11:33 +0300)]
Restored re pickling test.

10 years agoIssue #17095: Temporarily revert getpath.c change that added the Modules
Ned Deily [Mon, 15 Sep 2014 02:19:49 +0000 (19:19 -0700)]
Issue #17095: Temporarily revert getpath.c change that added the Modules
directory to sys.path when running from a build directory.  That has
proven to be problematic for several standard library modules with
C extension modules whose builds can fail on some platforms.

10 years agoIssue #22384: An exception in Tkinter callback no longer crashes the program
Serhiy Storchaka [Sun, 14 Sep 2014 18:17:32 +0000 (21:17 +0300)]
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.

10 years agoUse more appropriate asserts in re tests.
Serhiy Storchaka [Sun, 14 Sep 2014 13:20:20 +0000 (16:20 +0300)]
Use more appropriate asserts in re tests.

10 years agoFixed re tests incorrectly ported from 2.x to 3.x.
Serhiy Storchaka [Sun, 14 Sep 2014 12:56:27 +0000 (15:56 +0300)]
Fixed re tests incorrectly ported from 2.x to 3.x.

10 years agoIssue #22168: Prevent turtle AttributeError with non-default Canvas on OS X.
Ned Deily [Sun, 14 Sep 2014 06:39:16 +0000 (23:39 -0700)]
Issue #22168: Prevent turtle AttributeError with non-default Canvas on OS X.

10 years agomake hg link secure
Benjamin Peterson [Sat, 13 Sep 2014 05:44:34 +0000 (01:44 -0400)]
make hg link secure

10 years agoIssue #22386: fixed regression.
Vinay Sajip [Thu, 11 Sep 2014 22:06:09 +0000 (23:06 +0100)]
Issue #22386: fixed regression.

10 years agoIssue #21147: sqlite3 now raises an exception if the request contains a null
Serhiy Storchaka [Thu, 11 Sep 2014 10:29:05 +0000 (13:29 +0300)]
Issue #21147: sqlite3 now raises an exception if the request contains a null
character instead of truncate it.  Based on patch by Victor Stinner.

10 years agoIssue #21951: Fixed a crash in Tkinter on AIX when called Tcl command with
Serhiy Storchaka [Thu, 11 Sep 2014 07:57:13 +0000 (10:57 +0300)]
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.

10 years agoIssue #21951: Use attemptckalloc() instead of ckalloc() in Tkinter.
Serhiy Storchaka [Thu, 11 Sep 2014 07:38:54 +0000 (10:38 +0300)]
Issue #21951: Use attemptckalloc() instead of ckalloc() in Tkinter.

ckalloc() causes the Tcl interpreter to panic, attemptckalloc() returns NULL
if the memory allocation fails.

10 years agoIssue #22338: Fix a crash in the json module on memory allocation failure.
Victor Stinner [Wed, 10 Sep 2014 21:31:42 +0000 (23:31 +0200)]
Issue #22338: Fix a crash in the json module on memory allocation failure.

10 years agoy2k compliance, lol (closes #22380)
Benjamin Peterson [Wed, 10 Sep 2014 21:13:06 +0000 (17:13 -0400)]
y2k compliance, lol (closes #22380)

10 years agoIssue #22369: Change "context manager protocol" to "context management protocol".
Serhiy Storchaka [Wed, 10 Sep 2014 20:43:41 +0000 (23:43 +0300)]
Issue #22369: Change "context manager protocol" to "context management protocol".

10 years agoIssue #22284: Update decimal.__all__
Stefan Krah [Tue, 9 Sep 2014 17:56:56 +0000 (19:56 +0200)]
Issue #22284: Update decimal.__all__

10 years agoremove various dead version checks (closes #22349)
Benjamin Peterson [Sat, 6 Sep 2014 21:24:12 +0000 (17:24 -0400)]
remove various dead version checks (closes #22349)

Patch from Thomas Kluyver.

10 years agoIssue #22226: Added private function _splitdict() in the Tkinter module.
Serhiy Storchaka [Sat, 6 Sep 2014 19:47:58 +0000 (22:47 +0300)]
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().

10 years agoIssue #22131: Fixed a bug in handling an error occured during reading from
Serhiy Storchaka [Sat, 6 Sep 2014 19:17:24 +0000 (22:17 +0300)]
Issue #22131: Fixed a bug in handling an error occured during reading from
a pipe in _ipconfig_getnode().

10 years agoIssue #19524: Fixed resource leak in the HTTP connection when an invalid
Serhiy Storchaka [Sat, 6 Sep 2014 18:41:39 +0000 (21:41 +0300)]
Issue #19524: Fixed resource leak in the HTTP connection when an invalid
response is received.  Patch by Martin Panter.

10 years agoIssue #22295: Adopt 'python -m pip' as the preferred invocation
Nick Coghlan [Sat, 6 Sep 2014 10:38:23 +0000 (20:38 +1000)]
Issue #22295: Adopt 'python -m pip' as the preferred invocation

10 years agoIssue #22346: also include asyncio PEP 411 notice in 3.4
Nick Coghlan [Sat, 6 Sep 2014 09:43:06 +0000 (19:43 +1000)]
Issue #22346: also include asyncio PEP 411 notice in 3.4

10 years agoKeep Mac/build-installer.py in sync across branches (affects 2.7 only).
Ned Deily [Fri, 5 Sep 2014 22:57:05 +0000 (15:57 -0700)]
Keep Mac/build-installer.py in sync across branches (affects 2.7 only).

10 years agoIssue #20643: Removed unneeded (and wrong) class directives.
Serhiy Storchaka [Fri, 5 Sep 2014 20:27:36 +0000 (23:27 +0300)]
Issue #20643: Removed unneeded (and wrong) class directives.

10 years agoIssue #22221: Add tests for compile() with source encoding cookie.
Serhiy Storchaka [Fri, 5 Sep 2014 08:00:56 +0000 (11:00 +0300)]
Issue #22221: Add tests for compile() with source encoding cookie.

10 years agoIssue #21933: Make Control-Mousewhell only change font size and not also scroll.
Terry Jan Reedy [Fri, 5 Sep 2014 00:59:41 +0000 (20:59 -0400)]
Issue #21933: Make Control-Mousewhell only change font size and not also scroll.
Original patch by Serhiy Storchaka.

10 years agoNEWS items for Idle.
Terry Jan Reedy [Wed, 3 Sep 2014 23:52:46 +0000 (19:52 -0400)]
NEWS items for Idle.

10 years agoNEWS items for turtledemo.
Terry Jan Reedy [Wed, 3 Sep 2014 23:39:25 +0000 (19:39 -0400)]
NEWS items for turtledemo.

10 years agoIssue #22051: remove unneeded reload that allowed bad code.
Terry Jan Reedy [Wed, 3 Sep 2014 23:29:17 +0000 (19:29 -0400)]
Issue #22051: remove unneeded reload that allowed bad code.

10 years agoIssue #21440: test_zipfile: replace last direct calls to os.remove() with
Victor Stinner [Wed, 3 Sep 2014 22:51:09 +0000 (00:51 +0200)]
Issue #21440: test_zipfile: replace last direct calls to os.remove() with
support.unlink()

10 years agoIssue #21440: Backport changeset 4ebf97299b18 to branch 3.4, use
Victor Stinner [Wed, 3 Sep 2014 22:49:01 +0000 (00:49 +0200)]
Issue #21440: Backport changeset 4ebf97299b18 to branch 3.4, use
support.rmtree() and support.unlink() in test_zipfile & test_tarfile

10 years agoIssue #20957: test_smtpnet now uses support.transient_internet() to call
Victor Stinner [Wed, 3 Sep 2014 22:35:43 +0000 (00:35 +0200)]
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.

10 years agoIssue #22332: test_multiprocessing_main_handling is now skipped if sem_open
Victor Stinner [Wed, 3 Sep 2014 21:48:08 +0000 (23:48 +0200)]
Issue #22332: test_multiprocessing_main_handling is now skipped if sem_open
implementation is broken (ex: skipped on FreeBSD 6.4).

10 years agoIssue #22331: Skip test_interrupted_write_text() on FreeBSD older than 8.0
Victor Stinner [Wed, 3 Sep 2014 21:32:28 +0000 (23:32 +0200)]
Issue #22331: Skip test_interrupted_write_text() on FreeBSD older than 8.0

10 years agoIssue #21933: Users can now change the font size for example code.
Terry Jan Reedy [Wed, 3 Sep 2014 20:17:41 +0000 (16:17 -0400)]
Issue #21933: Users can now change the font size for example code.
Original patch by Lita Cho.

10 years agoCloses #22258: Fix the the internal function set_inheritable() on Illumos.
Victor Stinner [Tue, 2 Sep 2014 09:41:04 +0000 (11:41 +0200)]
Closes #22258: Fix the the internal function set_inheritable() on Illumos.
This platform exposes the function ioctl(FIOCLEX), but calling it fails with
errno is ENOTTY: "Inappropriate ioctl for device". set_inheritable() now falls
back to the slower fcntl() (F_GETFD and then F_SETFD).

10 years agoRemove unused imports.
Berker Peksag [Mon, 1 Sep 2014 09:33:12 +0000 (12:33 +0300)]
Remove unused imports.

10 years agoIssue #19447: Suppress output of py_compile.compile().
Berker Peksag [Mon, 1 Sep 2014 09:29:53 +0000 (12:29 +0300)]
Issue #19447: Suppress output of py_compile.compile().

10 years agoIssue #22320: Fix broken link in the General Python FAQ.
Ned Deily [Mon, 1 Sep 2014 07:06:18 +0000 (00:06 -0700)]
Issue #22320: Fix broken link in the General Python FAQ.
Original patch by Josh Lynn.

10 years ago#22315: Use advertised API for OSError
Jason R. Coombs [Sun, 31 Aug 2014 21:42:20 +0000 (17:42 -0400)]
#22315: Use advertised API for OSError

10 years ago#22315: Use an existent directory for 'src' to trigger appropriate behavior.
Jason R. Coombs [Sun, 31 Aug 2014 21:51:22 +0000 (17:51 -0400)]
#22315: Use an existent directory for 'src' to trigger appropriate behavior.

10 years ago#22315: Provide an actual directory during test invocation.
Jason R. Coombs [Sun, 31 Aug 2014 21:37:35 +0000 (17:37 -0400)]
#22315: Provide an actual directory during test invocation.

10 years ago#22315: Use technique outlined in test_file_util
Jason R. Coombs [Sun, 31 Aug 2014 21:31:32 +0000 (17:31 -0400)]
#22315: Use technique outlined in test_file_util

10 years ago#22315: Add test to capture the failure.
Jason R. Coombs [Sun, 31 Aug 2014 19:02:42 +0000 (15:02 -0400)]
#22315: Add test to capture the failure.

10 years agoCorrect indent
Jason R. Coombs [Sun, 31 Aug 2014 19:00:47 +0000 (15:00 -0400)]
Correct indent

10 years agoRemove unused import
Jason R. Coombs [Sun, 31 Aug 2014 17:43:02 +0000 (13:43 -0400)]
Remove unused import

10 years agoasyncio, Tulip issue 205: Fix a race condition in BaseSelectorEventLoop.sock_connect()
Victor Stinner [Sun, 31 Aug 2014 13:07:57 +0000 (15:07 +0200)]
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.

10 years agoCloses #22275: asyncio: enhance documentation of OS support
Victor Stinner [Sun, 31 Aug 2014 12:47:37 +0000 (14:47 +0200)]
Closes #22275: asyncio: enhance documentation of OS support

10 years agogetuid() returns real process id not effective (closes #22307)
Benjamin Peterson [Sun, 31 Aug 2014 01:04:15 +0000 (21:04 -0400)]
getuid() returns real process id not effective (closes #22307)

10 years ago#22215: have the smtplib 'quit' command reset the state.
R David Murray [Sat, 30 Aug 2014 20:51:59 +0000 (16:51 -0400)]
#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.

10 years agoIssue #22185: Fix an occasional RuntimeError in threading.Condition.wait() caused...
Antoine Pitrou [Fri, 29 Aug 2014 21:26:36 +0000 (23:26 +0200)]
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.

10 years agoIssue #22182: Use e.args to unpack exceptions correctly in distutils.file_util.move_file.
Berker Peksag [Fri, 29 Aug 2014 04:07:35 +0000 (07:07 +0300)]
Issue #22182: Use e.args to unpack exceptions correctly in distutils.file_util.move_file.

Patch by Claudiu Popa.

10 years agoasyncio, Tulip issue 201: Fix a race condition in wait_for()
Victor Stinner [Thu, 28 Aug 2014 09:19:25 +0000 (11:19 +0200)]
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.

10 years agoThe webbrowser module now uses subprocess's start_new_session=True rather
Gregory P. Smith [Wed, 27 Aug 2014 16:34:38 +0000 (09:34 -0700)]
The webbrowser module now uses subprocess's start_new_session=True rather
than a potentially risky preexec_fn=os.setsid call.

10 years agoIssue #22065: Remove the now unsed configGUI menu parameter and arguments.
Terry Jan Reedy [Wed, 27 Aug 2014 05:58:40 +0000 (01:58 -0400)]
Issue #22065: Remove the now unsed configGUI menu parameter and arguments.

10 years agoIssue #22065: Menus, unlike Menubottons, do not have a state option.
Terry Jan Reedy [Wed, 27 Aug 2014 05:43:50 +0000 (01:43 -0400)]
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.

10 years agoIntroduce and check for MPD_VERSION_HEX for precise management of builds
Stefan Krah [Tue, 26 Aug 2014 19:31:47 +0000 (21:31 +0200)]
Introduce and check for MPD_VERSION_HEX for precise management of builds
with an external libmpdec.

10 years agoIssue #22090: Fix '%' formatting for infinities and NaNs.
Stefan Krah [Tue, 26 Aug 2014 18:46:49 +0000 (20:46 +0200)]
Issue #22090: Fix '%' formatting for infinities and NaNs.

10 years agoIssue #22063: Fix asyncio documentation of socket and pipe operations regarding
Victor Stinner [Mon, 25 Aug 2014 23:01:59 +0000 (01:01 +0200)]
Issue #22063: Fix asyncio documentation of socket and pipe operations regarding
to non-blocking mode. The non-blocking mode does not matter when using a
ProactorEventLoop, only for SelectorEventLoop.

10 years agoasyncio, tulip issue 203: Add _FlowControlMixin.get_write_buffer_limits() method
Victor Stinner [Mon, 25 Aug 2014 22:22:28 +0000 (00:22 +0200)]
asyncio, tulip issue 203: Add _FlowControlMixin.get_write_buffer_limits() method

10 years agoasyncio: sync with Tulip
Victor Stinner [Mon, 25 Aug 2014 21:20:52 +0000 (23:20 +0200)]
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.

10 years agoasyncio: update the doc
Victor Stinner [Mon, 25 Aug 2014 15:04:12 +0000 (17:04 +0200)]
asyncio: update the doc

* dev: mention that the logging must be configured at DEBUG level
* streams: drain() has no more a strange return value, it's just
  a standard coroutine

10 years agoallow test to work on implementations not using ref-counting (closes #22265)
Benjamin Peterson [Sun, 24 Aug 2014 23:07:28 +0000 (18:07 -0500)]
allow test to work on implementations not using ref-counting (closes #22265)