85714 Commits

Author SHA1 Message Date
Zachary Ware
fff80d984c Issue #21942: Fixed source file viewing in pydoc's server mode on Windows. 2014-07-10 11:21:01 -05:00
Zachary Ware
eb43214427 Issue #21942: Fixed source file viewing in pydoc's server mode on Windows. 2014-07-10 11:18:00 -05:00
Terry Jan Reedy
f6e9f36e54 Merge with 3.4 2014-07-10 01:17:11 -04:00
Terry Jan Reedy
7cca28ffa2 Issue #21940: add docstrings to idlelib.WidgetRedirector. 2014-07-10 01:16:49 -04:00
Berker Peksag
0be663062a Issues #21948 and #16040: Merge with 3.4. 2014-07-09 20:16:23 +03:00
Berker Peksag
740c730086 Issues #21948 and #16040: Fix typos. 2014-07-09 20:15:28 +03:00
Berker Peksag
e4857f3528 Issue #6916: Use assertWarns in test_asynchat. 2014-07-09 03:12:23 +03:00
Guido van Rossum
416b516d46 Fix bootstrapping asdl -- it didn't work with Python 2.7. 2014-07-08 16:22:48 -07:00
Antoine Pitrou
667f545e03 Issue #21938: simplify gen_iternext() 2014-07-08 18:43:23 -04:00
Victor Stinner
b44fc32661 (Merge 3.4) asyncion, Tulip issue 181: BaseEventLoop.create_datagram_endpoint()
now waits until protocol.connection_made() has been called. Document also why
transport constructors use a waiter.
2014-07-08 23:58:25 +02:00
Victor Stinner
bfff45d611 asyncion, Tulip issue 181: BaseEventLoop.create_datagram_endpoint() now waits
until protocol.connection_made() has been called. Document also why transport
constructors use a waiter.
2014-07-08 23:57:31 +02:00
Victor Stinner
5f40168b1c (Merge 3.4) Issue #21680: Document asyncio event loops 2014-07-08 23:43:11 +02:00
Victor Stinner
aea82293be Issue #21680: Document asyncio event loops 2014-07-08 23:42:38 +02:00
Zachary Ware
afb52e1d44 Issue #21907: Make the buildbot clean script always return 0.
The clean script is a "best effort" thing anyway, and this will hopefully
revive the XP buildbot.
2014-07-08 09:41:57 -05:00
Victor Stinner
4532c43e16 Merge 3.4
asyncio: sync with Tulip

- Tulip issue 185: Add a create_task() method to event loops. The create_task()
  method can be overriden in custom event loop to implement their own task
  class. For example, greenio and Pulsar projects use their own task class. The
  create_task() method is now preferred over creating directly task using the
  Task class.
- tests: fix a warning
- fix typo in the name of a test function
- Update AbstractEventLoop: add new event loop methods; update also the unit test

Update asyncio documentation

- Document the new create_task() method
- "Hide" the Task class: point to the create_task() method for interoperability
- Rewrite the documentation of the Task class
- Document the "Pending task destroyed"
- Update output in debug mode of examples in the dev section
- Replace Task() with create_task() in examples
2014-07-08 12:43:24 +02:00
Victor Stinner
530ef2f069 Update asyncio documentation
- Document the new create_task() method
- "Hide" the Task class: point to the create_task() method for interoperability
- Rewrite the documentation of the Task class
- Document the "Pending task destroyed"
- Update output in debug mode of examples in the dev section
- Replace Task() with create_task() in examples
2014-07-08 12:39:10 +02:00
Victor Stinner
896a25ab30 asyncio: sync with Tulip
- Tulip issue 185: Add a create_task() method to event loops. The create_task()
  method can be overriden in custom event loop to implement their own task
  class. For example, greenio and Pulsar projects use their own task class. The
  create_task() method is now preferred over creating directly task using the
  Task class.
