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.
12 years ago
Victor Stinner
937114f704
print_exception(): don't encode the module name to UTF-8
Replace _PyUnicode_AsString()+strcmp() with PyUnicode_CompareWithASCIIString().
12 years ago
Victor Stinner
eaa2883d15
Issue #19512 : builtin print() function uses an identifier instead of literal
string "flush" to call the flush method
12 years ago
Victor Stinner
e7f516cbb8
Issue #19512 : _count_elements() of _collections reuses PyId_get identifier
instead of literal "get" string
12 years ago
Victor Stinner
d9d0419a9f
Issue #19512 : fileio_init() reuses PyId_name identifier instead of "name"
literal string
12 years ago
Victor Stinner
ae9f161b43
Issue #19512 : __build_class() builtin now uses an identifier for the "metaclass" string
12 years ago
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.
12 years ago
Victor Stinner
bb52020d44
Issue #19512 : pickle now uses an identifier to only create the Unicode string
"modules" once
12 years ago
Victor Stinner
cab75e3e1e
Issue #19512 : PRINT_EXPR bytecode now uses an identifier to get sys.displayhook
to only create the "displayhook" string once
12 years ago
Victor Stinner
d67bd45537
Issue #19512 : Add _PySys_GetObjectId() and _PySys_SetObjectId() functions
12 years ago
Victor Stinner
b44562b6b9
Issue #19512 : eval() and exec() now use an identifier for "__builtins__" string
12 years ago
Victor Stinner
3688aa9a04
Issue #19512 : type_abstractmethods() and type_set_abstractmethods() now use an
identifier for the "__abstractmethods__" string
12 years ago
Victor Stinner
5fd2e5ae8a
Issue #19512 : Add a new _PyDict_DelItemId() function, similar to
PyDict_DelItemString() but using an identifier for the key
12 years ago
Victor Stinner
7a07e451a4
Issue #19512 : Py_ReprEnter() and Py_ReprLeave() now use an identifier for the
"Py_Repr" dictionary key
12 years ago
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.
12 years ago
Victor Stinner
4ee41c5839
Issue #19512 : _print_total_refs() now uses an identifier to get "showrefcount"
key from sys._xoptions
12 years ago
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.
12 years ago
Christian Heimes
6853108ccd
Issue #18582 : fix memory leak in pbkdf2 code
12 years ago
Nick Coghlan
95887b7e5b
Remove incorrect comment from dis tests
12 years ago
Nick Coghlan
07155c9c14
Fix typo in updated dis docs
12 years ago
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.
12 years ago
Zachary Ware
e0881f464c
#19439 : Update PCbuild/readme.txt with new sub-project
12 years ago
Victor Stinner
05f31bfef3
doc: fix typo
12 years ago
Serhiy Storchaka
24f125871b
Revert wrong change in previous commit (issue #19085 ).
12 years ago
Serhiy Storchaka
7c934da0ff
Revert wrong change in previous commit (issue #19085 ).
12 years ago
Serhiy Storchaka
96c01686aa
Fix test_insertwidth Tkinter tests on Tk 8.5 with patchlevel >= 8.5.12 (issue #19085 ).
12 years ago
Serhiy Storchaka
8f9f5870d3
Fix test_insertwidth Tkinter tests on Tk 8.5 with patchlevel >= 8.5.12 (issue #19085 ).
12 years ago
Serhiy Storchaka
17972a746a
Fix typo in tkinter tests (issue #19085 ).
12 years ago
Serhiy Storchaka
98555f3ac7
Fix typo in tkinter tests (issue #19085 ).
12 years ago
Victor Stinner
98e818b8e3
Issue #19437 : Fix compiler_class(), handle compiler_lookup_arg() failure
12 years ago
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())
12 years ago
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())
12 years ago
Victor Stinner
b3e1ef1ce0
Issue #19437 : Fix pysqlite_connection_call() of sqlite3, return NULL when
PyList_Append() fails
12 years ago
Victor Stinner
dd4b299df1
Issue #19437 : Fix pysqlite_cursor_iternext() of sqlite3, handle
_pysqlite_fetch_one_row() failure
12 years ago
Tim Golden
607981402c
Issue #10197 Tweak docs for subprocess.getstatusoutput and align the documentation, the module docstring, and the function docstring.
12 years ago
Ned Deily
be47cffcb2
Issue #15663 : merge build-installer.py changes
12 years ago
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.
12 years ago
Vinay Sajip
b2bc4df40c
Closes #18345 : Merged documentation update from 3.3.
12 years ago
Vinay Sajip
2c1adcb62b
Issue #18345 : Added cookbook example illustrating handler customisation.
12 years ago
Terry Jan Reedy
c1bd2fef8b
Merge with 3.3
12 years ago
Terry Jan Reedy
5c81164077
Issue #19397 : test_pydoc now works with -S (help not added to builtins).
Patch by Serhiy Storchaka and Vajrasky Kok.
12 years ago
Guido van Rossum
0eaa5ac9b5
asyncio: Refactor SIGCHLD handling. By Anthony Baire.
12 years ago
Guido van Rossum
ccea08462b
asyncio: Locks improvements by Arnaud Faure: better repr(), change Conditio\
n structure.
12 years ago
Serhiy Storchaka
b58d4a3209
Issue #19085 : Fix running test_ttk_textonly on displayless host.
12 years ago
Serhiy Storchaka
2028e01313
Issue #19085 : Fix running test_ttk_textonly on displayless host.
12 years ago
Serhiy Storchaka
20acaa7a0a
Issue #19085 : Fix Tkinter tests on Tk 8.5 with patchlevel < 8.5.12.
12 years ago
Serhiy Storchaka
8d8599ce0c
Issue #19085 : Fix Tkinter tests on Tk 8.5 with patchlevel < 8.5.12.
12 years ago
Nick Coghlan
3daaf5f89d
Fix functools.partialmethod docs and __all__
12 years ago
Victor Stinner
21ea21ef6d
Issue #19424 : PyUnicode_CompareWithASCIIString() normalizes memcmp() result
to -1, 0, 1
12 years ago
Victor Stinner
f0c7b2af05
Issue #16286 : remove duplicated identity check from unicode_compare()
Move the test to PyUnicode_Compare()
12 years ago