82550 Commits

Author SHA1 Message Date
Victor Stinner
24bd028092 Issue #19952: test_asyncio: relax timings of Windows events, buildbots are
sometimes busy
2013-12-13 02:45:18 +01:00
Victor Stinner
2aeb070e4c (Merge 3.3) Issue #14432: Fix compilation when thread support is disabled 2013-12-13 02:32:37 +01:00
Victor Stinner
258e4d372f Issue #14432: Fix compilation when thread support is disabled 2013-12-13 02:30:12 +01:00
Victor Stinner
c47fb54ad7 Issue #14432: Null merge 3.3, Python 3.4 has a different fix 2013-12-13 02:18:41 +01:00
Victor Stinner
1310510793 Issue #14432: Generator now clears the borrowed reference to the thread state
Fix a crash when a generator is created in a C thread that is destroyed while
the generator is still used. The issue was that a generator contains a frame,
and the frame kept a reference to the Python state of the destroyed C thread.
The crash occurs when a trace function is setup.
2013-12-13 02:17:29 +01:00
Victor Stinner
fdeb6ec45a Issue #14432: Remove the thread state field from the frame structure. Fix a
crash when a generator is created in a C thread that is destroyed while the
generator is still used. The issue was that a generator contains a frame, and
the frame kept a reference to the Python state of the destroyed C thread. The
crash occurs when a trace function is setup.
2013-12-13 02:01:38 +01:00
Victor Stinner
62ca10051b Close #19576: PyGILState_Ensure() now initializes threads. At startup, Python
has no concrete GIL. If PyGILState_Ensure() is called from a new thread for the
first time and PyEval_InitThreads() was not called yet, a GIL needs to be
created.
2013-12-13 01:46:43 +01:00
Victor Stinner
56668dc187 Issue #19751: Fix hash_info test of test_sys on SPARC Solaris 2013-12-12 23:07:40 +01:00
Victor Stinner
4b6d4b56d3 Issue #19751: Fix typo in configuration option 2013-12-12 23:06:07 +01:00
Stefan Krah
5bf91dc417 Merge from 3.3. 2013-12-12 19:05:08 +01:00
Stefan Krah
da12adac10 Do not discard const qualifier without a reason. 2013-12-12 18:51:51 +01:00
Zachary Ware
8fda4749e3 Merge fix from 3.3 2013-12-12 10:33:27 -06:00
Zachary Ware
0f533acf88 Avoid UnicodeEncodeError by only printing ASCII.
This fixes running test_decimal in verbose mode on Windows,
which I broke in issue #19572.
2013-12-12 10:32:16 -06:00
Victor Stinner
1c4b892d71 Add a sequence diagram for the chained coroutines example 2013-12-12 12:35:17 +01:00
Zachary Ware
f06247d16a Properly filter some recent additions in the Windows build files. 2013-12-11 17:21:13 -06:00
Zachary Ware
e2ed78ed31 Null merge with 3.3.
There are enough new things to make the merge harder than making the
change in VS, and there are other things to add filters for in 3.4.
2013-12-11 17:18:37 -06:00
Zachary Ware
bdbffd0342 Filter namespaceobject's files properly in the pythoncore VS project. 2013-12-11 17:12:34 -06:00
Zachary Ware
63321b4978 Issue #19828: Merge with 3.3 2013-12-11 17:01:21 -06:00
Zachary Ware
36193e73b8 Issue #19828: Fixed test_site when the whole suite is run with -S.
Also, cleaned up an unused import.
2013-12-11 16:59:44 -06:00
R David Murray
50bfbb9903 #19063: fix set_payload handling of non-ASCII string input.
This version of the fix raises an error instead of accepting the invalid
input (ie: if a non-ASCII string is used but no charset is specified).
2013-12-11 16:52:11 -05:00
R David Murray
34bd9fc59a Null merge for #19063 (3.4 fix is different). 2013-12-11 16:48:52 -05:00
R David Murray
d5c4c7411a #19063: partially fix set_payload handling of non-ASCII string input.
This is a backward compatible partial fix, the complete fix requires raising
an error instead of accepting the invalid input, so the real fix is only
suitable for 3.4.
2013-12-11 16:34:34 -05:00
Serhiy Storchaka
c4f3212abc Issue #17576: Deprecation warning emitted now when __int__() or __index__()
return not int instance.  Introduced _PyLong_FromNbInt() and refactored
PyLong_As*() functions.
2013-12-11 21:26:36 +02:00
Serhiy Storchaka
31a655411a Issue #17576: Deprecation warning emitted now when __int__() or __index__()
return not int instance.  Introduced _PyLong_FromNbInt() and refactored
PyLong_As*() functions.
2013-12-11 21:07:54 +02:00
Eric Snow
b282b3d804 Issue #18864: Add a setter for ModuleSpec.has_location. 2013-12-10 22:16:41 -07:00
Gregory P. Smith
85cce1eac7 null merge (3.4 doesn't need this fix) 2013-12-10 18:26:02 -08:00
Gregory P. Smith
acd17304d2 Fixes Issue #17200: telnetlib's read_until and expect timeout was broken by the
fix to Issue #14635 in Python 3.3.0 to be interpreted as milliseconds instead
of seconds when the platform supports select.poll (ie: everywhere).  It is now
treated as seconds once again.
2013-12-10 18:25:21 -08:00
Ned Deily
e72b90eb7a Issue #18270: merge from 3.3 2013-12-10 16:32:57 -08:00
Ned Deily
f3c6589ea3 Issue #18270: Prevent possible IDLE AttributeError on OS X when no initial
shell window is present. (Original patch by Terry Reedy)
2013-12-10 16:24:01 -08:00
Zachary Ware
7f7f3d7879 Issue #19928: Fix test on Windows 2013-12-10 14:18:30 -06:00
Zachary Ware
ea6854a9ef Issue #19928: Fix test on Windows 2013-12-10 14:17:22 -06:00
Ezio Melotti
20719ace97 #19943: merge with 3.3. 2013-12-10 14:06:18 +02:00
Ezio Melotti
d082b68786 #19943: fix typo noticed by Jakub Wilk. 2013-12-10 14:05:46 +02:00
Serhiy Storchaka
184ec79bd3 Remove commented out debugging code (remnants of issue #18996). 2013-12-10 13:53:56 +02:00
Nick Coghlan
1f609e9b02 Issue #19407: merge PPUG notes from 3.3 2013-12-10 21:31:14 +10:00
Nick Coghlan
b5c4fd0a96 Issue #19407: add Python Packaging User Guide notes
The stdlib docs for package distribution and building extensions
are rather dated, and that isn't expected to change for 2.7 and
3.3.

The Python Packaging User Guide isn't complete either, but it's
already a much better road map for new users than the existing
stdlib docs.
2013-12-10 21:24:55 +10:00
Victor Stinner
a6fa15367f asyncio doc: simplify task example 2013-12-10 12:20:14 +01:00
Victor Stinner
0839ed4730 asyncio doc: don't document Task.cancel(), already documented in Future.cancel() 2013-12-10 12:18:15 +01:00
Victor Stinner
742520be43 asyncio: document Task.current_task() 2013-12-10 12:14:50 +01:00
Serhiy Storchaka
2a446bf76c Issue #19928: Implemented a test for repr() of cell objects. 2013-12-10 10:21:51 +02:00
Serhiy Storchaka
1f79cdfbfa Issue #19928: Implemented a test for repr() of cell objects. 2013-12-10 10:20:31 +02:00
Serhiy Storchaka
0ed6c4ae62 Issue #19481: print() of string subclass instance in IDLE no more hangs. 2013-12-10 10:06:35 +02:00
Serhiy Storchaka
9df8a1c112 Issue #19481: print() of string subclass instance in IDLE no more hangs. 2013-12-10 10:05:19 +02:00
Eric Snow
e3c39ddd97 Remove commented-out module spec test code and an out-of-date note. 2013-12-09 20:33:33 -07:00
Eric Snow
c1e7c747f9 Issue 19851: Fix a regression in reloading submodules. 2013-12-09 19:59:10 -07:00
Victor Stinner
fc25d629ab asyncio: don't document private functions 2013-12-10 02:52:49 +01:00
Victor Stinner
34f2946a11 asyncio: fix 2nd task example 2013-12-10 02:51:05 +01:00
Victor Stinner
dbd8950b28 asyncio doc: rewrite the callback hello world to use call_soon() instead of a
direct call.
2013-12-10 02:47:22 +01:00
Victor Stinner
b69d62dcac assyncio doc: rewrite, improve and move coroutine, Future and Task examples 2013-12-10 02:09:46 +01:00
Victor Stinner
b077c0552f (Merge 3.3) Issue #19932: Fix typo in import.h, missing whitespaces in function prototypes. 2013-12-10 01:20:39 +01:00