- tests: fix a warning
- fix typo in the name of a test function
- Update AbstractEventLoop: add new event loop methods; update also the unit test
2014-07-08 11:29:25 +02:00
Antoine Pitrou
de08cb60fd Fix compilation failure (followup to #21803) 2014-07-07 19:08:47 -04:00
Antoine Pitrou
1eee8e5207 Issue #21803: remove macro indirections in complexobject.h 2014-07-07 18:49:30 -04:00
Victor Stinner
db5f8fcde6 (Merge 3.4) Issue #11259: asynchat.async_chat().set_terminator() now raises a
ValueError if the number of received bytes is negative.
2014-07-08 00:34:48 +02:00
Victor Stinner
630a4f63c5 Issue #11259: asynchat.async_chat().set_terminator() now raises a ValueError if
the number of received bytes is negative.
2014-07-08 00:26:36 +02:00
Victor Stinner
7b9328f51b (Merge 3.4) asynchat: PEP8-ify the code 2014-07-08 00:19:33 +02:00
Victor Stinner
fd5d1b51d6 asynchat: PEP8-ify the code 2014-07-08 00:16:54 +02:00
Victor Stinner
e8209dab6b (Merge 3.4) Issue #12523: asynchat.async_chat.push() now raises a TypeError if
it doesn't get a bytes string
2014-07-08 00:01:28 +02:00
Victor Stinner
d9e810a870 Issue #12523: asynchat.async_chat.push() now raises a TypeError if it doesn't
get a bytes string
2014-07-08 00:00:30 +02:00
Victor Stinner
ac7d80c7d0 (Merge 3.4) Issue #21925: PyImport_Cleanup(): Remove unused parameter in
PySys_FormatStderr() call
2014-07-07 23:07:27 +02:00
Victor Stinner
ab826d11a3 Issue #21925: PyImport_Cleanup(): Remove unused parameter in
PySys_FormatStderr() call
2014-07-07 23:06:15 +02:00
Zachary Ware
69d2d013f1 Issue #21907: Exit with the correct return code 2014-07-07 15:07:46 -05:00
Victor Stinner
e03de09ff2 (Merge 3.4) Issue #21781, _ssl: Fix asn1obj2py() on Windows 64-bit, "s#" format
requires size to be a Py_ssize_t, not an int. _ssl.c is now "Py_ssize_t clean".
2014-07-07 21:52:49 +02:00
Victor Stinner
cd75298611 Issue #21781, _ssl: Fix asn1obj2py() on Windows 64-bit, "s#" format requires
size to be a Py_ssize_t, not an int. _ssl.c is now "Py_ssize_t clean".
2014-07-07 21:52:29 +02:00
Zachary Ware
269e83fd02 Issue #17846: Merge with 3.4 2014-07-07 14:35:02 -05:00
Zachary Ware
ef03565567 Issue #17846: Clarify note about Solution Folders.
Initial patch by Kathleen Weaver.
2014-07-07 14:33:24 -05:00
Zachary Ware
345511a4a6 Merge with 3.4 2014-07-07 14:31:58 -05:00
Zachary Ware
2170b14374 Fix MSVC edition mismatch. 2014-07-07 14:31:34 -05:00
Zachary Ware
e12fa65744 Issue #21907: Improved the batch scripts provided for building Python.
The user-facing scripts in PCbuild have been updated to be easier to use
and the buildbot scripts in Tools\buildbot have been updated to use the
user-facing scripts in PCbuild wherever possible.
2014-07-07 13:39:59 -05:00
Berker Peksag
b132069ea4 Issue #21707: Merge with 3.4. 2014-07-07 21:30:54 +03:00
Berker Peksag
a90afbc7ee Issue #21707: Fix tests on Windows. 2014-07-07 21:29:50 +03:00
Victor Stinner
253b664092 (Merge 3.4) asyncio: sync with Tulip
Backout the "Tulip issue 181: Faster create_connection()" changeset, it was a
mistake.
2014-07-07 18:08:57 +02:00
Victor Stinner
799a60ccb4 asyncio: sync with Tulip
Backout the "Tulip issue 181: Faster create_connection()" changeset, it was a
mistake.
2014-07-07 18:08:22 +02:00
Victor Stinner
f80c52bf68 (Merge 3.4) asyncio: sync with Tulip
- Tulip issue #181: Faster create_connection(). Call directly
  waiter.set_result() in the constructor of _ProactorBasePipeTransport and
  _SelectorSocketTransport, instead of using of delaying the call with
  call_soon().
- Cleanup iscoroutine()
2014-07-07 17:27:27 +02:00
Victor Stinner
1a870c9132 asyncio: sync with Tulip
- Tulip issue #181: Faster create_connection(). Call directly
  waiter.set_result() in the constructor of _ProactorBasePipeTransport and
  _SelectorSocketTransport, instead of using of delaying the call with
  call_soon().
- Cleanup iscoroutine()
2014-07-07 17:26:54 +02:00
Serhiy Storchaka
07de7b5db1 Null merge 2014-07-07 15:18:52 +03:00
Serhiy Storchaka
11116da935 Merge heads 2014-07-07 15:18:22 +03:00
Serhiy Storchaka
80dce52800 Merge heads 2014-07-07 15:11:42 +03:00
Berker Peksag
7a5a8c8f7c Issue #21707: Merge with 3.4. 2014-07-07 14:59:47 +03:00
Berker Peksag
0a0d1da987 Issue #21707: Add missing kwonlyargcount argument to ModuleFinder.replace_paths_in_code(). 2014-07-07 14:58:12 +03:00
Serhiy Storchaka
3cb4af8fbf Issue #21881: Just omit tests for platform-specific NaN representation in test_tcl. 2014-07-07 14:57:57 +03:00
Serhiy Storchaka
6f1435c939 Issue #21881: Just omit tests for platform-specific NaN representation in test_tcl. 2014-07-07 14:57:08 +03:00
Serhiy Storchaka
f2c4ba1207 Issue #19593: Use specific asserts in importlib tests. 2014-07-07 14:09:43 +03:00
Serhiy Storchaka
344f8316fd Issue #19593: Use specific asserts in importlib tests. 2014-07-07 14:08:19 +03:00