]> granicus.if.org Git - python/log
python
10 years agoIssue #21714: Disallow the construction of invalid paths using Path.with_name()....
Antoine Pitrou [Mon, 7 Jul 2014 01:31:12 +0000 (21:31 -0400)]
Issue #21714: Disallow the construction of invalid paths using Path.with_name().  Original patch by Antony Lee.

10 years agoIssue #21923: Prevent AttributeError in distutils.sysconfig.customize_compiler
Ned Deily [Sun, 6 Jul 2014 23:14:33 +0000 (16:14 -0700)]
Issue #21923: Prevent AttributeError in distutils.sysconfig.customize_compiler
due to possible uninitialized _config_vars.  Original patch by Alex Gaynor.

10 years ago#20135: move FAQ about mutable default arguments to the programming FAQs page.
Ezio Melotti [Sun, 6 Jul 2014 17:53:27 +0000 (20:53 +0300)]
#20135: move FAQ about mutable default arguments to the programming FAQs page.

10 years agoCloses #21921: Fix ResourceWarning in the asyncio examples: close the event
Victor Stinner [Sat, 5 Jul 2014 13:38:59 +0000 (15:38 +0200)]
Closes #21921: Fix ResourceWarning in the asyncio examples: close the event
loop at exit. Patch written by Vajrasky Kok (I modified also the "hello world"
example using a coroutine).

10 years agoCloses #21886, #21447: Fix a race condition in asyncio when setting the result
Victor Stinner [Sat, 5 Jul 2014 13:29:41 +0000 (15:29 +0200)]
Closes #21886, #21447: Fix a race condition in asyncio when setting the result
of a Future with call_soon(). Add an helper, a private method, to set the
result only if the future was not cancelled.

10 years agoIssue #21920: Add a missing colon to the __main__ doc.
Berker Peksag [Sat, 5 Jul 2014 08:10:16 +0000 (11:10 +0300)]
Issue #21920: Add a missing colon to the __main__ doc.

Patch by Stefan Tatschner.

10 years agoIssue #21897: Fix a crash with the f_locals attribute with closure variables when...
Antoine Pitrou [Sat, 5 Jul 2014 00:24:13 +0000 (20:24 -0400)]
Issue #21897: Fix a crash with the f_locals attribute with closure variables when frame.clear() has been called.

10 years agoproperly decref the return value of close()
Benjamin Peterson [Sat, 5 Jul 2014 00:00:25 +0000 (17:00 -0700)]
properly decref the return value of close()

10 years agoIssue #21892, #21893: Partial revert of changeset 4f55e802baf0, PyErr_Format()
Victor Stinner [Fri, 4 Jul 2014 20:47:46 +0000 (22:47 +0200)]
Issue #21892, #21893: Partial revert of changeset 4f55e802baf0, PyErr_Format()
uses "%zd" for Py_ssize_t, not PY_FORMAT_SIZE_T

10 years agoAdd an index entry for exec() builtin.
Berker Peksag [Fri, 4 Jul 2014 12:06:45 +0000 (15:06 +0300)]
Add an index entry for exec() builtin.

Reported by Draic Kin on docs@.

10 years agoIssue #21151: Fixed a segfault in the winreg module.
Zachary Ware [Thu, 3 Jul 2014 15:58:06 +0000 (10:58 -0500)]
Issue #21151: Fixed a segfault in the winreg module.

When ``None`` was passed as a ``REG_BINARY`` value to SetValueEx,
PyMem_DEL was called on an uninitialized buffer.  Patch by John Ehresman.

(Also an incidental typo fix in a comment in test_winreg)

10 years agoUpdate docs about tp_richcompare
Andrew Svetlov [Thu, 3 Jul 2014 13:07:17 +0000 (16:07 +0300)]
Update docs about tp_richcompare

10 years agoFix guidance for subclassing collections.Set()
Raymond Hettinger [Wed, 2 Jul 2014 23:31:30 +0000 (00:31 +0100)]
Fix guidance for subclassing collections.Set()

10 years agoasyncio: sync with Tulip
Victor Stinner [Wed, 2 Jul 2014 22:59:00 +0000 (00:59 +0200)]
asyncio: sync with Tulip

* _UnixSubprocessTransport: fix file mode of stdin. Open stdin in write mode,
  not in read mode
