summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* assertEquals is deprecated, use assertEqual instead.Antoine Pitrou2014-01-091-8/+8
|
* Issue #13107: argparse and optparse no longer raises an exception when outputSerhiy Storchaka2014-01-095-6/+102
|\ | | | | | | | | a help on environment with too small COLUMNS. Based on patch by Elazar Gershuni.
| * Issue #13107: argparse and optparse no longer raises an exception when outputSerhiy Storchaka2014-01-096-6/+103
| | | | | | | | | | a help on environment with too small COLUMNS. Based on patch by Elazar Gershuni.
* | Try to fix test_ssl failures on some buildbotsAntoine Pitrou2014-01-091-2/+2
|\ \ | |/
| * Try to fix test_ssl failures on some buildbotsAntoine Pitrou2014-01-091-2/+2
| |
* | Issue #20207: Always disable SSLv2 except when PROTOCOL_SSLv2 is explicitly ↵Antoine Pitrou2014-01-093-10/+12
|\ \ | |/ | | | | asked for.
| * Remove conditional: it is useless at this point (OpenSSL headers are not yet ↵Antoine Pitrou2014-01-091-2/+0
| | | | | | | | included)
| * Issue #20207: Always disable SSLv2 except when PROTOCOL_SSLv2 is explicitly ↵Antoine Pitrou2014-01-093-8/+12
| | | | | | | | asked for.
* | Do not reset the line number because we already set file position to correctSerhiy Storchaka2014-01-092-8/+4
|\ \ | |/ | | | | | | | | value. (fixes error in patch for issue #18960)
| * Do not reset the line number because we already set file position to correctSerhiy Storchaka2014-01-092-8/+4
| | | | | | | | | | | | value. (fixes error in patch for issue #18960)
* | merge 3.3Benjamin Peterson2014-01-092-8/+6
|\ \ | |/
| * clear zip stat cache after each ref leak runBenjamin Peterson2014-01-092-9/+7
| |
* | Issue #18960: Fix bugs with Python source code encoding in the second line.Serhiy Storchaka2014-01-097-5/+87
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * The first line of Python script could be executed twice when the source encoding (not equal to 'utf-8') was specified on the second line. * Now the source encoding declaration on the second line isn't effective if the first line contains anything except a comment. * As a consequence, 'python -x' works now again with files with the source encoding declarations specified on the second file, and can be used again to make Python batch files on Windows. * The tokenize module now ignore the source encoding declaration on the second line if the first line contains anything except a comment. * IDLE now ignores the source encoding declaration on the second line if the first line contains anything except a comment. * 2to3 and the findnocoding.py script now ignore the source encoding declaration on the second line if the first line contains anything except a comment.
| * Issue #18960: Fix bugs with Python source code encoding in the second line.Serhiy Storchaka2014-01-097-5/+87
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * The first line of Python script could be executed twice when the source encoding (not equal to 'utf-8') was specified on the second line. * Now the source encoding declaration on the second line isn't effective if the first line contains anything except a comment. * As a consequence, 'python -x' works now again with files with the source encoding declarations specified on the second file, and can be used again to make Python batch files on Windows. * The tokenize module now ignore the source encoding declaration on the second line if the first line contains anything except a comment. * IDLE now ignores the source encoding declaration on the second line if the first line contains anything except a comment. * 2to3 and the findnocoding.py script now ignore the source encoding declaration on the second line if the first line contains anything except a comment.
* | merge 3.3Benjamin Peterson2014-01-091-3/+1
|\ \ | |/
| * fix zipimport ref leakBenjamin Peterson2014-01-091-3/+1
| |
* | Issue #20078: Reading malformed zipfiles no longer hangs with 100% CPUSerhiy Storchaka2014-01-093-0/+36
|\ \ | |/ | | | | consumption.
| * Issue #20078: Reading malformed zipfiles no longer hangs with 100% CPUSerhiy Storchaka2014-01-093-0/+36
| | | | | | | | consumption.
* | whatsnew: InspectLoader.get_code now concrete, b32decode raises binascii.Error.R David Murray2014-01-083-6/+18
| | | | | | | | And a news item rephrase.
* | Merge: Fix verb tense in base64 docs, and the phrasing of a news entry.R David Murray2014-01-082-4/+4
|\ \ | |/
| * Fix verb tense in base64 docs, and the phrasing of a news entry.R David Murray2014-01-082-4/+4
| |
* | whatsnew: FileIO.readall performance, os.cpu_count.R David Murray2014-01-082-4/+18
| | | | | | | | And more news item tweaks.
* | (Merge 3.3) Issue #20113: Fix test_posix on OpenIndianaVictor Stinner2014-01-081-2/+16
|\ \ | |/
| * Issue #20113: Fix test_posix on OpenIndianaVictor Stinner2014-01-081-2/+16
| |
* | (Merge 3.3) Issue #20113: os.readv() and os.writev() now raise an OSErrorVictor Stinner2014-01-084-10/+36
|\ \ | |/ | | | | exception on error instead of returning -1.
| * Issue #20113: os.readv() and os.writev() now raise an OSError exception onVictor Stinner2014-01-084-10/+36
| | | | | | | | error instead of returning -1.
* | Issue 19713: Remove PEP 451-related code that should have been factored out.Eric Snow2014-01-082-1240/+1191
| | | | | | | | | | | | This code was an artifact of issuing a DeprecationWarning for the lack of loader.exec_module(). However, we have deferred such warnings to later Python versions.
* | Fixes issue #19081: When a zipimport .zip file in sys.path being imported fromGregory P. Smith2014-01-083-67/+328
|\ \ | |/ | | | | | | | | is modified during the lifetime of the Python process after zipimport has already cached the zip's table of contents we detect this and recover rather than read bad data from the .zip (causing odd import errors).
| * Fixes Issue #19081: When a zipimport .zip file in sys.path being imported fromGregory P. Smith2014-01-083-66/+328
| | | | | | | | | | | | is modified during the lifetime of the Python process after zipimport has already cached the zip's table of contents we detect this and recover rather than read bad data from the .zip (causing odd import errors).
* | Fix typo in asyncio/streams.py.Guido van Rossum2014-01-081-1/+1
| |
* | Issue #19723: Missed one conversion to the new Argument Clinic syntax.Larry Hastings2014-01-071-3/+3
| |
* | Issue #19723: Fix issue number typo in Misc/NEWSZachary Ware2014-01-071-1/+1
| |
* | Issue #12837: Silence a Clang compiler warning on OS X.Brett Cannon2014-01-072-1/+21
| | | | | | | | | | | | | | | | Now makes CPython build without warnings on OS X under Clang with -Wno-unused-value -Wno-empty-body -Qunused-arguments -Wno-deprecated-declarations. Thanks to David Watson for taking an initial stab at a solution.
* | Issue #19719: Update various finder and loader ABCs such that theirBrett Cannon2014-01-074-8/+176
| | | | | | | | | | | | | | old methods now provide implementations when PEP 451 APIs are present. This should help with backwards-compatibility with code which has not been updated to work with PEP 451.
* | Issue #19273: The marker comments Argument Clinic uses have been changedLarry Hastings2014-01-0714-216/+220
| | | | | | | | to improve readability.
* | Issue #20157: When Argument Clinic renames a parameter because its nameLarry Hastings2014-01-073-5/+35
| | | | | | | | collides with a C keyword, it no longer exposes that rename to PyArg_Parse.
* | Issue #20141: Improved Argument Clinic's support for the PyArg_Parse "O!"Larry Hastings2014-01-075-4388/+4379
| | | | | | | | format unit.
* | Issue #20144: Argument Clinic now supports simple constants as parameterLarry Hastings2014-01-076-31/+152
| | | | | | | | | | default values. inspect.Signature correspondingly supports them in __text_signature__ fields for builtins.
* | whatsnew: expand 'dis' entry.R David Murray2014-01-072-8/+52
| | | | | | | | Also add one missing versionadded.
* | Issue #20072: Fixed multiple errors in tkinter with wantobjects is False.Serhiy Storchaka2014-01-077-71/+153
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Misc.image_names(), Misc.image_types(), Wm.wm_colormapwindows(), and LabelFrame.panes() now always return a tuple. * Fixed error of comparing str and int in tt.LabeledScale._adjust(). * ttk.Notebook.index() now always returns int. * ttk.Notebook.tabs() now always returns a tuple. * ttk.Entry.bbox() now always returns a tuple of ints. * ttk.Entry.validate() now always correctly works. * ttk.Combobox.current() now always returns int. * ttk.Panedwindow.sashpos() now always returns int. * ttk.Treeview.bbox() now always returns a tuple of ints. * ttk.Treeview.get_children() now always returns a tuple. * ttk.Treeview.exists() now always correctly works. * ttk.Treeview.index() now always returns int. * ttk.Treeview.tag_has() now always returns 0 or 1. * And numerous other errors in methods which returns a tuple, list or dict. * Fixed ttk tests for wantobjects is False.
| * Issue #20072: Fixed multiple errors in tkinter with wantobjects is False.Serhiy Storchaka2014-01-077-71/+153
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Misc.image_names(), Misc.image_types(), Wm.wm_colormapwindows(), and LabelFrame.panes() now always return a tuple. * Fixed error of comparing str and int in tt.LabeledScale._adjust(). * ttk.Notebook.index() now always returns int. * ttk.Notebook.tabs() now always returns a tuple. * ttk.Entry.bbox() now always returns a tuple of ints. * ttk.Entry.validate() now always correctly works. * ttk.Combobox.current() now always returns int. * ttk.Panedwindow.sashpos() now always returns int. * ttk.Treeview.bbox() now always returns a tuple of ints. * ttk.Treeview.get_children() now always returns a tuple. * ttk.Treeview.exists() now always correctly works. * ttk.Treeview.index() now always returns int. * ttk.Treeview.tag_has() now always returns 0 or 1. * And numerous other errors in methods which returns a tuple, list or dict. * Fixed ttk tests for wantobjects is False.
* | Issue #20096: Update the Python 2/3 porting HOWTO to focus onBrett Cannon2014-01-071-375/+223
| | | | | | | | source-compatibility instead of 2to3.
* | Issue #20162: test_hash_distribution() uses subTest() to mention the prefix inVictor Stinner2014-01-071-9/+10
| | | | | | | | the error message.
* | Issue 19713: Add PEP 451-related deprecations.Eric Snow2014-01-0715-4039/+4340
| |
* | Remove more usage of APIs deprecated by PEP 451.Eric Snow2014-01-073-14/+16
| |
* | Issue #19703: Update pydoc to use the new importer APIs.Eric Snow2014-01-073-4/+17
| |
* | Remove dead PEP 451 code.Eric Snow2014-01-072-22/+0
| |
* | asyncio: Fix deadlock in readexactly(). Fixes issue #20154.Guido van Rossum2014-01-072-10/+21
| |
* | whatsnew: ssl getpeercert/do_handshake raise OSError, weakref __callback__.R David Murray2014-01-062-13/+14
| | | | | | | | | | | | Also add a missing word to gc entry, and delete a now-obsolete doc note in the weakref __callback__ docs. (Opened an issue for rewriting the section that compares finalizers and __del__ method.)
* | whatsnew: pydoc.Scanner removal, check_output input parm, operator.py.R David Murray2014-01-061-2/+28
| | | | | | | | Also fleshed out the entry on struct.iter_unpack.