Commit Graph

81781 Commits

Author SHA1 Message Date
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
Georg Brandl e051b55049 Note that examples are sorted only for convenience. 2013-11-04 07:30:50 +01:00
Ned Deily db5ab780e8 Issue #15392: merge from 3.3 2013-11-03 20:09:51 -08:00
Ned Deily c3909e5af7 Issue #15392: Install idlelib/idle_test. 2013-11-03 20:08:53 -08:00
Zachary Ware 9083db602d Null merge 3.3 2013-11-03 21:51:42 -06:00
Zachary Ware 200bcbc348 Issue #19391: Clean up PCbuild/readme.txt 2013-11-03 21:48:54 -06:00
R David Murray bd90d09dd0 #18678: Correct names of spwd struct members.
The old names (sp_nam and sp_pwd) are kept for backward compatibility.  Since
this is a long standing bug that hasn't caused any real-world problems, I'm
not backporting it.  However, it is worth fixing because the corrected names
match the documentation, and more importantly now match the C struct, just
like the other struct members.

Patch by Vajrasky Kok.
2013-11-03 19:54:05 -05:00
Ned Deily ed4500fb66 Issue #18702 null merge 2013-11-03 15:34:37 -08:00
Serhiy Storchaka 43767638a9 Issue #18702: All skipped tests now reported as skipped. 2013-11-03 21:31:38 +02:00
Serhiy Storchaka 7908068627 Issue #18702: All skipped tests now reported as skipped. 2013-11-03 21:31:18 +02:00
Tim Golden 834856aca9 Merge 2013-11-03 18:27:40 +00:00
Tim Golden 7a07cc90c7 Merge 2013-11-03 18:27:07 +00:00
Tim Golden 2964138371 Issue #10197: Indicate availability of subprocess.get[status]output on Windows and add a note about the effects of universal newlines 2013-11-03 18:25:51 +00:00
Tim Golden 3a2abb5800 Issue #10197: Indicate availability of subprocess.get[status]output on Windows and add a note about the effects of universal newlines 2013-11-03 18:24:50 +00:00