* Examples: close the event loop at exit
* More reliable CoroWrapper.__del__. If the constructor is interrupted by
  KeyboardInterrupt or the coroutine objet is destroyed lately, some the
  _source_traceback attribute doesn't exist anymore.
* repr(Task): include also the future the task is waiting for

10 years agoIssue #21090: io.FileIO.readall() does not ignore I/O errors anymore. Before,
Victor Stinner [Wed, 2 Jul 2014 20:59:31 +0000 (22:59 +0200)]
Issue #21090: io.FileIO.readall() does not ignore I/O errors anymore. Before,
it ignored I/O errors if at least the first C call read() succeed.

10 years agoUse try-finally idiom in example for locks in multiprocessing
Andrew Svetlov [Wed, 2 Jul 2014 04:21:03 +0000 (07:21 +0300)]
Use try-finally idiom in example for locks in multiprocessing

10 years agoMore idlelib cleanup inspired by pyflakes.
Terry Jan Reedy [Wed, 2 Jul 2014 01:33:31 +0000 (21:33 -0400)]
More idlelib cleanup inspired by pyflakes.

10 years agoIssue #18258: Fix test discovery for test_codecmaps_*.
Zachary Ware [Wed, 2 Jul 2014 00:55:04 +0000 (19:55 -0500)]
Issue #18258: Fix test discovery for test_codecmaps_*.

10 years agoDelete a few unused names suggested by pyflakes.
Terry Jan Reedy [Tue, 1 Jul 2014 22:52:37 +0000 (18:52 -0400)]
Delete a few unused names suggested by pyflakes.

10 years agoIssue #8677: make the zlib module "ssize_t clean" for parsing parameters
Victor Stinner [Tue, 1 Jul 2014 14:48:12 +0000 (16:48 +0200)]
Issue #8677: make the zlib module "ssize_t clean" for parsing parameters

10 years agoCloses #21780: make the unicodedata module "ssize_t clean" for parsing parameters
Victor Stinner [Tue, 1 Jul 2014 14:45:52 +0000 (16:45 +0200)]
Closes #21780: make the unicodedata module "ssize_t clean" for parsing parameters

10 years agoIssue #21781: Make the ssl module "ssize_t clean" for parsing parameters.
Victor Stinner [Tue, 1 Jul 2014 14:37:17 +0000 (16:37 +0200)]
Issue #21781: Make the ssl module "ssize_t clean" for parsing parameters.
ssl.RAND_add() now supports strings longer than 2 GB.

10 years agoasyncio: Fix test_sleep_cancel(): call_later() mock has no self parameter
Victor Stinner [Tue, 1 Jul 2014 10:38:51 +0000 (12:38 +0200)]
asyncio: Fix test_sleep_cancel(): call_later() mock has no self parameter

10 years agoCloses #21892, #21893: Use PY_FORMAT_SIZE_T instead of %zi or %zu to format C
Victor Stinner [Tue, 1 Jul 2014 06:57:10 +0000 (08:57 +0200)]
Closes #21892, #21893: Use PY_FORMAT_SIZE_T instead of %zi or %zu to format C
size_t, because %zi/%u is not supported on all platforms.

10 years agoIssue #21891: remove extraneous semicolon.
Ned Deily [Tue, 1 Jul 2014 06:31:14 +0000 (23:31 -0700)]
Issue #21891: remove extraneous semicolon.

10 years agoIssue #18592: Refactor 2 SearchDialogBase.create_(option/other)_buttons methods
Terry Jan Reedy [Tue, 1 Jul 2014 03:52:20 +0000 (23:52 -0400)]
Issue #18592: Refactor 2 SearchDialogBase.create_(option/other)_buttons methods
to remove duplication and return info for tests.  Rewrite corresponding tests.
Test_create_option_buttons was not testing anything because of buggy
comparisons.  Use Python subscripting to get widget options.

10 years agoIssue #13689: Remove a dead link from howto/urllib.
Berker Peksag [Tue, 1 Jul 2014 03:02:42 +0000 (06:02 +0300)]
Issue #13689: Remove a dead link from howto/urllib.

10 years agoIssue #18592: Add unittests for SearchDialogBase. Patch by Phil Webster.
Terry Jan Reedy [Tue, 1 Jul 2014 00:00:03 +0000 (20:00 -0400)]
Issue #18592: Add unittests for SearchDialogBase. Patch by Phil Webster.

