summaryrefslogtreecommitdiffstats
path: root/Misc
Commit message (Collapse)AuthorAgeFilesLines
* Issue #20226: Major improvements to Argument Clinic.Larry Hastings2014-01-161-0/+3
| | | | | | | | | | | | | | | | | | | | | | | * You may now specify an expression as the default value for a parameter! Example: "sys.maxsize - 1". This support is intentionally quite limited; you may only use values that can be represented as static C values. * Removed "doc_default", simplified support for "c_default" and "py_default". (I'm not sure we still even need "py_default", but I'm leaving it in for now in case a use presents itself.) * Parameter lines support a trailing '\\' as a line continuation character, allowing you to break up long lines. * The argument parsing code generated when supporting optional groups now uses PyTuple_GET_SIZE instead of PyTuple_GetSize, leading to a 850% speedup in parsing. (Just kidding, this is an unmeasurable difference.) * A bugfix for the recent regression where the generated prototype from pydoc for builtins would be littered with unreadable "=<object ...>"" default values for parameters that had no default value. * Converted some asserts into proper failure messages. * Many doc improvements and fixes.
* Issue #19936: Added executable bits or shebang lines to Python scripts whichSerhiy Storchaka2014-01-161-0/+6
|\ | | | | | | | | | | | | requires them. Disable executable bits and shebang lines in test and benchmark files in order to prevent using a random system python, and in source files of modules which don't provide command line interface. Fixed shebang lines in the unittestgui and checkpip scripts.
| * Issue #19936: Added executable bits or shebang lines to Python scripts whichSerhiy Storchaka2014-01-161-0/+6
| | | | | | | | | | | | | | requires them. Disable executable bits and shebang lines in test and benchmark files in order to prevent using a random system python, and in source files of modules which don't provide command line interface. Fixed shebang line to use python3 executable in the unittestgui script.
* | Issue #14455: Fix some issues with plistlibRonald Oussoren2014-01-151-0/+2
| | | | | | | | | | | | | | | | | | | | * Negative integer support in binary plists was broken * Better exception for invalid data * Fix the versionadded/versionchanged markup in the documentation * Add the interface cleanup to what's new for 3.4
* | Issue #20268: Argument Clinic now supports cloning the parametersLarry Hastings2014-01-151-0/+3
| | | | | | | | and return converter from existing functions.
* | Issue #20255: Update the about and bugs pages.Zachary Ware2014-01-141-0/+2
|\ \ | |/
| * Issue #20255: Update the about and bugs pages.Zachary Ware2014-01-141-0/+2
| |
* | Closes #20253: Merge typo fixZachary Ware2014-01-141-0/+3
|\ \ | |/
| * Issue #20253: Fixed a typo in the ipaddress docs that advertised anZachary Ware2014-01-141-0/+3
| | | | | | | | illegal attribute name. Found by INADA Naoki.
| * merge 3.2 (#20246)Benjamin Peterson2014-01-142-0/+3
| |\
| | * complain when nbytes > buflen to fix possible buffer overflow (closes #20246)Benjamin Peterson2014-01-142-0/+3
| | |
* | | merge 3.3 (#20246)Benjamin Peterson2014-01-142-0/+3
| | |
* | | Closes #20242: Merged fix from 3.3.Vinay Sajip2014-01-131-0/+3
|\ \ \ | |/ /
| * | Issue #20242: Fixed basicConfig() format strings for the alternative ↵Vinay Sajip2014-01-131-0/+3
| | | | | | | | | | | | formatting styles.
* | | Issue #20229: Avoid plistlib deprecation warning in platform.mac_ver().Ned Deily2014-01-131-0/+2
| | |
* | | Merge #20206, #5803: more efficient algorithm that doesn't truncate output.R David Murray2014-01-131-0/+4
|\ \ \ | |/ / | | | | | | (No idea why test_tarfile is listed as changed...it isn't.)
| * | #20206, #5803: more efficient algorithm that doesn't truncate output.R David Murray2014-01-131-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | This fixes an edge case (20206) where if the input ended in a character needing encoding but there was no newline on the string, the last byte of the encoded character would be dropped. The fix is to use a more efficient algorithm, provided by Serhiy Storchaka (5803), that does not have the bug.
* | | merge from 3.3Senthil Kumaran2014-01-131-0/+3
|\ \ \ | |/ / | | | | | | Issue #19082: Working xmlrpc.server and xmlrpc.client examples. Both in modules and in documentation.
| * | Issue #19082: Working xmlrpc.server and xmlrpc.client examples. Both in ↵Senthil Kumaran2014-01-131-0/+3
| | | | | | | | | | | | modules and in documentation.
* | | Issue #20228: Argument Clinic now has special support for class specialLarry Hastings2014-01-121-0/+3
| | | | | | | | | | | | methods.
* | | Issue #20214: Fixed a number of small issues and documentation errors inLarry Hastings2014-01-121-0/+3
| | | | | | | | | | | | Argument Clinic (see issue for details).
* | | Issue #20196: Fixed a bug where Argument Clinic did not generate correctLarry Hastings2014-01-121-0/+4
| | | | | | | | | | | | | | | parsing code for functions with positional-only parameters where all arguments are optional.
* | | Issue #20138: The wsgiref.application_uri() and wsgiref.request_uri()Serhiy Storchaka2014-01-121-0/+3
|\ \ \ | |/ / | | | | | | functions now conform to PEP 3333 when handle non-ASCII URLs.
| * | Issue #20138: The wsgiref.application_uri() and wsgiref.request_uri()Serhiy Storchaka2014-01-121-0/+3
| | | | | | | | | | | | functions now conform to PEP 3333 when handle non-ASCII URLs.
* | | Fixed incorrect merge in 1638360eea41.Serhiy Storchaka2014-01-121-5/+1
| | |
* | | Issue19995: issue deprecation warning for non-integer values to %c, %o, %x, %XEthan Furman2014-01-121-2/+2
| | |
* | | merge from 3.3Senthil Kumaran2014-01-121-0/+7
|\ \ \ | |/ / | | | | | | | | | | | | Issue #19092 - Raise a correct exception when cgi.FieldStorage is given an invalid file-obj. Also use __bool__ to determine the bool of the FieldStorage object.
| * | Issue #19092 - Raise a correct exception when cgi.FieldStorage is given anSenthil Kumaran2014-01-121-0/+3
| | | | | | | | | | | | | | | invalid file-obj. Also use __bool__ to determine the bool of the FieldStorage object.
| * | fix build when SCHED_SPORADIC is defined (closes #20217)Benjamin Peterson2014-01-101-0/+2
| | |
* | | Issue #19804: The test_find_mac test in test_uuid is now skipped if theSerhiy Storchaka2014-01-101-0/+3
|\ \ \ | |/ / | | | | | | ifconfig executable is not available.
| * | Issue #19804: The test_find_mac test in test_uuid is now skipped if theSerhiy Storchaka2014-01-101-0/+3
| | | | | | | | | | | | ifconfig executable is not available.
* | | Issue #19886: Use better estimated memory requirements for bigmem tests.Serhiy Storchaka2014-01-101-0/+5
|\ \ \ | |/ / | | | | | | Incorrect requirements can cause memory swapping.
| * | Issue #19886: Use better estimated memory requirements for bigmem tests.Serhiy Storchaka2014-01-101-0/+2
| | | | | | | | | | | | Incorrect requirements can cause memory swapping.
* | | Issue #20152: import.c now uses Argument Clinic.Brett Cannon2014-01-101-0/+2
| | |
* | | Issue #13107: argparse and optparse no longer raises an exception when outputSerhiy Storchaka2014-01-091-0/+4
|\ \ \ | |/ / | | | | | | | | | 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-092-0/+5
| | | | | | | | | | | | | | | a help on environment with too small COLUMNS. Based on patch by Elazar Gershuni.
* | | Issue #20207: Always disable SSLv2 except when PROTOCOL_SSLv2 is explicitly ↵Antoine Pitrou2014-01-091-0/+3
|\ \ \ | |/ / | | | | | | asked for.
| * | Issue #20207: Always disable SSLv2 except when PROTOCOL_SSLv2 is explicitly ↵Antoine Pitrou2014-01-091-0/+3
| | | | | | | | | | | | asked for.
* | | Issue #18960: Fix bugs with Python source code encoding in the second line.Serhiy Storchaka2014-01-091-0/+20
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-091-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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 #20078: Reading malformed zipfiles no longer hangs with 100% CPUSerhiy Storchaka2014-01-091-0/+3
|\ \ \ | |/ / | | | | | | consumption.
| * | Issue #20078: Reading malformed zipfiles no longer hangs with 100% CPUSerhiy Storchaka2014-01-091-0/+3
| | | | | | | | | | | | consumption.
* | | whatsnew: InspectLoader.get_code now concrete, b32decode raises binascii.Error.R David Murray2014-01-081-2/+2
| | | | | | | | | | | | And a news item rephrase.
* | | Merge: Fix verb tense in base64 docs, and the phrasing of a news entry.R David Murray2014-01-081-3/+3
|\ \ \ | |/ /
| * | Fix verb tense in base64 docs, and the phrasing of a news entry.R David Murray2014-01-081-3/+3
| | |
* | | whatsnew: FileIO.readall performance, os.cpu_count.R David Murray2014-01-081-4/+6
| | | | | | | | | | | | And more news item tweaks.
* | | (Merge 3.3) Issue #20113: os.readv() and os.writev() now raise an OSErrorVictor Stinner2014-01-081-0/+3
|\ \ \ | |/ / | | | | | | exception on error instead of returning -1.
| * | Issue #20113: os.readv() and os.writev() now raise an OSError exception onVictor Stinner2014-01-081-0/+3
| | | | | | | | | | | | error instead of returning -1.
* | | Fixes issue #19081: When a zipimport .zip file in sys.path being imported fromGregory P. Smith2014-01-081-0/+5
|\ \ \ | |/ / | | | | | | | | | | | | 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-081-0/+5
| | | | | | | | | | | | | | | | | | 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).