]> granicus.if.org Git - python/log
python
10 years ago(Merge 3.4) Issue #22338: Fix a crash in the json module on memory allocation
Victor Stinner [Wed, 10 Sep 2014 21:32:36 +0000 (23:32 +0200)]
(Merge 3.4) Issue #22338: Fix a crash in the json module on memory allocation
failure.

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 agomerge 3.4 (#22380)
Benjamin Peterson [Wed, 10 Sep 2014 21:13:36 +0000 (17:13 -0400)]
merge 3.4 (#22380)

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:45:42 +0000 (23:45 +0300)]
Issue #22369: Change "context manager protocol" to "context management protocol".

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 agoWhitespace.
Stefan Krah [Wed, 10 Sep 2014 16:00:46 +0000 (18:00 +0200)]
Whitespace.

10 years agoIssue #19232: Speed up decimal import. Additionally, since _decimal is
Stefan Krah [Wed, 10 Sep 2014 15:58:15 +0000 (17:58 +0200)]
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.

10 years agoIssue #22284: Merge 3.4
Stefan Krah [Tue, 9 Sep 2014 17:57:59 +0000 (19:57 +0200)]
Issue #22284: Merge 3.4

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 agoimaplib.IMAP4 now supports the context manager protocol.
Serhiy Storchaka [Tue, 9 Sep 2014 16:07:49 +0000 (19:07 +0300)]
imaplib.IMAP4 now supports the context manager protocol.
Original patch by Tarek Ziadé.

10 years agoA few tweaks for issue16662 based on feedback from Robert Collins.
Barry Warsaw [Mon, 8 Sep 2014 21:29:02 +0000 (17:29 -0400)]
A few tweaks for issue16662 based on feedback from Robert Collins.

10 years ago- Issue #16662: load_tests() is now unconditionally run when it is present in
Barry Warsaw [Mon, 8 Sep 2014 18:21:37 +0000 (14:21 -0400)]
- 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.

10 years agomerge 3.4 (#22349)
Benjamin Peterson [Sat, 6 Sep 2014 21:24:35 +0000 (17:24 -0400)]
merge 3.4 (#22349)

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:49:07 +0000 (22:49 +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 #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 agoNull merge
Serhiy Storchaka [Sat, 6 Sep 2014 19:18:35 +0000 (22:18 +0300)]
Null merge

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 #22131: Modernized the code of the uuid module.
Serhiy Storchaka [Sat, 6 Sep 2014 19:14:04 +0000 (22:14 +0300)]
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().

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

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 #22215: Now ValueError is raised instead of TypeError when str or bytes
Serhiy Storchaka [Sat, 6 Sep 2014 17:07:17 +0000 (20:07 +0300)]
Issue #22215: Now ValueError is raised instead of TypeError when str or bytes
argument contains not permitted null character or byte.

10 years agoMerge issue #22295 fix from 3.4
Nick Coghlan [Sat, 6 Sep 2014 10:40:00 +0000 (20:40 +1000)]
Merge issue #22295 fix from 3.4

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 agoNull merge from 3.4 backport
Nick Coghlan [Sat, 6 Sep 2014 09:44:41 +0000 (19:44 +1000)]
Null merge from 3.4 backport

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 agoAdd PEP-411-compliant note about asyncio being provisional. Fixes issue #22346.
Guido van Rossum [Sat, 6 Sep 2014 02:28:40 +0000 (19:28 -0700)]
Add PEP-411-compliant note about asyncio being provisional. Fixes issue #22346.

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

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:28:19 +0000 (23:28 +0300)]
Issue #20643: Removed unneeded (and wrong) class directives.

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:01:43 +0000 (11:01 +0300)]
Issue #22221: Add tests for compile() with source encoding cookie.

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 agoSilenced some warnings about comparison between signed and unsigned integer
Serhiy Storchaka [Fri, 5 Sep 2014 07:10:23 +0000 (10:10 +0300)]
Silenced some warnings about comparison between signed and unsigned integer
expressions.

10 years agoMerge with 3.4
Terry Jan Reedy [Fri, 5 Sep 2014 01:00:52 +0000 (21:00 -0400)]
Merge with 3.4

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 agoIssue #22290: PyObject_Call() now fails with an assertion error when called
Victor Stinner [Thu, 4 Sep 2014 23:10:29 +0000 (01:10 +0200)]
Issue #22290: PyObject_Call() now fails with an assertion error when called
with an exception set. This new assertion helps to understand if the exception
was already set before calling the function or raised by the function.

10 years agoIssue #20421: Add a .version() method to SSL sockets exposing the actual protocol...
Antoine Pitrou [Thu, 4 Sep 2014 19:00:10 +0000 (21:00 +0200)]
Issue #20421: Add a .version() method to SSL sockets exposing the actual protocol version in use.

10 years agoIssue #21951: Fix AsObj() of the _tkinter module: raise MemoryError on memory
Victor Stinner [Thu, 4 Sep 2014 15:29:52 +0000 (17:29 +0200)]
Issue #21951: Fix AsObj() of the _tkinter module: raise MemoryError on memory
allocation failure

10 years agoMerge fix for #19546: configparser exceptions leak implementation details
Łukasz Langa [Thu, 4 Sep 2014 08:42:29 +0000 (01:42 -0700)]
Merge fix for #19546: configparser exceptions leak implementation details

10 years agoFix #19546: onfigparser exceptions expose implementation details. Patch by Claudiu...
Łukasz Langa [Thu, 4 Sep 2014 08:36:33 +0000 (01:36 -0700)]
Fix #19546: onfigparser exceptions expose implementation details.  Patch by Claudiu Popa.

10 years agoIssue #22334: Add debug traces to test_tcl
Victor Stinner [Thu, 4 Sep 2014 07:53:16 +0000 (09:53 +0200)]
Issue #22334: Add debug traces to test_tcl

10 years agoIssue #22333: Add debug traces to test_threaded_import
Victor Stinner [Thu, 4 Sep 2014 07:38:38 +0000 (09:38 +0200)]
Issue #22333: Add debug traces to test_threaded_import

10 years agoIssue #22258: Fix typo in Misc/NEWS
Victor Stinner [Thu, 4 Sep 2014 07:29:39 +0000 (09:29 +0200)]
Issue #22258: Fix typo in Misc/NEWS

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

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 agomerge with 3.4
Terry Jan Reedy [Wed, 3 Sep 2014 23:43:12 +0000 (19:43 -0400)]
merge with 3.4

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 agoMerge with 3.4
Terry Jan Reedy [Wed, 3 Sep 2014 23:29:31 +0000 (19:29 -0400)]
Merge with 3.4

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 agoFix timeout in test.fork_wait
Victor Stinner [Wed, 3 Sep 2014 23:02:17 +0000 (01:02 +0200)]
Fix timeout in test.fork_wait

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

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 ago(Merge 3.4) Issue #20957: test_smtpnet now uses support.transient_internet() to
Victor Stinner [Wed, 3 Sep 2014 22:36:09 +0000 (00:36 +0200)]
(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.

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 ago(Merge 3.4) Issue #22332: test_multiprocessing_main_handling is now skipped if
Victor Stinner [Wed, 3 Sep 2014 21:48:37 +0000 (23:48 +0200)]
(Merge 3.4) Issue #22332: test_multiprocessing_main_handling is now skipped if
sem_open implementation is broken (ex: skipped on FreeBSD 6.4).

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 ago(Merge 3.4) Issue #22331: Skip test_interrupted_write_text() on FreeBSD older
Victor Stinner [Wed, 3 Sep 2014 21:33:43 +0000 (23:33 +0200)]
(Merge 3.4) Issue #22331: Skip test_interrupted_write_text() on FreeBSD older
than 8.0

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: Merge with 3.4
Terry Jan Reedy [Wed, 3 Sep 2014 20:18:34 +0000 (16:18 -0400)]
Issue #21933: Merge with 3.4

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 agoIssue #22043: Fix pymonotonic(), use tv_usec=-1 as a marker to skip
Victor Stinner [Wed, 3 Sep 2014 07:43:48 +0000 (09:43 +0200)]
Issue #22043: Fix pymonotonic(), use tv_usec=-1 as a marker to skip
the monotonic test

10 years agoIssue #22043: time.monotonic() is now always available
Victor Stinner [Tue, 2 Sep 2014 21:18:25 +0000 (23:18 +0200)]
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.

10 years agoIssue #22043: Fix _PyTime_gettimeofday() if HAVE_GETTIMEOFDAY
Victor Stinner [Tue, 2 Sep 2014 21:01:40 +0000 (23:01 +0200)]
Issue #22043: Fix _PyTime_gettimeofday() if HAVE_GETTIMEOFDAY

Ensure also that the tv_usec field is consistent: in range [0; 999999].

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 agopytime.h: remove duplicated "#ifndef Py_LIMITED_API"
Victor Stinner [Sun, 31 Aug 2014 13:48:55 +0000 (15:48 +0200)]
pytime.h: remove duplicated "#ifndef Py_LIMITED_API"

10 years agoCloses #21527: Add default number of workers to ThreadPoolExecutor. (Claudiu Popa.)
Guido van Rossum [Tue, 2 Sep 2014 17:39:18 +0000 (10:39 -0700)]
Closes #21527: Add default number of workers to ThreadPoolExecutor. (Claudiu Popa.)

10 years ago(Merge 3.4) Closes #22258: Fix the the internal function set_inheritable() on
Victor Stinner [Tue, 2 Sep 2014 09:49:48 +0000 (11:49 +0200)]
(Merge 3.4) 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 agosigma actually works in latex...
Benjamin Peterson [Mon, 1 Sep 2014 22:26:22 +0000 (18:26 -0400)]
sigma actually works in latex...

10 years agotry to pick a unicode char that latex understands
Benjamin Peterson [Mon, 1 Sep 2014 22:04:02 +0000 (18:04 -0400)]
try to pick a unicode char that latex understands

10 years agoa more universal unicode char example
Benjamin Peterson [Mon, 1 Sep 2014 21:59:18 +0000 (17:59 -0400)]
a more universal unicode char example

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

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

10 years agoIssue #22320: merge from 3.4
Ned Deily [Mon, 1 Sep 2014 07:08:00 +0000 (00:08 -0700)]
Issue #22320: merge from 3.4

10 years agoMerge with 3.4; Closes #22315
Jason R. Coombs [Sun, 31 Aug 2014 22:02:18 +0000 (18:02 -0400)]
Merge with 3.4; Closes #22315

10 years agomerge 3.4
Benjamin Peterson [Sun, 31 Aug 2014 21:22:27 +0000 (17:22 -0400)]
merge 3.4

10 years ago(Merge 3.4) asyncio, Tulip issue 205: Fix a race condition in
Victor Stinner [Sun, 31 Aug 2014 13:08:21 +0000 (15:08 +0200)]
(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.

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 ago(Merge 3.4) Closes #22275: asyncio: enhance documentation of OS support
Victor Stinner [Sun, 31 Aug 2014 12:47:56 +0000 (14:47 +0200)]
(Merge 3.4) Closes #22275: asyncio: enhance documentation of OS support

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 agomerge 3.4 (closes #22307)
Benjamin Peterson [Sun, 31 Aug 2014 01:06:00 +0000 (21:06 -0400)]
merge 3.4 (closes #22307)

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

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 #22098: ctypes' BigEndianStructure and LittleEndianStructure now define an...
Antoine Pitrou [Fri, 29 Aug 2014 22:37:18 +0000 (00:37 +0200)]
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.

10 years agoIssue #22185: Fix an occasional RuntimeError in threading.Condition.wait() caused...
Antoine Pitrou [Fri, 29 Aug 2014 21:27:33 +0000 (23:27 +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 #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 #22043: Oops, fix perf_counter() on UNIX if no monotonic clock is
Victor Stinner [Fri, 29 Aug 2014 15:00:17 +0000 (17:00 +0200)]
Issue #22043: Oops, fix perf_counter() on UNIX if no monotonic clock is
available (unlikely)