10 years agoIssue #21882: In turtle demos, remove module scope gui and sys calls by
Terry Jan Reedy [Mon, 30 Jun 2014 20:09:24 +0000 (16:09 -0400)]
Issue #21882: In turtle demos, remove module scope gui and sys calls by
either deleting or moving to the module's main function.

10 years agoIssue #21163: BaseEventLoop.run_until_complete() and test_utils.run_briefly()
Victor Stinner [Mon, 30 Jun 2014 12:51:04 +0000 (14:51 +0200)]
Issue #21163: BaseEventLoop.run_until_complete() and test_utils.run_briefly()
don't log the "destroy pending task" message anymore. The log is redundant for
run_until_complete() and useless in run_briefly().

10 years agoasyncio: sync with Tulip
Victor Stinner [Mon, 30 Jun 2014 12:39:11 +0000 (14:39 +0200)]
asyncio: sync with Tulip

- Sort imports
- Simplify/optimize iscoroutine(). Inline inspect.isgenerator(obj): replace it
  with isinstance(obj, types.GeneratorType)
- CoroWrapper: check at runtime if Python has the yield-from bug #21209.  If
  Python has the bug, check if CoroWrapper.send() was called by yield-from to
  decide if parameters must be unpacked or not.
- Fix "Task was destroyed but it is pending!" warning in
  test_task_source_traceback()

10 years agoFix typo in socket.getaddrinfo() docstring.
Berker Peksag [Mon, 30 Jun 2014 08:28:40 +0000 (11:28 +0300)]
Fix typo in socket.getaddrinfo() docstring.

Reported by Krishna Kumar Thakur on docs@.

10 years agoIssue #21811: Add Misc/NEWS entry.
Ned Deily [Mon, 30 Jun 2014 06:51:55 +0000 (23:51 -0700)]
Issue #21811: Add Misc/NEWS entry.

10 years agoIssue #14235: Use importlib.reload() in test_cmd.test_coverage.
Berker Peksag [Mon, 30 Jun 2014 01:04:52 +0000 (04:04 +0300)]
Issue #14235: Use importlib.reload() in test_cmd.test_coverage.

10 years agoIssue #21778: Clarify use of flags if PyBuffer_FillInfo() is used inside a
Stefan Krah [Sun, 29 Jun 2014 22:15:45 +0000 (00:15 +0200)]
Issue #21778:  Clarify use of flags if PyBuffer_FillInfo() is used inside a
getbufferproc().

10 years agoIssue #20753: Skip PasswordProtectedSiteTestCase when Python is built without threads.
Berker Peksag [Sun, 29 Jun 2014 12:54:56 +0000 (15:54 +0300)]
Issue #20753: Skip PasswordProtectedSiteTestCase when Python is built without threads.

10 years agoasyncio: sync with Tulip, add a new asyncio.coroutines module
Victor Stinner [Sat, 28 Jun 2014 22:46:45 +0000 (00:46 +0200)]
asyncio: sync with Tulip, add a new asyncio.coroutines module

10 years agoCloses #11279: test_posix and lack of "id -G" support - less noise required? (Solaris)
Jesus Cea [Sat, 28 Jun 2014 16:39:35 +0000 (18:39 +0200)]
Closes #11279: test_posix and lack of "id -G" support - less noise required? (Solaris)

10 years agoasyncio: Fix two "Coroutine xxx was never yielded from" messages in tests
Victor Stinner [Fri, 27 Jun 2014 23:19:11 +0000 (01:19 +0200)]
asyncio: Fix two "Coroutine xxx was never yielded from" messages in tests

10 years agoasyncio: Fix unit tests on Windows, escape filenames in regex
Victor Stinner [Fri, 27 Jun 2014 22:12:02 +0000 (00:12 +0200)]
asyncio: Fix unit tests on Windows, escape filenames in regex

10 years agoIssue #11453: asyncore: emit a ResourceWarning when an unclosed file_wrapper
Victor Stinner [Fri, 27 Jun 2014 21:52:03 +0000 (23:52 +0200)]
Issue #11453: asyncore: emit a ResourceWarning when an unclosed file_wrapper
object is destroyed. The destructor now closes the file if needed. The close()
method can now be called twice: the second call does nothing.

