]>
granicus.if.org Git - python/log
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
Victor Stinner [Fri, 27 Jun 2014 22:12:02 +0000 (00:12 +0200)]
asyncio: Fix unit tests on Windows, escape filenames in regex
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.
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.
Ezio Melotti [Fri, 27 Jun 2014 13:34:14 +0000 (16:34 +0300)]
Fix indentation and class name in socket howto example.
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.
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
Victor Stinner [Fri, 27 Jun 2014 10:23:41 +0000 (12:23 +0200)]
asyncio: Oops, restore a removed test
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.
Benjamin Peterson [Fri, 27 Jun 2014 06:29:13 +0000 (23:29 -0700)]
use NULL not 0
Victor Stinner [Thu, 26 Jun 2014 21:32:00 +0000 (23:32 +0200)]
Issue #21858: Better handling of Python exceptions in the sqlite3 module.
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
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.
Raymond Hettinger [Thu, 26 Jun 2014 16:25:18 +0000 (09:25 -0700)]
Issue #19145: Remove duplicate ACKS entry
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.
Victor Stinner [Wed, 25 Jun 2014 23:35:45 +0000 (01:35 +0200)]
asyncio: Handle error handler: enhance formatting of the callback
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
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
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
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.
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.
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
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.
Jesus Cea [Wed, 25 Jun 2014 11:06:07 +0000 (13:06 +0200)]
MERGE: Closes #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
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.
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.
Vinay Sajip [Wed, 25 Jun 2014 06:30:46 +0000 (07:30 +0100)]
Fixed typo in documentation.
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.)
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
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
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).
Raymond Hettinger [Wed, 25 Jun 2014 01:11:48 +0000 (18:11 -0700)]
Add news entry for #21832
Raymond Hettinger [Wed, 25 Jun 2014 01:07:14 +0000 (18:07 -0700)]
merge
Raymond Hettinger [Tue, 24 Jun 2014 22:20:55 +0000 (15:20 -0700)]
Issue 21832: Require named tuple inputs to be exact strings
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.
Raymond Hettinger [Tue, 24 Jun 2014 20:51:42 +0000 (13:51 -0700)]
merge
Raymond Hettinger [Tue, 24 Jun 2014 20:44:03 +0000 (13:44 -0700)]
Issue 21832: Require named tuple inputs to be exact strings
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.
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
Raymond Hettinger [Tue, 24 Jun 2014 20:03:24 +0000 (13:03 -0700)]
merge
Benjamin Peterson [Tue, 24 Jun 2014 03:14:46 +0000 (20:14 -0700)]
add Chris Foster
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.)
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.
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
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.
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.
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.
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.
Victor Stinner [Sun, 22 Jun 2014 22:36:11 +0000 (00:36 +0200)]
asyncio: document the 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
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.
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
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."
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.
Raymond Hettinger [Sun, 22 Jun 2014 08:21:51 +0000 (01:21 -0700)]
Issue #21812: Trigger immediate transformation in turtle.shapetransform().
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.
Raymond Hettinger [Sat, 21 Jun 2014 18:57:36 +0000 (11:57 -0700)]
Issue 21635: Fix caching in difflib.SequenceMatcher.get_matching_blocks().
Charles-François Natali [Fri, 20 Jun 2014 21:59:32 +0000 (22:59 +0100)]
Merge.
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.
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.
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.
Terry Jan Reedy [Fri, 20 Jun 2014 19:16:35 +0000 (15:16 -0400)]
Issue #21768: fix NameError in test_pydescr. Patch by Claudiu Popa.
Terry Jan Reedy [Fri, 20 Jun 2014 18:59:11 +0000 (14:59 -0400)]
Issue #21768: fix type in test_pydoc, patch by Claudiu Popa.
Victor Stinner [Fri, 20 Jun 2014 15:34:15 +0000 (17:34 +0200)]
asyncio, Tulip issue 105: in debug mode, log callbacks taking more than 100 ms
to be executed.
Senthil Kumaran [Fri, 20 Jun 2014 08:37:53 +0000 (01:37 -0700)]
issue 20091 - index entry for __main__ in runpy docs.
Ezio Melotti [Thu, 19 Jun 2014 21:52:11 +0000 (00:52 +0300)]
#21690: fix a couple of links in the docs of the re module. Noticed by Julian Gilbey.
Victor Stinner [Thu, 19 Jun 2014 15:11:49 +0000 (17:11 +0200)]
Tulip issue 83: document more asyncio functions in docstrings
Victor Stinner [Thu, 19 Jun 2014 10:59:15 +0000 (12:59 +0200)]
Closes #21595: asyncio.BaseSelectorEventLoop._read_from_self() now reads all
available bytes from the "self pipe", not only a single byte. This change
reduces the risk of having the pipe full and so getting the innocuous
"BlockingIOError: [Errno 11] Resource temporarily unavailable" message.
Victor Stinner [Thu, 19 Jun 2014 10:50:27 +0000 (12:50 +0200)]
Closes #21758: asyncio doc: mention explicitly that subprocess parameters are
bytes or character strings
Antoine Pitrou [Thu, 19 Jun 2014 03:07:46 +0000 (23:07 -0400)]
Issue #21722: The distutils "upload" command now exits with a non-zero return code when uploading fails.
Patch by Martin Dengler.
Ned Deily [Wed, 18 Jun 2014 20:09:40 +0000 (13:09 -0700)]
Issue #3485: remove misleading comment
Zachary Ware [Wed, 18 Jun 2014 03:26:59 +0000 (22:26 -0500)]
Fix typo pointed out by cocoatomo on docs@
Victor Stinner [Wed, 18 Jun 2014 01:25:23 +0000 (03:25 +0200)]
asyncio: Fix pyflakes errors
- Add a missing import
- Remove an unused import
- Remove unused variables
Victor Stinner [Tue, 17 Jun 2014 23:36:32 +0000 (01:36 +0200)]
asyncio: Refactor tests: add a base TestCase class
Victor Stinner [Tue, 17 Jun 2014 23:22:15 +0000 (01:22 +0200)]
asyncio: Refactor test__run_once_logging() to not rely on the exact number of
calls to time.monotonic(). Use a "fast select" and a "slow select" instead.
Victor Stinner [Tue, 17 Jun 2014 23:14:59 +0000 (01:14 +0200)]
asyncio: Set __qualname__ attribute of CoroWrapper in @coroutine decorator on
Python 3.5
- Drop __slots__ optimization of CoroWrapper to be able to set the __qualname__
attribute.
- Add tests on __name__, __qualname__ and __module__ of a coroutine function
and coroutine object.
- Fix test_tasks when run in debug mode (PYTHONASYNCIODEBUG env var set) on
Python 3.3 or 3.4
Victor Stinner [Tue, 17 Jun 2014 21:36:21 +0000 (23:36 +0200)]
Issue #21723: asyncio.Queue: support any type of number (ex: float) for the
maximum size. Patch written by Vajrasky Kok.
Terry Jan Reedy [Tue, 17 Jun 2014 20:35:20 +0000 (16:35 -0400)]
Issue #21694: Add unittest for ParenMatch. Patch by Saimadhav Heblikar.
Benjamin Peterson [Tue, 17 Jun 2014 16:44:55 +0000 (09:44 -0700)]
add Ammar Brohi for running ssllab's test on python.org and reporting a problem
Benjamin Peterson [Tue, 17 Jun 2014 07:34:46 +0000 (00:34 -0700)]
revert tstate_delete_common, since it's pretty much wrong
Benjamin Peterson [Tue, 17 Jun 2014 06:49:02 +0000 (23:49 -0700)]
remove extra call to tstate_delete_common (merge artifact)
Benjamin Peterson [Tue, 17 Jun 2014 06:16:31 +0000 (23:16 -0700)]
merge 3.3
Benjamin Peterson [Tue, 17 Jun 2014 06:16:06 +0000 (23:16 -0700)]
merge 3.2
Benjamin Peterson [Tue, 17 Jun 2014 06:15:50 +0000 (23:15 -0700)]
expect the correct platform-dependent linesep
Benjamin Peterson [Tue, 17 Jun 2014 06:07:49 +0000 (23:07 -0700)]
avoid a deadlock with the interpreter head lock and the GIL during finalization
Benjamin Peterson [Tue, 17 Jun 2014 05:59:07 +0000 (22:59 -0700)]
check if the thread is finalizing after retaking the GIL
Terry Jan Reedy [Mon, 16 Jun 2014 23:24:29 +0000 (19:24 -0400)]
Add Idle news entries.
Terry Jan Reedy [Mon, 16 Jun 2014 23:01:01 +0000 (19:01 -0400)]
Issue #21686: add unittest for idlelib.HyperParser. Original patch by Saimadhav
Heblikar. Correct a minor 3.x bug in HyperParser discovered by testing.
Victor Stinner [Mon, 16 Jun 2014 22:26:36 +0000 (00:26 +0200)]
asyncio: Task.__repr__() now also handles CoroWrapper
Victor Stinner [Mon, 16 Jun 2014 20:48:43 +0000 (22:48 +0200)]
Issue #21773: Fix TestStdLib.test_pydoc() of test_enum. Patch written by
Claudiu Popa.
The print_diffs() function was not defined, using the assertEqual() is more
reliable.
Zachary Ware [Mon, 16 Jun 2014 16:13:01 +0000 (11:13 -0500)]
Fix typo reported by Jesse W on docs@
Victor Stinner [Mon, 16 Jun 2014 15:11:05 +0000 (17:11 +0200)]
Sync asyncio with Tulip: Fix test_tasks for Python 3.5
On Python 3.5, generator now gets their name from the function, no more from
the code. So we get the expected "notmuch" name instead of the generic "coro"
name.
Nick Coghlan [Mon, 16 Jun 2014 09:48:02 +0000 (19:48 +1000)]
Issue #21669: Special case print & exec syntax errors
Terry Jan Reedy [Mon, 16 Jun 2014 07:31:00 +0000 (03:31 -0400)]
Issue #21559: Add alternative (historical) reason for OverflowError.
Terry Jan Reedy [Mon, 16 Jun 2014 07:05:37 +0000 (03:05 -0400)]
Issue #19362: Tweek len() doc and docstring to expand the indicated range of
arguments. Original patch by Gareth Rees.
Terry Jan Reedy [Mon, 16 Jun 2014 06:40:24 +0000 (02:40 -0400)]
whitespace
Terry Jan Reedy [Mon, 16 Jun 2014 06:33:35 +0000 (02:33 -0400)]
Issue #21686: idlelib/HyperParser.py - Update docstrings and comments and
replace \ line contiuation. Tested against nearly done test_hyperparser.py.
Benjamin Peterson [Mon, 16 Jun 2014 03:51:12 +0000 (20:51 -0700)]
clarify when the list of subdirectories is read (closes #13779)
Gregory P. Smith [Mon, 16 Jun 2014 03:16:01 +0000 (20:16 -0700)]
fix a BytesWarning in my previous commit.