Victor Stinner
e20310fa19
Issue #25556 : Add assertions to PyObject_GetItem() to ensure that an exception
...
is raised when it returns NULL.
Simplify also ceval.c: rely on the fact that PyObject_GetItem() raised an
exception when it returns NULL.
2015-11-05 13:56:58 +01:00
Victor Stinner
ef072961e1
Merge 3.5
2015-11-05 13:55:43 +01:00
Victor Stinner
60a1d3cd15
Issue #25556 : Fix LOAD_GLOBAL bytecode when globals type is not dict and the
...
requested name doesn't exist in globals: clear the KeyError exception before
calling PyObject_GetItem(). Fail also if the raised exception is not a
KeyError.
2015-11-05 13:55:20 +01:00
Victor Stinner
cf01b68b88
sysmodule.c: reuse Py_STRINGIFY() macro
2015-11-05 11:21:38 +01:00
Serhiy Storchaka
cf156bc248
Issue #24726 : Fixed issue number for previous changeset 76e848554b5d.
2015-11-04 22:38:40 +02:00
Serhiy Storchaka
4d11a94fb6
Issue #24726 : Fixed issue number for previous changeset 59c7615ea921.
2015-11-04 22:37:46 +02:00
Serhiy Storchaka
f83afa508f
Issue #25449 : Fixed a crash and leaking NULL in repr() of OrderedDict that
...
was mutated by direct calls of dict methods.
2015-11-04 22:33:33 +02:00
Serhiy Storchaka
710cd34bdb
Issue #25449 : Fixed a crash and leaking NULL in repr() of OrderedDict that
...
was mutated by direct calls of dict methods.
2015-11-04 22:33:07 +02:00
Serhiy Storchaka
161b6ff19c
Issue #25449 : Iterating OrderedDict with keys with unstable hash now raises
...
KeyError in C implementations as well as in Python implementation.
Added tests for OrderedDict subclasses.
2015-11-04 22:08:52 +02:00
Serhiy Storchaka
b45b7b2137
Issue #25449 : Iterating OrderedDict with keys with unstable hash now raises
...
KeyError in C implementations as well as in Python implementation.
Added tests for OrderedDict subclasses.
2015-11-04 22:05:38 +02:00
Eric V. Smith
a3a3d732ec
For FORMAT_VALUE opcode, make it clear that the result of PyObject_Format is pushed on the stack.
2015-11-04 07:11:13 -05:00
Victor Stinner
45550178ef
regrtest: display progress every 30 seconds (instead of 60 seconds) when
...
running tests in multiprocessing mode (-jN).
2015-11-04 09:03:53 +01:00
Benjamin Peterson
4c3a5f24c3
merge 3.5
2015-11-03 22:43:52 -08:00
Benjamin Peterson
b25d09a15e
merge 3.4
2015-11-03 22:43:41 -08:00
Benjamin Peterson
5be2dac560
remove trailing ws
2015-11-03 22:43:31 -08:00
Benjamin Peterson
0f1f980782
merge 3.5
2015-11-03 22:42:42 -08:00
Benjamin Peterson
1897c9860a
merge 3.4
2015-11-03 22:42:35 -08:00
Benjamin Peterson
c2f01213ed
link to modern PUG url
2015-11-03 22:42:02 -08:00
Raymond Hettinger
4a91d21381
Neaten-up the inner-loop logic.
2015-11-03 22:00:26 -05:00
Eric V. Smith
9ce52e3bda
Issue 25483: Fix doc typo and added versionadded. Thanks, Berker Peksag.
2015-11-03 16:30:49 -05:00
Eric V. Smith
281d5321a3
Issue 25483: Update dis.rst with FORMAT_VALUE opcode description.
2015-11-03 13:09:01 -05:00
Eric V. Smith
a78c7954d5
Issue 25483: Add an opcode to make f-string formatting more robust.
2015-11-03 12:45:05 -05:00
Victor Stinner
2753a096e0
locale.delocalize(): only call localeconv() once
2015-11-03 14:34:51 +01:00
Guido van Rossum
bbfcb3895a
Use sys.platform instead of os.name to detect Windows in asyncio docs. Patch by Akira Li. (Merge 3.5->3.6)
2015-11-02 09:17:08 -08:00
Guido van Rossum
26825bcb8d
Use sys.platform instead of os.name to detect Windows in asyncio docs. Patch by Akira Li. (Merge 3.4->3.5)
2015-11-02 09:16:37 -08:00
Guido van Rossum
8778c6b77e
Use sys.platform instead of os.name to detect Windows in asyncio docs. Patch by Akira Li.
2015-11-02 09:15:47 -08:00
Serhiy Storchaka
4a7c03aab4
Issue #25523 : Merge a-to-an corrections from 3.5.
2015-11-02 14:44:29 +02:00
Serhiy Storchaka
f51d715845
Issue #25523 : Further a-to-an corrections new in 3.5.
2015-11-02 14:40:41 +02:00
Serhiy Storchaka
a84f6c3dd3
Issue #25523 : Merge a-to-an corrections from 3.4.
2015-11-02 14:39:05 +02:00
Raymond Hettinger
df8f5b56c9
Minor cleanup.
2015-11-02 07:27:40 -05:00
Serhiy Storchaka
d65c9496da
Issue #25523 : Further a-to-an corrections.
2015-11-02 14:10:23 +02:00
Raymond Hettinger
a1fc949b5a
Issue #24379 : Revert the operator.subscript patch (dccc4e63aef5) pending resolution of the related refcnt leak.
2015-11-02 00:39:56 -05:00
Raymond Hettinger
0bdf9ea136
merge
2015-11-02 00:04:46 -05:00
Raymond Hettinger
67b97b8f8d
Move the initial start-search out of the main loop so it can be factored-out later.
2015-11-01 23:57:37 -05:00
Martin Panter
e56a919100
Issue #25523 : Merge a-to-an corrections from 3.5
2015-11-02 04:27:17 +00:00
Martin Panter
d2ad5718ad
Issue #25523 : Further a-to-an corrections new in 3.5
2015-11-02 04:20:33 +00:00
Martin Panter
2eb819f7a8
Issue #25523 : Merge "a" to "an" fixes from 3.4 into 3.5
2015-11-02 04:04:57 +00:00
Martin Panter
7462b64911
Issue #25523 : Correct "a" article to "an" article
...
This changes the main documentation, doc strings, source code comments, and a
couple error messages in the test suite. In some cases the word was removed
or edited some other way to fix the grammar.
2015-11-02 03:37:02 +00:00
Serhiy Storchaka
9785261d68
Issue #18973 : Command-line interface of the calendar module now uses argparse
...
instead of optparse.
2015-11-01 17:14:27 +02:00
Serhiy Storchaka
17bdf2015d
Issue #25510 : fileinput.FileInput.readline() now returns b'' instead of ''
...
at the end if the FileInput was opened with binary mode.
Patch by Ryosuke Ito.
2015-11-01 16:45:54 +02:00
Serhiy Storchaka
56275dc1e2
Issue #25510 : fileinput.FileInput.readline() now returns b'' instead of ''
...
at the end if the FileInput was opened with binary mode.
Patch by Ryosuke Ito.
2015-11-01 16:45:26 +02:00
Serhiy Storchaka
314464d0ab
Issue #25510 : fileinput.FileInput.readline() now returns b'' instead of ''
...
at the end if the FileInput was opened with binary mode.
Patch by Ryosuke Ito.
2015-11-01 16:43:58 +02:00
Serhiy Storchaka
9b69491901
Issue #25395 : Fixed crash when highly nested OrderedDict structures were
...
garbage collected.
2015-11-01 16:13:45 +02:00
Serhiy Storchaka
14eefe353e
Issue #25395 : Fixed crash when highly nested OrderedDict structures were
...
garbage collected.
2015-11-01 16:12:34 +02:00
Berker Peksag
75a81409c5
Fix typo noticed by Alec Nunn
2015-11-01 00:55:31 +03:00
Berker Peksag
964ec8b2f3
Fix typo noticed by Alec Nunn
2015-11-01 00:55:12 +03:00
Steve Dower
bfb03a470c
Merge from 3.5
2015-10-31 13:07:44 -07:00
Steve Dower
04a4316acc
Issue #25450 : Updates shortcuts to start Python in installation directory.
2015-10-31 12:41:46 -07:00
Steve Dower
940f6a8f11
Improves handling of test markers for building Python without intefering with actual installs.
2015-10-31 12:17:11 -07:00
Yury Selivanov
22d4553acb
Merge 3.5
2015-10-31 13:34:01 -04:00