10 years agoCloses #21582: Cleanup test_asyncore. Patch written by diana.
Victor Stinner [Fri, 27 Jun 2014 20:44:40 +0000 (22:44 +0200)]
Closes #21582: Cleanup test_asyncore. Patch written by diana.

- Use support.captured_stderr() where appropriate
- Removes some "from test.support import xxx" import and uses support.xxx
  instead.

10 years agoFix indentation and class name in socket howto example.
Ezio Melotti [Fri, 27 Jun 2014 13:34:14 +0000 (16:34 +0300)]
Fix indentation and class name in socket howto example.

10 years agoasyncio, Tulip issue 137: In debug mode, save traceback where Future, Task and
Victor Stinner [Fri, 27 Jun 2014 11:52:20 +0000 (13:52 +0200)]
asyncio, Tulip issue 137: In debug mode, save traceback where Future, Task and
Handle objects are created. Pass the traceback to call_exception_handler() in
the 'source_traceback' key.

The traceback is truncated to hide internal calls in asyncio, show only the
traceback from user code.

Add tests for the new source_traceback, and a test for the 'Future/Task
exception was never retrieved' log.

10 years agoasyncio, Tulip issue 137: In debug mode, add the traceback where the coroutine
Victor Stinner [Fri, 27 Jun 2014 10:28:41 +0000 (12:28 +0200)]
asyncio, Tulip issue 137: In debug mode, add the traceback where the coroutine
object was created to the "coroutine ... was never yield from" log

10 years agoasyncio: Oops, restore a removed test
Victor Stinner [Fri, 27 Jun 2014 10:23:41 +0000 (12:23 +0200)]
asyncio: Oops, restore a removed test

10 years agoIssue #21875: Remove vestigial references to Classic Mac OS in os module docs.
Ned Deily [Fri, 27 Jun 2014 06:40:06 +0000 (23:40 -0700)]
Issue #21875: Remove vestigial references to Classic Mac OS in os module docs.

10 years agouse NULL not 0
Benjamin Peterson [Fri, 27 Jun 2014 06:29:13 +0000 (23:29 -0700)]
use NULL not 0

10 years agoIssue #21858: Better handling of Python exceptions in the sqlite3 module.
Victor Stinner [Thu, 26 Jun 2014 21:32:00 +0000 (23:32 +0200)]
Issue #21858: Better handling of Python exceptions in the sqlite3 module.

10 years agoIssue #21829: Fix running test_ctypes on Windows with -O or -OO
Zachary Ware [Thu, 26 Jun 2014 20:20:44 +0000 (15:20 -0500)]
Issue #21829: Fix running test_ctypes on Windows with -O or -OO

10 years ago#21476: Unwrap fp in BytesParser so the file isn't unexpectedly closed.
R David Murray [Thu, 26 Jun 2014 17:31:43 +0000 (13:31 -0400)]
#21476: Unwrap fp in BytesParser so the file isn't unexpectedly closed.

This makes the behavior match that of Parser.  Patch by Vajrasky Kok.

10 years agoIssue #19145: Remove duplicate ACKS entry
Raymond Hettinger [Thu, 26 Jun 2014 16:25:18 +0000 (09:25 -0700)]
Issue #19145:  Remove duplicate ACKS entry

10 years agoIssue #18592: For idlelib.SearchDialogBase, edit and add docstrings,
Terry Jan Reedy [Thu, 26 Jun 2014 05:40:51 +0000 (01:40 -0400)]
Issue #18592: For idlelib.SearchDialogBase, edit and add docstrings,
move two functions next to the functions that use them.

10 years agoasyncio: Handle error handler: enhance formatting of the callback
Victor Stinner [Wed, 25 Jun 2014 23:35:45 +0000 (01:35 +0200)]
asyncio: Handle error handler: enhance formatting of the callback

10 years agoIssue #21163: Fix one more "Task was destroyed but it is pending!" log in tests
Victor Stinner [Wed, 25 Jun 2014 21:57:50 +0000 (23:57 +0200)]
Issue #21163: Fix one more "Task was destroyed but it is pending!" log in tests

10 years agoasyncio: sync with Tulip
Victor Stinner [Wed, 25 Jun 2014 21:32:25 +0000 (23:32 +0200)]
asyncio: sync with Tulip

