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
Victor Stinner
95701bdf40
Issue #19512 : Add PyRun_InteractiveOneObject() function
...
Only decode the filename once. PyRun_InteractiveOneObject() uses an identifier
for "<string>" string, so the byte string is only decoded once.
2013-11-06 18:41:07 +01:00
Victor Stinner
4ee41c5839
Issue #19512 : _print_total_refs() now uses an identifier to get "showrefcount"
...
key from sys._xoptions
2013-11-06 18:28:21 +01:00
Victor Stinner
d02fbb8f71
Issue #19512 : sys_displayhook() now uses an identifier for "builtins"
...
dictionary key and only decodes "\n" string once to write a newline.
So "builtins" and "\n" are only decoded once from UTF-8, at the first call.
2013-11-06 18:27:13 +01:00
Christian Heimes
6853108ccd
Issue #18582 : fix memory leak in pbkdf2 code
2013-11-06 17:25:17 +01:00
Nick Coghlan
95887b7e5b
Remove incorrect comment from dis tests
2013-11-06 22:17:39 +10:00
Nick Coghlan
07155c9c14
Fix typo in updated dis docs
2013-11-06 22:12:07 +10:00
Nick Coghlan
90b8e7d2bc
Close #19378 : address flaws in the new dis module APIs
...
- confusing line_offset parameter -> first_line parameter
- systematically test and fix new file parameter
- remove redundant Bytecode.show_info() API
- rename Bytecode.display_code() to Bytecode.dis() and have it
return the multi-line string rather than printing it directly
- eliminated some not-so-helpful helpers from the bytecode_helper
test support module
Also fixed a longstanding defect (worked around in the test suite)
where lines emitted by the dis module could include trailing white
space. That no longer happens, allowing the formatting tests to be
simplified to use plain string comparisons.
2013-11-06 22:08:36 +10:00
Zachary Ware
e0881f464c
#19439 : Update PCbuild/readme.txt with new sub-project
2013-11-05 21:55:46 -06:00
Victor Stinner
05f31bfef3
doc: fix typo
2013-11-06 01:48:45 +01:00
Serhiy Storchaka
24f125871b
Revert wrong change in previous commit (issue #19085 ).
2013-11-05 22:02:17 +02:00
Serhiy Storchaka
7c934da0ff
Revert wrong change in previous commit (issue #19085 ).
2013-11-05 22:01:46 +02:00
Serhiy Storchaka
96c01686aa
Fix test_insertwidth Tkinter tests on Tk 8.5 with patchlevel >= 8.5.12 (issue #19085 ).
2013-11-05 21:06:05 +02:00
Serhiy Storchaka
8f9f5870d3
Fix test_insertwidth Tkinter tests on Tk 8.5 with patchlevel >= 8.5.12 (issue #19085 ).
2013-11-05 21:05:10 +02:00
Serhiy Storchaka
17972a746a
Fix typo in tkinter tests (issue #19085 ).
2013-11-05 20:18:17 +02:00
Serhiy Storchaka
98555f3ac7
Fix typo in tkinter tests (issue #19085 ).
2013-11-05 20:17:50 +02:00
Victor Stinner
98e818b8e3
Issue #19437 : Fix compiler_class(), handle compiler_lookup_arg() failure
2013-11-05 18:07:34 +01:00
Victor Stinner
357f5155dc
Issue #19437 : Fix _threading.RLock constructor (rlock_new), call
...
Py_DECREF(self) if PyThread_allocate_lock() failed instead of calling directly
type->tp_free(self), to keep the chained list of objects consistent when Python
is compiled in debug mode
fails, don't consume the row (restore it) and fail immediatly (don't call
pysqlite_step())
2013-11-05 15:10:19 +01:00
Victor Stinner
85a12a8beb
Issue #19437 : Fix pysqlite_cursor_iternext() of sqlite3, when the row factory
...
fails, don't consume the row (restore it) and fail immediatly (don't call
pysqlite_step())
2013-11-05 14:50:30 +01:00
Victor Stinner
b3e1ef1ce0
Issue #19437 : Fix pysqlite_connection_call() of sqlite3, return NULL when
...
PyList_Append() fails
2013-11-05 14:46:13 +01:00
Victor Stinner
dd4b299df1
Issue #19437 : Fix pysqlite_cursor_iternext() of sqlite3, handle
...
_pysqlite_fetch_one_row() failure
2013-11-05 14:30:11 +01:00
Tim Golden
607981402c
Issue #10197 Tweak docs for subprocess.getstatusoutput and align the documentation, the module docstring, and the function docstring.
2013-11-05 12:57:25 +00:00
Ned Deily
be47cffcb2
Issue #15663 : merge build-installer.py changes
2013-11-05 02:50:49 -08:00
Ned Deily
6fc5f98480
Issue #15663 : Revert OS X installer built-in Tcl/Tk support for 3.3.3.
...
Some third-party projects, such as matplotlib and PIL/Pillow,
depended on being able to build with Tcl and Tk frameworks in
/Library/Frameworks. They were unable to build with the built-in
Tcl/Tk and/or execute correctly.
2013-11-05 02:44:17 -08:00
Vinay Sajip
b2bc4df40c
Closes #18345 : Merged documentation update from 3.3.
2013-11-05 10:03:20 +00:00
Vinay Sajip
2c1adcb62b
Issue #18345 : Added cookbook example illustrating handler customisation.
2013-11-05 10:02:21 +00:00
Terry Jan Reedy
c1bd2fef8b
Merge with 3.3
2013-11-04 21:44:17 -05:00
Terry Jan Reedy
5c81164077
Issue #19397 : test_pydoc now works with -S (help not added to builtins).
...
Patch by Serhiy Storchaka and Vajrasky Kok.
2013-11-04 21:43:26 -05:00
Guido van Rossum
0eaa5ac9b5
asyncio: Refactor SIGCHLD handling. By Anthony Baire.
2013-11-04 15:50:46 -08:00
Guido van Rossum
ccea08462b
asyncio: Locks improvements by Arnaud Faure: better repr(), change Conditio\
...
n structure.
2013-11-04 13:18:19 -08:00
Serhiy Storchaka
b58d4a3209
Issue #19085 : Fix running test_ttk_textonly on displayless host.
2013-11-04 23:06:51 +02:00
Serhiy Storchaka
2028e01313
Issue #19085 : Fix running test_ttk_textonly on displayless host.
2013-11-04 23:05:37 +02:00
Serhiy Storchaka
20acaa7a0a
Issue #19085 : Fix Tkinter tests on Tk 8.5 with patchlevel < 8.5.12.
2013-11-04 22:11:43 +02:00
Serhiy Storchaka
8d8599ce0c
Issue #19085 : Fix Tkinter tests on Tk 8.5 with patchlevel < 8.5.12.
2013-11-04 22:11:12 +02:00
Nick Coghlan
3daaf5f89d
Fix functools.partialmethod docs and __all__
2013-11-04 23:32:16 +10:00
Victor Stinner
21ea21ef6d
Issue #19424 : PyUnicode_CompareWithASCIIString() normalizes memcmp() result
...
to -1, 0, 1
2013-11-04 11:28:26 +01:00
Victor Stinner
f0c7b2af05
Issue #16286 : remove duplicated identity check from unicode_compare()
...
Move the test to PyUnicode_Compare()
2013-11-04 11:27:14 +01:00
Victor Stinner
fd9e44db37
Issue #16286 : optimize PyUnicode_RichCompare() for identical strings (same
...
pointer) for any operator, not only Py_EQ and Py_NE.
Code of bytes_richcompare() and PyUnicode_RichCompare() is now closer.
2013-11-04 11:23:05 +01:00
Victor Stinner
c8bc5377ac
Issue #16286 : write a new subfunction bytes_compare_eq()
...
* cleanup bytes_richcompare()
* PyUnicode_RichCompare(): replace a test with a XOR
2013-11-04 11:08:10 +01:00
Georg Brandl
63d867e95c
merge with 3.3
2013-11-04 07:46:23 +01:00
Georg Brandl
975708ab4f
null-merge 3.2 backouts
2013-11-04 07:46:02 +01:00
Georg Brandl
ee7f3fc586
Backout 7d399099334d.
2013-11-04 07:44:29 +01:00
Georg Brandl
7b5d6adb28
Backout 265d369ad3b9.
2013-11-04 07:43:41 +01:00
Georg Brandl
7ec3e56bb8
Backout d80207d15294.
2013-11-04 07:43:32 +01:00