Stefan Krah
86e83a0347
Null merge.
2013-11-08 21:08:46 +01:00
Stefan Krah
2199ea96c0
Merge.
2013-11-08 20:37:01 +01:00
Brett Cannon
9e5aba29e2
remove dead import
2013-11-08 14:27:42 -05:00
Brett Cannon
9ea8eda127
Issue #16803 : test.test_importlib.source now tests frozen and source code
2013-11-08 14:25:37 -05:00
Stefan Krah
2915933f4f
Valgrind: suppress false positive in _PyOS_GetOpt (getopt.c:84) (Invalid read
...
of size 8: wcscmp (wcscmp.S:464))
2013-11-08 20:18:09 +01:00
Stefan Krah
3a9739016a
Valgrind: suppress false positive in _PyOS_GetOpt (getopt.c:84) (Invalid read
...
of size 8: wcscmp (wcscmp.S:464))
2013-11-08 20:18:09 +01:00
Charles-François Natali
3a4586a9f9
Issue #18923 : Update subprocess to use the new selectors module.
2013-11-08 19:56:59 +01:00
Brett Cannon
2ce6c44ae4
Simplify test.test_importlib.__main__
2013-11-08 13:35:34 -05:00
Brett Cannon
330f71b617
Issue #16803 : test.test_importlib.import_ now tests frozen and source code
2013-11-08 13:34:59 -05:00
Stefan Krah
2fdf4e7b9b
Move PyErr_NoMemory() closer to the failure.
2013-11-08 18:05:02 +01:00
Stefan Krah
f35b0274f9
Move PyErr_NoMemory() closer to the failure.
2013-11-08 18:05:02 +01:00
Stefan Krah
a0fd1f5a18
Change style to match the surrounding code (no early returns).
2013-11-08 17:48:58 +01:00
Stefan Krah
5ec6be9b50
Change style to match the surrounding code (no early returns).
2013-11-08 17:48:58 +01:00
Brett Cannon
a3c6963467
Issue #16803 : test.test_importlib.frozen now runs both frozen and source code
2013-11-08 11:10:41 -05:00
Victor Stinner
8ea86509ab
Issue #19512 , #19526 : Exclude the new _PyDict_DelItemId() function from the
...
stable ABI
2013-11-08 14:07:11 +01:00
Victor Stinner
70e11acdbd
Issue #19437 : Fix datetime_subtract(), handle new_delta() failure
2013-11-08 00:50:58 +01:00
Victor Stinner
aa5bbfaa77
Issue #19437 : Fix _io._IOBase.close(), handle _PyObject_SetAttrId() failure
2013-11-08 00:29:41 +01:00
Victor Stinner
50abf2294e
Issue #19437 : Fix fsconvert_strdup(), raise a MemoryError on PyMem_Malloc()
...
failure
2013-11-07 23:56:10 +01:00
Victor Stinner
66b3270975
_Py_normalize_encoding(): explain how the value 6 was computed
2013-11-07 23:12:23 +01:00
Victor Stinner
bd303c165b
Issue #19512 , #19515 : remove shared identifiers, move identifiers where they
...
are used.
Move also _Py_IDENTIFIER() defintions to the top in modified files to remove
identifiers duplicated in the same file.
2013-11-07 23:07:29 +01:00
Victor Stinner
07e9e380f9
frameobject.c: Use an identifer instead of creating explicitly an interned
...
string for "__builtins__" literal string
2013-11-07 22:22:39 +01:00
Victor Stinner
e8453bc136
C API doc: try to group concrete objects
2013-11-07 22:05:48 +01:00
Victor Stinner
324164172f
Issue #19514 : Add Andrei Dorian Duma to Misc/ACKS for changeset 4a09cc62419b
2013-11-07 21:50:55 +01:00
Victor Stinner
df23e30bea
Fix _Py_normalize_encoding(): ensure that buffer is big enough to store "utf-8"
...
if the input string is NULL
2013-11-07 13:33:36 +01:00
Martin v. Löwis
e75fc14813
Issue #19514 : Deduplicate some _Py_IDENTIFIER declarations.
...
Patch by Andrei Dorian Duma.
2013-11-07 18:46:53 +01:00
Guido van Rossum
d0293596b8
Remove redundant test_selectors.py from test_asyncio.
2013-11-07 09:25:36 -08:00
Ezio Melotti
a5b9599538
#17080 : improve error message of float/complex when the wrong type is passed.
2013-11-07 19:18:34 +02:00
Guido van Rossum
d0786a1a50
Optimize BaseSelector.modify(). Patch by Arnaud Faure.
2013-11-07 08:39:28 -08:00
Ezio Melotti
b7038817fe
#19480 : merge with 3.3.
2013-11-07 18:35:27 +02:00
Ezio Melotti
7165d8b9ba
#19480 : HTMLParser now accepts all valid start-tag names as defined by the HTML5 standard.
2013-11-07 18:33:24 +02:00
R David Murray
589327ea7a
Merge #18985 : Improve fcntl documentation.
2013-11-07 10:51:41 -05:00
R David Murray
d5a2f0b3a1
#18985 : Improve fcntl documentation.
...
Original patch by Vajrasky Kok, further improved (I hope) by me.
2013-11-07 10:51:07 -05:00
Victor Stinner
efa7a0e155
print_error_text() doesn't encode the filename anymore
...
Use aslo PyUnicode_FromFormat() to format the line so only one call to
PyFile_WriteObject() is needed. tb_displayline() of Python/traceback.c has
similar implementation.
2013-11-07 12:37:56 +01:00
Guido van Rossum
0b69fbc642
asyncio: Add close() back to Unix selector event loop, to remove all signal handlers. Should fix buildbot issues.
2013-11-06 20:25:50 -08:00
Victor Stinner
79ed4c744a
remove an outdated comment
...
The comment is meaningless since changeset 4e985a96a612.
2013-11-07 00:53:56 +01:00
Victor Stinner
53e9ec48e5
Issue #19512 : Use the new _PyId_builtins identifier
2013-11-07 00:43:05 +01:00
Victor Stinner
ad14ccd047
Issue #19512 : add _PyUnicode_CompareWithId() function
...
_PyUnicode_CompareWithId() is faster than PyUnicode_CompareWithASCIIString()
when both strings are equal and interned.
Add also _PyId_builtins identifier for "builtins" common string.
2013-11-07 00:46:04 +01:00
Victor Stinner
937114f704
print_exception(): don't encode the module name to UTF-8
...
Replace _PyUnicode_AsString()+strcmp() with PyUnicode_CompareWithASCIIString().
2013-11-07 00:12:30 +01:00
Victor Stinner
eaa2883d15
Issue #19512 : builtin print() function uses an identifier instead of literal
...
string "flush" to call the flush method
2013-11-07 00:01:51 +01:00
Victor Stinner
e7f516cbb8
Issue #19512 : _count_elements() of _collections reuses PyId_get identifier
...
instead of literal "get" string
2013-11-06 23:52:55 +01:00
Victor Stinner
d9d0419a9f
Issue #19512 : fileio_init() reuses PyId_name identifier instead of "name"
...
literal string
2013-11-06 23:50:10 +01:00
Victor Stinner
ae9f161b43
Issue #19512 : __build_class() builtin now uses an identifier for the "metaclass" string
2013-11-06 22:46:51 +01:00
Victor Stinner
090543736f
Issue #19512 : add some common identifiers to only create common strings once,
...
instead of creating temporary Unicode string objects
Add also more identifiers in pythonrun.c to avoid temporary Unicode string
objets for the interactive interpreter.
2013-11-06 22:41:44 +01:00
Victor Stinner
bb52020d44
Issue #19512 : pickle now uses an identifier to only create the Unicode string
...
"modules" once
2013-11-06 22:40:41 +01:00
Victor Stinner
cab75e3e1e
Issue #19512 : PRINT_EXPR bytecode now uses an identifier to get sys.displayhook
...
to only create the "displayhook" string once
2013-11-06 22:38:37 +01:00
Victor Stinner
d67bd45537
Issue #19512 : Add _PySys_GetObjectId() and _PySys_SetObjectId() functions
2013-11-06 22:36:40 +01:00
Victor Stinner
b44562b6b9
Issue #19512 : eval() and exec() now use an identifier for "__builtins__" string
2013-11-06 19:03:11 +01:00
Victor Stinner
3688aa9a04
Issue #19512 : type_abstractmethods() and type_set_abstractmethods() now use an
...
identifier for the "__abstractmethods__" string
2013-11-06 18:59:18 +01:00
Victor Stinner
5fd2e5ae8a
Issue #19512 : Add a new _PyDict_DelItemId() function, similar to
...
PyDict_DelItemString() but using an identifier for the key
2013-11-06 18:58:22 +01:00
Victor Stinner
7a07e451a4
Issue #19512 : Py_ReprEnter() and Py_ReprLeave() now use an identifier for the
...
"Py_Repr" dictionary key
2013-11-06 18:57:29 +01:00