- Python issue 21163: Fix more "Task was destroyed but it is pending!" logs in
  tests
- Add test to check that run_until_complete() checks the loop of the future

10 years agoIssue #21163, asyncio: Fix some "Task was destroyed but it is pending!" logs in tests
Victor Stinner [Wed, 25 Jun 2014 21:11:21 +0000 (23:11 +0200)]
Issue #21163, asyncio: Fix some "Task was destroyed but it is pending!" logs in tests

10 years agoIssue #21811: Anticipated fixes to 3.x configure for OS X 10.10 Yosemite.
Ned Deily [Wed, 25 Jun 2014 20:44:22 +0000 (13:44 -0700)]
Issue #21811: Anticipated fixes to 3.x configure for OS X 10.10 Yosemite.

10 years agoIssue #21811: Anticipated fixes to 3.x and 2.7 for OS X 10.10 Yosemite.
Ned Deily [Wed, 25 Jun 2014 20:36:14 +0000 (13:36 -0700)]
Issue #21811: Anticipated fixes to 3.x and 2.7 for OS X 10.10 Yosemite.

10 years agoasyncio, Tulip issue 177: Rewite repr() of Future, Task, Handle and TimerHandle
Victor Stinner [Wed, 25 Jun 2014 19:41:58 +0000 (21:41 +0200)]
asyncio, Tulip issue 177: Rewite repr() of Future, Task, Handle and TimerHandle

- Uniformize repr() output to format "<Class ...>"
- On Python 3.5+, repr(Task) uses the qualified name instead of the short name
  of the coroutine

10 years agoIssue #21729: Used the "with" statement in the dbm.dumb module to ensure
Serhiy Storchaka [Wed, 25 Jun 2014 17:35:31 +0000 (20:35 +0300)]
Issue #21729: Used the "with" statement in the dbm.dumb module to ensure
files closing.  Patch by Claudiu Popa.

10 years agoMERGE: Closes #20872: dbm/gdbm/ndbm close methods are not documented
Jesus Cea [Wed, 25 Jun 2014 11:06:07 +0000 (13:06 +0200)]
MERGE: Closes #20872: dbm/gdbm/ndbm close methods are not documented

10 years agoCloses #20872: dbm/gdbm/ndbm close methods are not documented
Jesus Cea [Wed, 25 Jun 2014 11:05:31 +0000 (13:05 +0200)]
Closes #20872: dbm/gdbm/ndbm close methods are not documented

10 years agoissue20753 - robotparser tests should not rely upon external resource when not required.
Senthil Kumaran [Wed, 25 Jun 2014 09:58:15 +0000 (02:58 -0700)]
issue20753 - robotparser tests should not rely upon external resource when not required.

Specifically, it was relying a URL which gave HTTP 403 and used it to assert
it's methods, this changes undoes that and provides a local http server with
similar properties.

Patch contributed by Vajrasky Kok.

10 years agoCorrect the quopri module documentation. Mention the correct types of the
Senthil Kumaran [Wed, 25 Jun 2014 08:12:03 +0000 (01:12 -0700)]
Correct the quopri module documentation. Mention the correct types of the
parameters on encodestring and decodestring.

Patch by Petri Lehtinen.

10 years agoFixed typo in documentation.
Vinay Sajip [Wed, 25 Jun 2014 06:30:46 +0000 (07:30 +0100)]
Fixed typo in documentation.

10 years agoIssue #19145: Fix handling of negative values for a "times" keyword argument to...
Raymond Hettinger [Wed, 25 Jun 2014 04:36:58 +0000 (21:36 -0700)]
Issue #19145:  Fix handling of negative values for a "times" keyword argument to itertools.repeat()>

(Patch contributed by Vajrasky Kok.)

10 years agoMERGE: Closes #21441: Reorder elements in documentation to match actual order in...
Jesus Cea [Wed, 25 Jun 2014 03:38:06 +0000 (05:38 +0200)]
MERGE: Closes #21441: Reorder elements in documentation to match actual order in the code

10 years agoCloses #21441: Reorder elements in documentation to match actual order in the code
Jesus Cea [Wed, 25 Jun 2014 03:37:17 +0000 (05:37 +0200)]
Closes #21441: Reorder elements in documentation to match actual order in the code

10 years agoIssue #14117: Inprove help text and docstrings, some for clarity, some just to
Terry Jan Reedy [Wed, 25 Jun 2014 02:21:41 +0000 (22:21 -0400)]
Issue #14117: Inprove help text and docstrings, some for clarity, some just to
fit in the default width of the text window (45 chars).

10 years agoAdd news entry for #21832
Raymond Hettinger [Wed, 25 Jun 2014 01:11:48 +0000 (18:11 -0700)]
Add news entry for #21832

10 years agomerge
Raymond Hettinger [Wed, 25 Jun 2014 01:07:14 +0000 (18:07 -0700)]
merge

10 years agoIssue 21832: Require named tuple inputs to be exact strings
Raymond Hettinger [Tue, 24 Jun 2014 22:20:55 +0000 (15:20 -0700)]
Issue 21832:  Require named tuple inputs to be exact strings

10 years agoasyncio: repr(Task) now also contains the line number even if the coroutine is
Victor Stinner [Tue, 24 Jun 2014 20:57:14 +0000 (22:57 +0200)]
asyncio: repr(Task) now also contains the line number even if the coroutine is
done: use the first line number of the code object instead of the current line
number of the generator frame.

The name of the coroutine is not enough because many coroutines may have the
same name. It's a common case in asyncio tests for example.

10 years agomerge
Raymond Hettinger [Tue, 24 Jun 2014 20:51:42 +0000 (13:51 -0700)]
merge

10 years agoIssue 21832: Require named tuple inputs to be exact strings
Raymond Hettinger [Tue, 24 Jun 2014 20:44:03 +0000 (13:44 -0700)]
Issue 21832:  Require named tuple inputs to be exact strings

10 years ago#20155: use fake HTTP method names so windows doesn't hang the tests.
R David Murray [Tue, 24 Jun 2014 20:39:49 +0000 (16:39 -0400)]
#20155: use fake HTTP method names so windows doesn't hang the tests.

Windows was seeing the 'GET' generated by these tests as invalid and forcibly
closing the socket, causing the test to fail.

Patch by Jeff Allen.

10 years agoasyncio: Log an error if a Task is destroyed while it is still pending
Victor Stinner [Tue, 24 Jun 2014 20:37:53 +0000 (22:37 +0200)]
asyncio: Log an error if a Task is destroyed while it is still pending

10 years agomerge
Raymond Hettinger [Tue, 24 Jun 2014 20:03:24 +0000 (13:03 -0700)]
merge

10 years agoadd Chris Foster
Benjamin Peterson [Tue, 24 Jun 2014 03:14:46 +0000 (20:14 -0700)]
add Chris Foster

10 years agoIssue #11974: Add tutorial section on class and instance variables
Raymond Hettinger [Tue, 24 Jun 2014 01:08:01 +0000 (18:08 -0700)]
Issue #11974:  Add tutorial section on class and instance variables
(Based on a patch from Renee Chu.)

10 years agoinspect: Validate that __signature__ is None or an instance of Signature.
Yury Selivanov [Mon, 23 Jun 2014 17:21:04 +0000 (10:21 -0700)]
inspect: Validate that __signature__ is None or an instance of Signature.

Closes #21801.

10 years agoasyncio: Fix BaseEventLoop._assert_is_current_event_loop(): get_event_loop()
Victor Stinner [Mon, 23 Jun 2014 13:14:13 +0000 (15:14 +0200)]
asyncio: Fix BaseEventLoop._assert_is_current_event_loop(): get_event_loop()
raises an exception if there is no current loop

10 years agoIssue #8343: Named group error msgs did not show the group name.
Raymond Hettinger [Mon, 23 Jun 2014 02:47:22 +0000 (19:47 -0700)]
Issue #8343: Named group error msgs did not show the group name.

10 years agoclarify that islink only really works if python knows about symlinks (closes #13143)
Benjamin Peterson [Mon, 23 Jun 2014 00:59:35 +0000 (17:59 -0700)]
clarify that islink only really works if python knows about symlinks (closes #13143)

Patch from Yayoi Ukai.

10 years agosome timezone doc improvements (closes #16667)
Benjamin Peterson [Sun, 22 Jun 2014 23:26:39 +0000 (16:26 -0700)]
some timezone doc improvements (closes #16667)

From the combined efforts of Berber Peksage, Andrew Svetlov, and Yayoi Ukai.

10 years agoasyncio, Tulip issue 171: BaseEventLoop.close() now raises an exception if the
Victor Stinner [Sun, 22 Jun 2014 23:02:37 +0000 (01:02 +0200)]
asyncio, Tulip issue 171: BaseEventLoop.close() now raises an exception if the
event loop is running. You must first stop the event loop and then wait until
it stopped, before closing it.

10 years agoasyncio: document the debug mode
Victor Stinner [Sun, 22 Jun 2014 22:36:11 +0000 (00:36 +0200)]
asyncio: document the debug mode

10 years agoasyncio, Tulip issue 172: only log selector timing in debug mode
Victor Stinner [Sun, 22 Jun 2014 22:31:08 +0000 (00:31 +0200)]
asyncio, Tulip issue 172: only log selector timing in debug mode

10 years agoasyncio: Add an unit test to check that setting the PYTHONASYNCIODEBUG env var
Victor Stinner [Sun, 22 Jun 2014 22:19:33 +0000 (00:19 +0200)]
asyncio: Add an unit test to check that setting the PYTHONASYNCIODEBUG env var
enables debug mode of the event loop.

10 years agoasyncio: Enable the debug mode of event loops when the PYTHONASYNCIODEBUG
Victor Stinner [Sun, 22 Jun 2014 22:12:14 +0000 (00:12 +0200)]
asyncio: Enable the debug mode of event loops when the PYTHONASYNCIODEBUG
environment variable is set

10 years agoasyncio: BaseEventLoop._assert_is_current_event_loop() now only raises an
Victor Stinner [Sun, 22 Jun 2014 22:03:43 +0000 (00:03 +0200)]
asyncio: BaseEventLoop._assert_is_current_event_loop() now only raises an
exception if the current loop is not None.

Guido van Rossum wrote:

"The behavior that you can set the loop to None (and keep track of it
explicitly) is part of the spec, and this should still be supported even in
debug mode. The behavior that we raise an error if you are caught having
multiple active loops per thread is just a debugging heuristic, and it
shouldn't break code that follows the spec."

10 years agoIssue #10747: Use versioned labels in the Windows start menu.
Martin v. Löwis [Sun, 22 Jun 2014 20:22:33 +0000 (22:22 +0200)]
Issue #10747: Use versioned labels in the Windows start menu.
Patch by Olive Kilburn.

10 years agoIssue #21812: Trigger immediate transformation in turtle.shapetransform().
Raymond Hettinger [Sun, 22 Jun 2014 08:21:51 +0000 (01:21 -0700)]
Issue #21812:  Trigger immediate transformation in turtle.shapetransform().

10 years agoIssue #21823: Catch turtle.Terminator exceptions in turtledemo.
Terry Jan Reedy [Sun, 22 Jun 2014 05:18:54 +0000 (01:18 -0400)]
Issue #21823: Catch turtle.Terminator exceptions in turtledemo.
Add note to demohelp.txt about doing so.

10 years agoIssue 21635: Fix caching in difflib.SequenceMatcher.get_matching_blocks().
Raymond Hettinger [Sat, 21 Jun 2014 18:57:36 +0000 (11:57 -0700)]
Issue 21635:  Fix caching in difflib.SequenceMatcher.get_matching_blocks().

10 years agoMerge.
Charles-François Natali [Fri, 20 Jun 2014 21:59:32 +0000 (22:59 +0100)]
Merge.

10 years agoFix test_pydoc failure introduced by 7aa72075d440. Patch by Berker Peksag.
Charles-François Natali [Fri, 20 Jun 2014 21:59:12 +0000 (22:59 +0100)]
Fix test_pydoc failure introduced by 7aa72075d440. Patch by Berker Peksag.

10 years agoIssue #21770: Call function instead of module. Patch by Claudiu Popa.
Terry Jan Reedy [Fri, 20 Jun 2014 21:49:10 +0000 (17:49 -0400)]
Issue #21770: Call function instead of module. Patch by Claudiu Popa.

10 years agoIssue #21491: socketserver: Fix a race condition in child processes reaping.
Charles-François Natali [Fri, 20 Jun 2014 21:37:35 +0000 (22:37 +0100)]
Issue #21491: socketserver: Fix a race condition in child processes reaping.