Larry Hastings
5c66189e88
Issue #20189 : Four additional builtin types (PyTypeObject,
...
PyMethodDescr_Type, _PyMethodWrapper_Type, and PyWrapperDescr_Type)
have been modified to provide introspection information for builtins.
Also: many additional Lib, test suite, and Argument Clinic fixes.
2014-01-24 06:17:25 -08:00
Benjamin Peterson
8f81c3cf3f
merge 3.3 ( #20374 )
2014-01-24 00:33:25 -05:00
Benjamin Peterson
5f6bf55965
use new readline function types ( closes #20374 )
2014-01-24 00:32:12 -05:00
Terry Jan Reedy
8860443749
Merge with 3.3
2014-01-23 00:39:11 -05:00
Terry Jan Reedy
94338de49b
Issue #17390 : Add Python version to Idle editor window title bar.
...
Original patches by Edmond Burnett and Kent Johnson.
2014-01-23 00:36:46 -05:00
Nick Coghlan
d58831e688
Merge #20317 from 3.3
2014-01-22 23:04:37 +10:00
Nick Coghlan
09761e7c9c
Issue #20317 : Don't create a reference loop in ExitStack
2014-01-22 22:24:46 +10:00
Florent Xicluna
45e124e26d
Issue #17825 : Cursor ^ is correctly positioned for SyntaxError and IndentationError.
2014-01-22 01:16:25 +01:00
Florent Xicluna
758fa5ea81
Issue #17825 : Cursor ^ is correctly positioned for SyntaxError and IndentationError.
2014-01-22 01:11:43 +01:00
Serhiy Storchaka
2bd59daf58
Issue #2382 : SyntaxError cursor "^" now is written at correct position in most
...
cases when multibyte characters are in line (before "^"). This still not
works correctly with wide East Asian characters.
2014-01-21 22:29:47 +02:00
Serhiy Storchaka
65fd0592fb
Issue #2382 : SyntaxError cursor "^" now is written at correct position in most
...
cases when multibyte characters are in line (before "^"). This still not
works correctly with wide East Asian characters.
2014-01-21 22:26:52 +02:00
Victor Stinner
11da8e24ba
Issue #20311 : selector.PollSelector.select() now rounds the timeout away from
...
zero, instead of rounding towards zero. For example, a timeout of one
microsecond is now rounded to one millisecond, instead of being rounded to
zero.
Move also a test in test_epoll which was moved by my previous merge.
2014-01-21 01:48:28 +01:00
Victor Stinner
09354fd606
(Merge 3.3) Issue #20311 : select.epoll.poll() now rounds the timeout away from
...
zero, instead of rounding towards zero. For example, a timeout of one
microsecond is now rounded to one millisecond, instead of being rounded to
zero.
2014-01-21 01:42:11 +01:00
Victor Stinner
665486e0e7
Issue #20311 : select.epoll.poll() now rounds the timeout away from zero,
...
instead of rounding towards zero. For example, a timeout of one microsecond is
now rounded to one millisecond, instead of being rounded to zero.
2014-01-21 01:41:00 +01:00
Serhiy Storchaka
c46d1faa4a
Issue #20262 : Warnings are raised now when duplicate names are added in the
...
ZIP file or too long ZIP file comment is truncated.
2014-01-20 21:59:33 +02:00
Serhiy Storchaka
9b7a1a1af6
Issue #20262 : Warnings are raised now when duplicate names are added in the
...
ZIP file or too long ZIP file comment is truncated.
2014-01-20 21:57:40 +02:00
Stefan Krah
34e4628453
Merge from 3.3.
2014-01-20 15:35:38 +01:00
Stefan Krah
6c01e38677
Issue #19036 : Including locale.h should not depend on HAVE_LANGINFO_H.
2014-01-20 15:31:08 +01:00
Gregory P. Smith
5a6d4bf671
Fixes Issue #20165 : The unittest module no longer considers tests marked with
...
@expectedFailure successful if they pass.
2014-01-20 01:11:18 -08:00
Larry Hastings
b7ccb20423
Issue #20294 : Argument Clinic now supports argument parsing for __new__ and
...
__init__ functions.
2014-01-18 23:50:21 -08:00
Larry Hastings
b470575e24
Issue #20299 : Argument Clinic custom converters may now change the default
...
value of c_default and py_default with a class member.
2014-01-18 21:54:15 -08:00
Benjamin Peterson
bd22d39bae
merge 3.3 ( #18574 )
2014-01-18 22:32:05 -05:00
Benjamin Peterson
a96860c91c
correct news entry for #18574
2014-01-18 22:31:27 -05:00
Benjamin Peterson
c28ab08887
merge 3.3 ( #18574 )
2014-01-18 21:51:11 -05:00
Benjamin Peterson
3836593a2d
add Nikolaus Rath to ACKS
2014-01-18 21:50:35 -05:00
Benjamin Peterson
044242360d
fix handling of 100-continue status code ( closes #18574 )
2014-01-18 21:50:18 -05:00
Serhiy Storchaka
5d83d1a814
Issue #20270 : urllib.urlparse now supports empty ports.
2014-01-18 18:31:41 +02:00
Serhiy Storchaka
ff97b08d00
Issue #20270 : urllib.urlparse now supports empty ports.
2014-01-18 18:30:33 +02:00
Serhiy Storchaka
aee0e63ed0
Issue #20243 : TarFile no longer raise ReadError when opened in write mode.
2014-01-18 16:14:49 +02:00
Serhiy Storchaka
c2d01423e0
Issue #20243 : TarFile no longer raise ReadError when opened in write mode.
2014-01-18 16:14:10 +02:00
Serhiy Storchaka
7d68a1c921
Issue #20238 : TarFile opened with external fileobj and "w:gz" mode didn't
...
write complete output on close.
2014-01-18 15:53:39 +02:00
Serhiy Storchaka
9fbec7ad5e
Issue #20238 : TarFile opened with external fileobj and "w:gz" mode didn't
...
write complete output on close.
2014-01-18 15:53:05 +02:00
Serhiy Storchaka
ce644a09ac
Issue #20245 : The open functions in the tarfile module now correctly handle empty mode.
2014-01-18 15:37:21 +02:00
Serhiy Storchaka
53ad0cd284
Issue #20245 : The open functions in the tarfile module now correctly handle empty mode.
2014-01-18 15:35:37 +02:00
Larry Hastings
bebf73511a
Issue #20287 : Argument Clinic's output is now configurable, allowing
...
delaying its output or even redirecting it to a separate file.
2014-01-17 17:47:17 -08:00
Zachary Ware
601d366844
Issue #20265 : Merge with 3.3
2014-01-17 15:24:18 -06:00
Zachary Ware
c3cf97b4ea
Issue #20265 : Updated some parts of the Using Windows document.
...
Includes:
-mention cx_Freeze instead of py2exe (at least until py2exe supports Python 3)
-update ActivePython link
-Remove mention of platforms that were never supported by Python 3 (Win9x, DOS)
2014-01-17 15:23:42 -06:00
Zachary Ware
50c8583492
Merge typo/grammar fixes from 3.3.
2014-01-17 09:31:19 -06:00
Zachary Ware
6f8e81ada9
Fix some typos/grammar in current sections of NEWS.
2014-01-17 09:30:03 -06:00
Zachary Ware
77007344d9
Issue #20266 : Merge with 3.3
2014-01-17 09:00:36 -06:00
Zachary Ware
9fc0e9955d
Issue #20266 : Update parts of the Windows FAQ
2014-01-17 08:59:44 -06:00
Larry Hastings
2a727916c5
Issue #20226 : Major improvements to Argument Clinic.
...
* 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.
2014-01-16 11:32:01 -08:00
Serhiy Storchaka
8f8ec92de8
Issue #19936 : Added executable bits or shebang lines to Python scripts which
...
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.
2014-01-16 17:33:23 +02:00
Serhiy Storchaka
b992a0e102
Issue #19936 : Added executable bits or shebang lines to Python scripts which
...
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.
2014-01-16 17:15:49 +02:00
Ronald Oussoren
6db6653bbc
Issue #14455 : Fix some issues with plistlib
...
* 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
2014-01-15 11:32:35 +01:00
Larry Hastings
4a714d48ad
Issue #20268 : Argument Clinic now supports cloning the parameters
...
and return converter from existing functions.
2014-01-14 22:22:41 -08:00
Zachary Ware
af029de7b0
Issue #20255 : Update the about and bugs pages.
2014-01-14 16:03:51 -06:00
Zachary Ware
71337cb281
Issue #20255 : Update the about and bugs pages.
2014-01-14 16:03:11 -06:00
Zachary Ware
5c15424aa9
Closes #20253 : Merge typo fix
2014-01-14 09:10:33 -06:00
Zachary Ware
9774ce0cab
Issue #20253 : Fixed a typo in the ipaddress docs that advertised an
...
illegal attribute name. Found by INADA Naoki.
2014-01-14 09:09:48 -06:00
Benjamin Peterson
c6b37e21f5
merge 3.3 ( #20246 )
2014-01-13 23:14:42 -05:00
Benjamin Peterson
5688222907
merge 3.2 ( #20246 )
2014-01-13 23:12:55 -05:00
Benjamin Peterson
fbf648ebba
complain when nbytes > buflen to fix possible buffer overflow ( closes #20246 )
2014-01-13 22:59:38 -05:00
Vinay Sajip
30e6a64e76
Closes #20242 : Merged fix from 3.3.
2014-01-13 22:01:16 +00:00
Vinay Sajip
1fd1202072
Issue #20242 : Fixed basicConfig() format strings for the alternative formatting styles.
2014-01-13 21:59:56 +00:00
Ned Deily
936dfae2e2
Issue #20229 : Avoid plistlib deprecation warning in platform.mac_ver().
2014-01-13 11:34:19 -08:00
R David Murray
44fcaae90d
Merge #20206 , #5803 : more efficient algorithm that doesn't truncate output.
...
(No idea why test_tarfile is listed as changed...it isn't.)
2014-01-13 13:30:13 -05:00
R David Murray
2313e15578
#20206 , #5803 : more efficient algorithm that doesn't truncate output.
...
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.
2014-01-13 13:19:21 -05:00
Senthil Kumaran
95be7ff911
merge from 3.3
...
Issue #19082 : Working xmlrpc.server and xmlrpc.client examples. Both in modules and in documentation.
2014-01-12 16:07:59 -08:00
Senthil Kumaran
939e2db48d
Issue #19082 : Working xmlrpc.server and xmlrpc.client examples. Both in modules and in documentation.
2014-01-12 16:06:58 -08:00
Larry Hastings
8666e65206
Issue #20228 : Argument Clinic now has special support for class special
...
methods.
2014-01-12 14:12:59 -08:00
Larry Hastings
4a55fc5a9d
Issue #20214 : Fixed a number of small issues and documentation errors in
...
Argument Clinic (see issue for details).
2014-01-12 11:09:57 -08:00
Larry Hastings
583baa8fef
Issue #20196 : Fixed a bug where Argument Clinic did not generate correct
...
parsing code for functions with positional-only parameters where all arguments
are optional.
2014-01-12 08:49:30 -08:00
Serhiy Storchaka
61dab6e3fa
Issue #20138 : The wsgiref.application_uri() and wsgiref.request_uri()
...
functions now conform to PEP 3333 when handle non-ASCII URLs.
2014-01-12 12:09:38 +02:00
Serhiy Storchaka
0abbe8c090
Issue #20138 : The wsgiref.application_uri() and wsgiref.request_uri()
...
functions now conform to PEP 3333 when handle non-ASCII URLs.
2014-01-12 12:08:11 +02:00
Serhiy Storchaka
c8dadc375e
Fixed incorrect merge in 1638360eea41.
2014-01-12 12:01:13 +02:00
Ethan Furman
f9bba9c67f
Issue19995: issue deprecation warning for non-integer values to %c, %o, %x, %X
2014-01-11 23:20:58 -08:00
Senthil Kumaran
d87346c0ce
merge from 3.3
...
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.
2014-01-11 22:22:21 -08:00
Senthil Kumaran
b4cbb92fbe
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.
2014-01-11 22:20:16 -08:00
Benjamin Peterson
463753831c
fix build when SCHED_SPORADIC is defined ( closes #20217 )
2014-01-10 09:22:40 -06:00
Serhiy Storchaka
50471db565
Issue #19804 : The test_find_mac test in test_uuid is now skipped if the
...
ifconfig executable is not available.
2014-01-10 15:08:07 +02:00
Serhiy Storchaka
cce440fab8
Issue #19804 : The test_find_mac test in test_uuid is now skipped if the
...
ifconfig executable is not available.
2014-01-10 15:06:59 +02:00
Serhiy Storchaka
786ac7b27d
Issue #19886 : Use better estimated memory requirements for bigmem tests.
...
Incorrect requirements can cause memory swapping.
2014-01-10 13:39:27 +02:00
Serhiy Storchaka
4847e4e1f4
Issue #19886 : Use better estimated memory requirements for bigmem tests.
...
Incorrect requirements can cause memory swapping.
2014-01-10 13:37:54 +02:00
Brett Cannon
4caa61d20e
Issue #20152 : import.c now uses Argument Clinic.
2014-01-09 19:03:32 -05:00
Serhiy Storchaka
123e6d5b4b
Issue #13107 : argparse and optparse no longer raises an exception when output
...
a help on environment with too small COLUMNS. Based on patch by
Elazar Gershuni.
2014-01-09 23:18:41 +02:00
Serhiy Storchaka
f451112413
Issue #13107 : argparse and optparse no longer raises an exception when output
...
a help on environment with too small COLUMNS. Based on patch by
Elazar Gershuni.
2014-01-09 23:14:27 +02:00
Antoine Pitrou
78ace81c93
Issue #20207 : Always disable SSLv2 except when PROTOCOL_SSLv2 is explicitly asked for.
2014-01-09 20:09:03 +01:00
Antoine Pitrou
cd3d7cabef
Issue #20207 : Always disable SSLv2 except when PROTOCOL_SSLv2 is explicitly asked for.
2014-01-09 20:02:20 +01:00
Serhiy Storchaka
7282ff6d5b
Issue #18960 : Fix bugs with Python source code encoding in the second line.
...
* 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.
2014-01-09 18:41:59 +02:00
Serhiy Storchaka
768c16ce02
Issue #18960 : Fix bugs with Python source code encoding in the second line.
...
* 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.
2014-01-09 18:36:09 +02:00
Serhiy Storchaka
69fdbf9cb0
Issue #20078 : Reading malformed zipfiles no longer hangs with 100% CPU
...
consumption.
2014-01-09 14:53:41 +02:00
Serhiy Storchaka
5ce3f10aee
Issue #20078 : Reading malformed zipfiles no longer hangs with 100% CPU
...
consumption.
2014-01-09 14:50:20 +02:00
R David Murray
0ae7ae1fc9
whatsnew: InspectLoader.get_code now concrete, b32decode raises binascii.Error.
...
And a news item rephrase.
2014-01-08 18:16:02 -05:00
R David Murray
fdc58fd897
Merge: Fix verb tense in base64 docs, and the phrasing of a news entry.
2014-01-08 18:14:20 -05:00
R David Murray
78ee3289e9
Fix verb tense in base64 docs, and the phrasing of a news entry.
2014-01-08 18:09:29 -05:00
R David Murray
66bf12a58e
whatsnew: FileIO.readall performance, os.cpu_count.
...
And more news item tweaks.
2014-01-08 17:21:22 -05:00
Victor Stinner
149e540adf
(Merge 3.3) Issue #20113 : os.readv() and os.writev() now raise an OSError
...
exception on error instead of returning -1.
2014-01-08 15:26:12 +01:00
Victor Stinner
57ddf78b6b
Issue #20113 : os.readv() and os.writev() now raise an OSError exception on
...
error instead of returning -1.
2014-01-08 15:21:28 +01:00
Gregory P. Smith
2e385e2592
Fixes issue #19081 : When a zipimport .zip file in sys.path being imported from
...
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).
2014-01-07 18:34:23 -08:00
Gregory P. Smith
2bcbc14117
Fixes Issue #19081 : When a zipimport .zip file in sys.path being imported from
...
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).
2014-01-07 18:30:07 -08:00
Zachary Ware
e483d16c54
Issue #19723 : Fix issue number typo in Misc/NEWS
2014-01-07 16:01:28 -06:00
Brett Cannon
b05cbe61b3
Issue #12837 : Silence a Clang compiler warning on OS X.
...
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.
2014-01-07 17:01:01 -05:00
Brett Cannon
8d942296bb
Issue #19719 : Update various finder and loader ABCs such that their
...
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.
2014-01-07 15:52:42 -05:00
Larry Hastings
61272b77b0
Issue #19273 : The marker comments Argument Clinic uses have been changed
...
to improve readability.
2014-01-07 12:41:53 -08:00
Larry Hastings
9026113fd4
Issue #20157 : When Argument Clinic renames a parameter because its name
...
collides with a C keyword, it no longer exposes that rename to PyArg_Parse.
2014-01-07 12:21:08 -08:00
Larry Hastings
77561cccb2
Issue #20141 : Improved Argument Clinic's support for the PyArg_Parse "O!"
...
format unit.
2014-01-07 12:13:13 -08:00
Larry Hastings
16c5191ab3
Issue #20144 : Argument Clinic now supports simple constants as parameter
...
default values. inspect.Signature correspondingly supports them in
__text_signature__ fields for builtins.
2014-01-07 11:53:01 -08:00
Serhiy Storchaka
985b8dbe11
Issue #20072 : Fixed multiple errors in tkinter with wantobjects is False.
...
* 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.
2014-01-07 19:30:36 +02:00
Serhiy Storchaka
a21acb5d95
Issue #20072 : Fixed multiple errors in tkinter with wantobjects is False.
...
* 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.
2014-01-07 19:27:42 +02:00
Eric Snow
1500d49c22
Issue 19713: Add PEP 451-related deprecations.
2014-01-06 20:49:04 -07:00
Eric Snow
3a62d14b24
Issue #19703 : Update pydoc to use the new importer APIs.
2014-01-06 20:42:59 -07:00
Guido van Rossum
3845521b4b
asyncio: Fix deadlock in readexactly(). Fixes issue #20154 .
2014-01-06 16:09:18 -08:00
Larry Hastings
eb31e9d6ed
Issue #20143 : The line numbers reported in Argument Clinic errors are
...
now more accurate.
2014-01-06 11:10:08 -08:00
Larry Hastings
3f144c2ad7
Issue #20142 : Py_buffer variables generated by Argument Clinic are now
...
initialized with a default value.
2014-01-06 10:34:00 -08:00
Larry Hastings
b7f5dcadf2
Merge 3.4.0b2 release revisions back into mainline.
2014-01-06 07:24:19 -08:00
Larry Hastings
e7ee44e9ba
Post-release engineering; updated NEWS and version string.
2014-01-06 07:17:47 -08:00
Ethan Furman
df3ed242c0
Issue19995: %o, %x, %X now only accept ints
2014-01-05 06:50:30 -08:00
Larry Hastings
a6c55232ab
Bump version number for 3.4.0b2.
2014-01-05 04:40:25 -08:00
R David Murray
1d8bd67cca
Fix news entry to use updated name for XMLPullParser.
2014-01-05 00:30:03 -05:00
R David Murray
410d320703
whatsnew: XMLPullParser, plus some doc updates.
...
I was confused by the text saying that read_events "iterated", since it
actually returns an iterator (that's what a generator does) that the
caller must then iterate. So I tidied up the language. I'm not sure
what the sentence "Events provided in a previous call to read_events()
will not be yielded again." is trying to convey, so I didn't try to fix that.
Also fixed a couple more news items.
2014-01-04 23:52:50 -05:00
Eric Snow
aed5b22ead
Issue 20123: Fix pydoc.synopsis() for "binary" modules.
...
Also add missing tests to test_pydoc.
2014-01-04 20:38:11 -07:00
R David Murray
244ad600e9
whatsnew: removal of TYPE_INT64 from marshal.
...
Also update news entry for SMTPException; when I changed it from
IOError to OSError I forgot to update the news item.
2014-01-04 21:17:52 -05:00
R David Murray
9cf617bff9
whatsnew: logging TimedRotatingFileHandler atTime parameter.
2014-01-04 18:55:01 -05:00
R David Murray
4908f4a151
whatsnew: from __future__ string exception, attribute UTF-32 decoder speedup.
...
And more news entry clarifications.
2014-01-04 18:07:20 -05:00
R David Murray
b231b2be07
whatsnew: ppring string wrapping, string pickling optimization.
...
Also clarify some NEWS entries.
2014-01-04 17:11:23 -05:00
Martin v. Löwis
7476289873
Issue #17432 : Drop UCS2 from names of Unicode functions in python3.def.
2014-01-04 10:01:42 +01:00
Eric Snow
37148b27ac
Issue #19708 : Update pkgutil to use the new importer APIs.
2014-01-04 15:09:53 -07:00
Eric Snow
335e14dd1a
Issue #19713 : Move away from using find_module/load_module.
2014-01-04 15:09:28 -07:00
Eric Snow
d749c7ae68
Issue #19927 : Add __eq__ to path-based loaders in importlib.
2014-01-04 15:06:49 -07:00
Serhiy Storchaka
78194cd4e9
Merge heads
2014-01-04 22:49:40 +02:00
Larry Hastings
78cf85c669
Issue #19659 : Added documentation for Argument Clinic.
2014-01-04 12:44:57 -08:00
Serhiy Storchaka
3079328d29
Reverted changeset b72c5573c5e7 (issue #15027 ).
2014-01-04 22:44:01 +02:00
Larry Hastings
3cceb38486
Issue #19976 : Argument Clinic METH_NOARGS functions now always
...
take two parameters.
2014-01-04 11:09:09 -08:00
Serhiy Storchaka
583a93943c
Issue #15027 : Rewrite the UTF-32 encoder. It is now 1.6x to 3.5x faster.
2014-01-04 19:25:37 +02:00
Martin v. Löwis
6087646ec0
Merge with 3.3: Issue #17432 : Drop UCS2 from names of Unicode functions in python3.def.
2014-01-04 10:06:28 +01:00
Martin v. Löwis
1c0689c613
Issue #19526 : Exclude all new API from the stable ABI.
2014-01-03 21:36:49 +01:00
Martin v. Löwis
24e43308b7
* Issue #16113 : Remove sha3 module again.
...
Patch by Christian Heimes, with modifications.
2014-01-03 14:05:06 +01:00
Eric Snow
fbc785188d
Issue #20097 : Fix bad use of "self" in importlib's WindowsRegistryFinder.
2014-01-02 22:25:00 -07:00
Benjamin Peterson
3e6ab1715d
avoid parameter name clash ( closes #20108 )
2014-01-02 12:24:08 -06:00
Antoine Pitrou
1b02da95d2
Issue #20111 : pathlib.Path.with_suffix() now sanity checks the given suffix.
2014-01-03 00:07:17 +01:00
R David Murray
9025f1c5c4
whatsnew: sqlite3 uri parm, unittest.main defaultTest, ftplib.Netrc deprecation
2014-01-02 13:44:18 -05:00
Benjamin Peterson
c22eaecd53
merge 3.3 ( closes #20108 )
2014-01-02 12:26:50 -06:00
Martin v. Löwis
c70d4f4d79
Issue #19728 : Enable pip installation by default on Windows.
2014-01-02 14:12:30 +01:00
Antoine Pitrou
b672888092
Issue #20055 : Fix test_shutil under Windows with symlink privileges held.
...
Patch by Vajrasky Kok.
2014-01-01 02:51:58 +01:00
Antoine Pitrou
3f48ac98c0
Issue #20055 : Fix test_shutil under Windows with symlink privileges held.
...
Patch by Vajrasky Kok.
2014-01-01 02:50:45 +01:00
R David Murray
089305f8f6
Merge: Clarify the wording of a news entry.
2013-12-31 17:34:40 -05:00
R David Murray
b075cc0d76
Clarify the wording of a news entry.
2013-12-31 17:33:47 -05:00
R David Murray
33ef1aeb1e
whatsnew: mock called_with improvements, socket CAN_BCM support.
...
Also reworded the other entries in the socket section of whatsnew, as
well as a couple of unrelated news entries.
2013-12-31 16:04:50 -05:00
R David Murray
8b2d68245e
whatsnew: random.getrandbits performance.
...
Also fix a NEWS file issue number error, and some spacing fixes in whatsnew.
2013-12-31 15:06:05 -05:00
R David Murray
2691ee6183
whatsnew: abc.ABC. Also add issue number to news entry and reword.
2013-12-28 23:15:12 -05:00
Senthil Kumaran
b6fac245b5
Backporing the fix from Issue #12692
2013-12-28 17:36:18 -08:00
Antoine Pitrou
3e86ba4e32
Issue #19422 : Explicitly disallow non-SOCK_STREAM sockets in the ssl module, rather than silently let them emit clear text data.
2013-12-28 17:26:33 +01:00
R David Murray
880fee60ca
Add context to a json NEWS entry.
2013-12-27 17:08:18 -05:00
Antoine Pitrou
b5c66f8645
Fix breakage in TestSuite.countTestCases() introduced by issue #11798 .
2013-12-28 20:37:58 +01:00
Antoine Pitrou
156b3610b8
Issue #19918 : Fix PurePath.relative_to() under Windows.
2013-12-28 19:49:04 +01:00
Antoine Pitrou
e6d2f159fc
Issue #19422 : Explicitly disallow non-SOCK_STREAM sockets in the ssl module, rather than silently let them emit clear text data.
2013-12-28 17:30:51 +01:00
Antoine Pitrou
c1764dd350
Issue #19648 : implement empty tests in pickletester. Patch by Gennadiy Zlobin.
2013-12-28 16:57:37 +01:00
R David Murray
d7bc99ef4c
Mostly-null merge of #18116 backport (updated NEWS entry).
2013-12-27 11:43:42 -05:00
R David Murray
ecff5e51a5
#18116 : backport fix to 3.3 since real-world failure mode demonstrated.
...
In issue 20074 it was pointed out that getpass would fail with a traceback if
stdin was, for example /dev/null, which is a non-unlikely scenario.
Also backported the tests from issue 17484 as modified by issue 18116.
(What I really did was copy getpass.py and test_getpass.py from their
state on tip as of 17bd04fbf3d3).
2013-12-27 11:24:32 -05:00
Serhiy Storchaka
8c4f57d1d5
Issue #20046 : Locale alias table no longer contains entities which can be
...
calculated. Generalized support of the euro modifier.
2013-12-27 00:56:53 +02:00
Serhiy Storchaka
e190fac5f9
Issue #20027 : Fixed locale aliases for devanagari locales.
2013-12-26 21:21:52 +02:00
Serhiy Storchaka
5eb01530b2
Issue #20027 : Fixed locale aliases for devanagari locales.
2013-12-26 21:20:59 +02:00
Serhiy Storchaka
1b97ed5abc
Issue #20067 : Tkinter variables now work when wantobjects is false.
2013-12-26 20:06:43 +02:00
Serhiy Storchaka
d97c01ff28
Issue #20067 : Tkinter variables now work when wantobjects is false.
2013-12-26 20:06:05 +02:00
doko@ubuntu.com
e575148cc2
- Issue #20070 : Don't run test_urllib2net when network resources are not
...
enabled.
2013-12-26 17:37:11 +01:00
Zachary Ware
bb4b7c12fa
Issue #19938 : Re-enabled test_bug_1333982 in test_dis, which had been
...
disabled since 3.0 due to the changes in listcomp handling.
2013-12-26 09:55:24 -06:00
Zachary Ware
e80e806b3a
Issue #19938 : Re-enabled test_bug_1333982 in test_dis, which had been
...
disabled since 3.0 due to the changes in listcomp handling.
2013-12-26 09:53:49 -06:00
Serhiy Storchaka
cb131948fe
Issue #19320 : test_tcl no longer fails when wantobjects is false.
2013-12-25 17:29:41 +02:00
Serhiy Storchaka
cc4290bf91
Issue #19320 : test_tcl no longer fails when wantobjects is false.
2013-12-25 17:29:01 +02:00
Serhiy Storchaka
81d2be9580
Issue #19020 : Tkinter now uses splitlist() instead of split() in configure
...
methods.
2013-12-25 16:36:43 +02:00
Serhiy Storchaka
848972cac1
Issue #19020 : Tkinter now uses splitlist() instead of split() in configure
...
methods.
2013-12-25 16:35:38 +02:00
Serhiy Storchaka
a7a4b4916f
Issue #20058 : sys.stdin.readline() in IDLE now always returns only one line.
2013-12-25 14:27:16 +02:00
Serhiy Storchaka
0fd557647d
Issue #20058 : sys.stdin.readline() in IDLE now always returns only one line.
2013-12-25 14:24:35 +02:00
R David Murray
6e39015f61
pty.spawn returns os.waitpid; optimization of BZ2File and LZMAFile.
2013-12-24 22:28:04 -05:00
R David Murray
76825bce53
Fix English in a NEWS entry.
2013-12-24 15:41:45 -05:00
R David Murray
cad227a553
Move IPv6 NEWS entry into correct section.
2013-12-24 15:37:58 -05:00
R David Murray
d91ba206a2
Mention Windows 2000 and OS/2 drops, python-config as shell script.
2013-12-24 12:13:44 -05:00
R David Murray
72420ff3ce
Mention PATHEXT and removed Misc dirs; clarify wording of a NEWS entry.
2013-12-24 10:46:44 -05:00
Nick Coghlan
ae2ee96ad7
Issue #19744 : improve ensurepip error when ssl is missing
2013-12-23 23:07:07 +10:00
Nick Coghlan
0a68dacb0d
Issue #19734 : add missing NEWS entry
2013-12-23 17:42:02 +10:00
Antoine Pitrou
20d5adea6a
Fix TypeError on "setup.py upload --show-response".
2013-12-22 18:14:56 +01:00
Antoine Pitrou
335a5128e5
Fix TypeError on "setup.py upload --show-response".
2013-12-22 18:13:51 +01:00
Antoine Pitrou
e8d07a9885
Issue #12226 : HTTPS is now used by default when connecting to PyPI.
2013-12-22 01:45:42 +01:00
Antoine Pitrou
f60b7df9f8
Issue #12226 : HTTPS is now used by default when connecting to PyPI.
2013-12-22 01:35:53 +01:00
Antoine Pitrou
29fd05f900
Issue #20045 : Fix "setup.py register --list-classifiers".
2013-12-21 22:59:06 +01:00
Antoine Pitrou
716b7222e9
Issue #20045 : Fix "setup.py register --list-classifiers".
2013-12-21 22:57:56 +01:00
Antoine Pitrou
2b7f69851d
Issue #18879 : When a method is looked up on a temporary file, avoid closing the file before the method is possibly called.
2013-12-21 22:16:19 +01:00
Antoine Pitrou
17c93260a6
Issue #18879 : When a method is looked up on a temporary file, avoid closing the file before the method is possibly called.
2013-12-21 22:14:56 +01:00
Christian Heimes
266772abe9
merge
2013-12-21 16:19:57 +01:00
Christian Heimes
af01f66817
Issue #16136 : Remove VMS support and VMS-related code
2013-12-21 16:19:10 +01:00
Antoine Pitrou
712cb734bd
Issue #20037 : Avoid crashes when doing text I/O late at interpreter shutdown.
2013-12-21 15:51:54 +01:00
Guido van Rossum
a960599be5
Add some asyncio news for beta 2.
2013-12-20 20:47:06 -08:00
Serhiy Storchaka
6e6ec50f82
Issue #20034 : Updated alias mapping to most recent locale.alias file
...
from X.org distribution using makelocalealias.py.
2013-12-20 18:50:32 +02:00
Serhiy Storchaka
715233c3cd
Issue #20034 : Updated alias mapping to most recent locale.alias file
...
from X.org distribution using makelocalealias.py.
2013-12-20 18:23:26 +02:00
Zachary Ware
e36e8be2ee
Issue #19683 : Removed empty tests from test_minidom. Patch by Ajitesh Gupta.
2013-12-19 13:44:56 -06:00
Serhiy Storchaka
936b1c3aba
Merge with 3.3
2013-12-19 21:24:06 +02:00
Serhiy Storchaka
c8cc42edf4
Issue #5815 : Fixed support for locales with modifiers. Fixed support for
...
locale encodings with hyphens.
2013-12-19 21:21:25 +02:00
Victor Stinner
08263f10f8
(Merge 3.3) Issue #20026 : Fix the sqlite module to handle correctly invalid
...
isolation level (wrong type).
2013-12-19 16:39:00 +01:00
Victor Stinner
cb1f74ec40
Issue #20026 : Fix the sqlite module to handle correctly invalid isolation level
...
(wrong type).
2013-12-19 16:38:03 +01:00
Serhiy Storchaka
cf58fb5e29
Issue #18829 : csv.Dialect() now checks type for delimiter, escapechar and
...
quotechar fields. Original patch by Vajrasky Kok.
2013-12-19 16:28:04 +02:00
Serhiy Storchaka
cac23a50ee
Issue #18829 : csv.Dialect() now checks type for delimiter, escapechar and
...
quotechar fields. Original patch by Vajrasky Kok.
2013-12-19 16:27:18 +02:00
R David Murray
0ce3e9d82b
Merge: #19855 : uuid.get_node now looks on the PATH for executables on unix.
2013-12-17 21:14:41 -05:00
R David Murray
4be1e24933
#19855 : uuid.get_node now looks on the PATH for executables on unix.
...
Patch by Serhiy Storchaka.
2013-12-17 21:13:16 -05:00
Serhiy Storchaka
cac05e2e90
Issue #20007 : HTTPResponse.read(0) no more prematurely closes connection.
...
Original patch by Simon Sapin.
2013-12-17 21:51:40 +02:00
Serhiy Storchaka
1c84ac1f55
Issue #20007 : HTTPResponse.read(0) no more prematurely closes connection.
...
Original patch by Simon Sapin.
2013-12-17 21:50:02 +02:00
Nick Coghlan
9a76735b1d
Close #19946 : use runpy as needed in multiprocessing
...
- handles main files without a suffix
- handles main submodules properly
- adds test cases for the various kinds of __main__
2013-12-17 22:17:26 +10:00
Victor Stinner
1d006a2c0e
Backout a1a05e2724dd: shutil.which(bytes) is a new feature and my patch does not work on Windows
2013-12-16 23:39:40 +01:00
Victor Stinner
fffb96ba66
Issue #18283 : shutil.which() now supports bytes argument, not only text argument.
2013-12-16 22:48:48 +01:00
Christian Heimes
bd9cbb0691
Issue #19919 : Fix flacky SSL test. connect_ex() sometimes returns
...
EWOULDBLOCK on Windows or VMs hosted on Windows.
2013-12-16 21:16:45 +01:00
Christian Heimes
de57074874
Issue #19919 : Fix flacky SSL test. connect_ex() sometimes returns
...
EWOULDBLOCK on Windows or VMs hosted on Windows.
2013-12-16 21:15:44 +01:00
Antoine Pitrou
0048c98fef
Issue #19921 : When Path.mkdir() is called with parents=True, any missing parent is created with the default permissions, ignoring the mode argument (mimicking the POSIX "mkdir -p" command).
...
Patch by Serhiy.
2013-12-16 20:22:37 +01:00
Antoine Pitrou
c274fd22ed
Issue #19887 : Improve the Path.resolve() algorithm to support certain symlink chains.
...
Original patch by Serhiy.
2013-12-16 19:57:41 +01:00
Zachary Ware
d2e48ca813
Issue #19987 : Merge with 3.3
2013-12-16 09:05:44 -06:00
Zachary Ware
1007432c95
Issue #19987 : Re-write test_alias_fallback in test_winsound to have two
...
acceptable outcomes: success or RuntimeError. Without being able to
actually hear whether a sound was played, either one could be right, but
any other error would be a failure.
2013-12-16 09:02:41 -06:00
Christian Heimes
d9fbb446a2
merge
2013-12-16 14:35:58 +01:00
Christian Heimes
cb3558dcc1
Issue #18215 : Add script Tools/ssl/test_multiple_versions.py to compile and
...
run Python's unit tests with multiple versions of OpenSSL.
2013-12-16 14:35:39 +01:00
Serhiy Storchaka
cc83b0c8f6
Issue #19912 : Fixed numerous bugs in ntpath.splitunc().
...
* splitunc() no more return illegal result for paths with redundant slashes.
* splitunc() now correctly processes the 'İ' character
(U+0130, LATIN CAPITAL LETTER I WITH DOT ABOVE).
* Deprecation warnings now emitted for every use of splitunc().
* Added tests for splitunc().
2013-12-16 15:14:19 +02:00
Serhiy Storchaka
593568bf47
Issue #19912 : Fixed numerous bugs in ntpath.splitunc().
...
* splitunc() no more return illegal result for paths with redundant slashes.
* splitunc() now correctly processes the 'İ' character
(U+0130, LATIN CAPITAL LETTER I WITH DOT ABOVE).
* Deprecation warnings now emitted for every use of splitunc().
* Added tests for splitunc().
2013-12-16 15:13:28 +02:00
Serhiy Storchaka
f5ad91c392
Issue #19911 : ntpath.splitdrive() now correctly processes the 'İ' character
...
(U+0130, LATIN CAPITAL LETTER I WITH DOT ABOVE).
2013-12-16 14:36:10 +02:00
Serhiy Storchaka
3d7e11520e
Issue #19911 : ntpath.splitdrive() now correctly processes the 'İ' character
...
(U+0130, LATIN CAPITAL LETTER I WITH DOT ABOVE).
2013-12-16 14:34:55 +02:00
R David Murray
755d5ea12a
Merge: #19532 : make compileall with no file/dir args respect -f and -q.
2013-12-15 20:56:00 -05:00
R David Murray
8a1d1e647e
#19532 : make compileall with no file/dir args respect -f and -q.
...
Patch by Vajrasky Kok.
2013-12-15 20:49:38 -05:00
Serhiy Storchaka
c836a28cc1
Issue #17576 : Removed deprecation warnings added in changeset 618cca51a27e.
2013-12-14 21:07:09 +02:00
Serhiy Storchaka
79f19f9e7c
Issue #19623 : Fixed writing to unseekable files in the aifc module.
2013-12-14 20:42:22 +02:00
Serhiy Storchaka
84d28b4ee5
Issue #19623 : Fixed writing to unseekable files in the aifc module.
2013-12-14 20:35:04 +02:00
Serhiy Storchaka
03241e8017
Issue #17919 : Fixed integer overflow in the eventmask parameter.
2013-12-14 19:18:39 +02:00
Serhiy Storchaka
5da107ac72
Issue #17919 : Fixed integer overflow in the eventmask parameter.
2013-12-14 19:12:02 +02:00
Brett Cannon
98620d87f2
Issue #19963 : Document that importlib.import_module() will import
...
parent packages automatically.
2013-12-13 13:57:41 -05:00
Brett Cannon
ca7ab7c7f1
Issue #19946 : Raise ImportError when the main module cannot be found
...
by multiprocessing.spawn (before it was raising an AttributeError).
2013-12-13 11:43:10 -05:00
Victor Stinner
507ac3a591
(Merge 3.3) Issue #19969 : PyBytes_FromFormatV() now raises an OverflowError if
...
"%c" argument is not in range [0; 255].
2013-12-13 12:15:31 +01:00
Victor Stinner
c9362cf86a
Issue #19969 : PyBytes_FromFormatV() now raises an OverflowError if "%c"
...
argument is not in range [0; 255].
2013-12-13 12:14:44 +01:00
Victor Stinner
590cebe391
Issue #19787 : PyThread_set_key_value() now always set the value
...
In Python 3.3, PyThread_set_key_value() did nothing if the key already exists
(if the current value is a non-NULL pointer).
When _PyGILState_NoteThreadState() is called twice on the same thread with a
different Python thread state, it still keeps the old Python thread state to
keep the old behaviour. Replacing the Python thread state with the new state
introduces new bugs: see issues #10915 and #15751 .
2013-12-13 11:08:56 +01:00
Serhiy Storchaka
cb1c4c8c22
Issue #17919 : select.poll.poll() again works with poll.POLLNVAL on AIX.
2013-12-13 12:08:55 +02:00
Serhiy Storchaka
3ad2d70947
Issue #17919 : select.poll.poll() again works with poll.POLLNVAL on AIX.
2013-12-13 12:08:01 +02:00
Victor Stinner
441adb8c57
Backout changeset 46393019b650
...
test_capi is failing and the fix is not trivial, I prefer to revert
2013-12-13 04:14:41 +01:00
Victor Stinner
cd0cb8ccd3
Close #19787 : PyThread_set_key_value() now always set the value. In Python 3.3,
...
the function did nothing if the key already exists (if the current value is a
non-NULL pointer).
_testcapi.run_in_subinterp() now correctly sets the new Python thread state of
the current thread when a subinterpreter is created.
2013-12-13 03:22:00 +01:00
Victor Stinner
1310510793
Issue #14432 : Generator now clears the borrowed reference to the thread state
...
Fix a crash when a generator is created in a C thread that is destroyed while
the generator is still used. The issue was that a generator contains a frame,
and the frame kept a reference to the Python state of the destroyed C thread.
The crash occurs when a trace function is setup.
2013-12-13 02:17:29 +01:00
Victor Stinner
fdeb6ec45a
Issue #14432 : Remove the thread state field from the frame structure. Fix a
...
crash when a generator is created in a C thread that is destroyed while the
generator is still used. The issue was that a generator contains a frame, and
the frame kept a reference to the Python state of the destroyed C thread. The
crash occurs when a trace function is setup.
2013-12-13 02:01:38 +01:00
Victor Stinner
62ca10051b
Close #19576 : PyGILState_Ensure() now initializes threads. At startup, Python
...
has no concrete GIL. If PyGILState_Ensure() is called from a new thread for the
first time and PyEval_InitThreads() was not called yet, a GIL needs to be
created.
2013-12-13 01:46:43 +01:00
Zachary Ware
63321b4978
Issue #19828 : Merge with 3.3
2013-12-11 17:01:21 -06:00
Zachary Ware
36193e73b8
Issue #19828 : Fixed test_site when the whole suite is run with -S.
...
Also, cleaned up an unused import.
2013-12-11 16:59:44 -06:00
R David Murray
50bfbb9903
#19063 : fix set_payload handling of non-ASCII string input.
...
This version of the fix raises an error instead of accepting the invalid
input (ie: if a non-ASCII string is used but no charset is specified).
2013-12-11 16:52:11 -05:00
R David Murray
d5c4c7411a
#19063 : partially fix set_payload handling of non-ASCII string input.
...
This is a backward compatible partial fix, the complete fix requires raising
an error instead of accepting the invalid input, so the real fix is only
suitable for 3.4.
2013-12-11 16:34:34 -05:00
Serhiy Storchaka
c4f3212abc
Issue #17576 : Deprecation warning emitted now when __int__() or __index__()
...
return not int instance. Introduced _PyLong_FromNbInt() and refactored
PyLong_As*() functions.
2013-12-11 21:26:36 +02:00
Serhiy Storchaka
31a655411a
Issue #17576 : Deprecation warning emitted now when __int__() or __index__()
...
return not int instance. Introduced _PyLong_FromNbInt() and refactored
PyLong_As*() functions.
2013-12-11 21:07:54 +02:00
Eric Snow
b282b3d804
Issue #18864 : Add a setter for ModuleSpec.has_location.
2013-12-10 22:16:41 -07:00
Gregory P. Smith
acd17304d2
Fixes Issue #17200 : telnetlib's read_until and expect timeout was broken by the
...
fix to Issue #14635 in Python 3.3.0 to be interpreted as milliseconds instead
of seconds when the platform supports select.poll (ie: everywhere). It is now
treated as seconds once again.
2013-12-10 18:25:21 -08:00
Ned Deily
e72b90eb7a
Issue #18270 : merge from 3.3
2013-12-10 16:32:57 -08:00
Ned Deily
f3c6589ea3
Issue #18270 : Prevent possible IDLE AttributeError on OS X when no initial
...
shell window is present. (Original patch by Terry Reedy)
2013-12-10 16:24:01 -08:00
Serhiy Storchaka
2a446bf76c
Issue #19928 : Implemented a test for repr() of cell objects.
2013-12-10 10:21:51 +02:00
Serhiy Storchaka
1f79cdfbfa
Issue #19928 : Implemented a test for repr() of cell objects.
2013-12-10 10:20:31 +02:00
Serhiy Storchaka
0ed6c4ae62
Issue #19481 : print() of string subclass instance in IDLE no more hangs.
2013-12-10 10:06:35 +02:00
Serhiy Storchaka
9df8a1c112
Issue #19481 : print() of string subclass instance in IDLE no more hangs.
2013-12-10 10:05:19 +02:00
Eric Snow
c1e7c747f9
Issue 19851: Fix a regression in reloading submodules.
2013-12-09 19:59:10 -07:00
Victor Stinner
b077c0552f
(Merge 3.3) Issue #19932 : Fix typo in import.h, missing whitespaces in function prototypes.
2013-12-10 01:20:39 +01:00
Victor Stinner
d860d5cf6d
Issue #19932 : Fix typo in import.h, missing whitespaces in function prototypes.
2013-12-10 01:19:58 +01:00
Serhiy Storchaka
2dae92a807
Issue #15475 : Add __sizeof__ implementations for itertools objects.
2013-12-09 17:45:57 +02:00
Victor Stinner
031bd532c4
Close #19880 : Fix a reference leak in unittest.TestCase. Explicitly break
...
reference cycles between frames and the _Outcome instance.
2013-12-09 01:52:50 +01:00
Victor Stinner
0aba1a2663
(Merge 3.3) Issue #17429 : platform.linux_distribution() now decodes files from
...
the UTF-8 encoding with the surrogateescape error handler, instead of decoding
from the locale encoding in strict mode. It fixes the function on Fedora 19
which is probably the first major distribution release with a non-ASCII name.
Patch written by Toshio Kuratomi.
2013-12-09 00:04:09 +01:00
Victor Stinner
620c48b7ea
Issue #17429 : platform.linux_distribution() now decodes files from the UTF-8
...
encoding with the surrogateescape error handler, instead of decoding from the
locale encoding in strict mode. It fixes the function on Fedora 19 which is
probably the first major distribution release with a non-ASCII name. Patch
written by Toshio Kuratomi.
2013-12-09 00:01:27 +01:00
Gregory P. Smith
7b83b18679
Fixes issue #19929 : Call os.read with 32768 within subprocess.Popen
...
communicate rather than 4096 for efficiency. A microbenchmark shows
Linux and OS X both using ~50% less cpu time this way.
2013-12-08 10:58:28 -08:00
Gregory P. Smith
589ecda56e
Fixes issue #19929 : Call os.read with 32768 within subprocess.Popen
...
communicate rather than 4096 for efficiency. A microbenchmark shows
Linux and OS X both using ~50% less cpu time this way.
2013-12-08 10:56:07 -08:00
Serhiy Storchaka
b12cb6a550
Issue #19535 : Fixed test_docxmlrpc, test_functools, test_inspect, and
...
test_statistics when python is run with -OO.
2013-12-08 18:16:18 +02:00
Serhiy Storchaka
3e60a9d602
Issue #19535 : Fixed test_docxmlrpc when python is run with -OO.
2013-12-08 18:14:49 +02:00
doko@ubuntu.com
ca616a2709
- Issue #19736 : Add module-level statvfs constants defined for GNU/glibc
...
based systems.
2013-12-08 15:23:07 +01:00
Christian Heimes
5bb414d176
Issue #19343 : Expose FreeBSD-specific APIs in resource module. Original patch by Koobs.
2013-12-08 14:35:55 +01:00
Zachary Ware
34bc8974cd
Issue #19926 : Removed unneeded test_main from test_abstract_numbers.
...
Patch by Vajrasky Kok.
2013-12-08 01:01:42 -06:00
Zachary Ware
4adb37c40f
Issue #19926 : Removed unneeded test_main from test_abstract_numbers.
...
Patch by Vajrasky Kok.
2013-12-08 01:00:14 -06:00
Zachary Ware
101d9e7250
Issue 19572: More silently skipped tests explicitly skipped.
2013-12-08 00:44:27 -06:00
Zachary Ware
9fe6d86709
Issue 19572: More silently skipped tests explicitly skipped.
2013-12-08 00:20:35 -06:00
Gregory P. Smith
5ca129b8f0
Fixes issue #19506 : Use a memoryview to avoid a data copy when piping data
...
to stdin within subprocess.Popen.communicate. 5-10% less cpu usage.
2013-12-07 19:14:59 -08:00
Gregory P. Smith
774f909489
Fixes issue #19506 : Use a memoryview to avoid a data copy when piping data
...
to stdin within subprocess.Popen.communicate. 5-10% less cpu usage.
2013-12-07 19:12:46 -08:00
Guido van Rossum
c0e71cd6e2
News item for issue 19876.
2013-12-07 16:03:36 -08:00
Christian Heimes
647cd87169
Issue #19922 : define _INCLUDE__STDC_A1_SOURCE in HP-UX to include mbstate_t
...
for mbrtowc().
2013-12-07 23:39:33 +01:00
Alexandre Vassalotti
d05c9ff845
Issue #6784 : Strings from Python 2 can now be unpickled as bytes objects.
...
Initial patch by Merlijn van Deen.
I've added a few unrelated docstring fixes in the patch while I was at
it, which makes the documentation for pickle a bit more consistent.
2013-12-07 01:09:27 -08:00
Serhiy Storchaka
a993902a28
Issue #19908 : pathlib now joins relative Windows paths correctly when a drive
...
is present. Original patch by Antoine Pitrou.
2013-12-06 17:14:12 +02:00
Alexandre Vassalotti
6e73ff1a31
Issue #19881 : Fix bad pickling of large bytes in cpickle.
2013-12-05 19:29:32 -08:00
Christian Heimes
8ff6f3e895
Issue #19296 : Silence compiler warning in dbm_open.
...
Some dbm header files declare the first argument as char * instead of a const char *.
2013-12-06 00:20:00 +01:00
Antoine Pitrou
710280b6d6
Issue #18840 : Introduce the json module in the tutorial, and deemphasize the pickle module.
2013-12-05 23:48:10 +01:00
Antoine Pitrou
dd799d2e32
Issue #18840 : Introduce the json module in the tutorial, and deemphasize the pickle module.
2013-12-05 23:46:32 +01:00
Nadeem Vawda
ae02d07bc2
Closes #19839 : Fix regression in bz2 module's handling of non-bzip2 data at EOF.
...
Also fix an analogous bug (not a regression) in the lzma module.
2013-12-04 23:29:51 +01:00
Nadeem Vawda
9c72ebc96b
#19839 : Fix lzma module's handling of non-lzma data at EOF.
2013-12-04 23:03:49 +01:00
Nadeem Vawda
1de19ac7da
#19839 : Fix regression in bz2 module's handling of non-bzip2 data at EOF.
2013-12-04 23:01:15 +01:00
Tim Peters
13e6d23bb1
Issue #19138 : doctest's IGNORE_EXCEPTION_DETAIL now allows no detail at all.
...
(grafted from c80083ad142db2939507800c755082293a87f2de)
2013-12-03 21:02:05 -06:00
Tim Peters
f9a07f2e11
Issue #19138 : doctest's IGNORE_EXCEPTION_DETAIL now allows no detail at all.
2013-12-03 21:02:05 -06:00
Victor Stinner
9a954838ab
Close #19827 : On UNIX, setblocking() and settimeout() methods of socket.socket
...
can now avoid a second syscall if the ioctl() function can be used, or if the
non-blocking flag of the socket is unchanged.
2013-12-04 00:41:24 +01:00
Christian Heimes
a5768f7292
Issue #19785 : smtplib now supports SSLContext.check_hostname and server name
...
indication for TLS/SSL connections.
2013-12-02 20:44:17 +01:00
Christian Heimes
216d463b1f
Issue #19783 : nntplib now supports SSLContext.check_hostname and server name
...
indication for TLS/SSL connections.
2013-12-02 20:20:11 +01:00
Christian Heimes
1bc7068d7f
Issue #19784 : poplib now supports SSLContext.check_hostname and server name
...
indication for TLS/SSL connections.
2013-12-02 20:10:50 +01:00
Christian Heimes
48aae57996
Issue #19782 : imaplib now supports SSLContext.check_hostname and server name
...
indication for TLS/SSL connections.
2013-12-02 20:01:29 +01:00
Walter Doerwald
f217206bcc
Add NEWS entry for issue #19834 : merge with 3.3.
2013-12-02 17:20:50 +01:00
Walter Doerwald
7601a1e56f
Add NEWS entry for issue #19834 .
2013-12-02 17:19:00 +01:00
Christian Heimes
e5b5edfa2c
Issue #19781 : ftplib now supports SSLContext.check_hostname and server name
...
indication for TLS/SSL connections.
2013-12-02 02:56:02 +01:00
Christian Heimes
1aa9a75fbf
Issue #19509 : Add SSLContext.check_hostname to match the peer's certificate
...
with server_hostname on handshake.
2013-12-02 02:41:19 +01:00
Gregory P. Smith
708a3182c9
Fixes issue #15798 : subprocess.Popen() no longer fails if file
...
descriptor 0, 1 or 2 is closed.
The errpipe_write fd will always be >= 3.
2013-12-01 17:27:40 -08:00
Gregory P. Smith
53dd8167ff
Fixes issue #15798 : subprocess.Popen() no longer fails if file
...
descriptor 0, 1 or 2 is closed. (correct fix for 3.4 this time)
2013-12-01 16:03:24 -08:00
Alexandre Vassalotti
5a63aa62ca
Issue #11480 : Merge with 3.3.
2013-12-01 13:26:32 -08:00
Alexandre Vassalotti
5c1c3b4f19
Issue #11480 : Fixed copy.copy to work with classes with custom metaclasses.
...
Patch by Daniel Urban.
2013-12-01 13:25:26 -08:00
Gregory P. Smith
54532c9742
Undo supposed fix for Issue #15798 until I understand why this is
...
causing test_multiprocessing_forkserver and test_multiprocessing_spawn
failures on head (3.4).
2013-12-01 00:13:35 -08:00
Gregory P. Smith
361e30c17a
Undo supposed fix for Issue #15798 until I understand why this is
...
causing test_multiprocessing_forkserver and test_multiprocessing_spawn
failures on head (3.4).
2013-12-01 00:12:24 -08:00
Gregory P. Smith
1c27e3c7fb
Fixes Issue #15798 - subprocess.Popen() no longer fails if file
...
descriptor 0, 1 or 2 is closed.
2013-11-30 19:04:00 -08:00
Gregory P. Smith
1eda9e7c30
Fixes Issue #15798 - subprocess.Popen() no longer fails if file
...
descriptor 0, 1 or 2 is closed.
2013-11-30 19:02:57 -08:00
Alexandre Vassalotti
3c23e7a5dc
Issue #6477 : Merge with 3.3.
2013-11-30 16:21:20 -08:00
Alexandre Vassalotti
19b6fa6ebb
Issue #6477 : Added support for pickling the types of built-in singletons.
2013-11-30 16:06:39 -08:00
Zachary Ware
7c63c85f17
Issue #19845 : Updated the Compiling Python on Windows docs.
2013-11-30 17:03:03 -06:00
Zachary Ware
f8ceb04fcf
Issue #19845 : Updated the Compiling Python on Windows docs.
2013-11-30 16:59:33 -06:00
Alexandre Vassalotti
a1eedf9ff0
Merge with 3.3.
2013-11-30 13:55:39 -08:00
Alexandre Vassalotti
896414fedf
Fixed _pickle.Unpickler to handle empty persistent IDs correctly.
2013-11-30 13:52:35 -08:00
Serhiy Storchaka
6fe39b76a9
Issue #17897 : Optimized unpickle prefetching.
2013-11-30 23:15:38 +02:00
Alexandre Vassalotti
cc6e87b2cf
Issue #19088 : Merge with 3.3.
2013-11-30 01:05:51 -08:00
Alexandre Vassalotti
1a83070d9e
Issue #19088 : Fix incorrect caching of the copyreg module.
...
This fix does not cause any degradation in performance.
2013-11-30 00:53:09 -08:00
Alexandre Vassalotti
9730e33535
Issue #3693 : Fix array obscure error message when given a str.
2013-11-29 20:47:15 -08:00
Brett Cannon
d2476c6e4b
Issue #19698 : Remove exec_module() from the built-in and extension
...
module loaders.
Due to the fact that the call signatures for extension modules and
built-in modules does not allow for the specifying of what module to
initialize and that on Windows all extension modules are built-in
modules, work to clean up built-in and extension module initialization
will have to wait until Python 3.5. Because of this the semantics of
exec_module() would be incorrect, so removing the methods for now is
the best option; load_module() is still used as a fallback by
importlib and so this won't affect semantics.
2013-11-29 11:00:11 -05:00
Serhiy Storchaka
0e90e99188
Issue #19795 : Improved markup of True/False constants.
2013-11-29 12:19:53 +02:00
Serhiy Storchaka
fbc1c26803
Issue #19795 : Improved markup of True/False constants.
2013-11-29 12:17:13 +02:00
Christian Heimes
dec813f118
ssl.create_default_context() sets OP_NO_COMPRESSION to prevent CRIME
2013-11-28 08:06:54 +01:00
Zachary Ware
04a684b2f2
Issue #19595 : Re-enable a long-disabled test in test_winsound
2013-11-27 23:56:04 -06:00
Zachary Ware
50a5dad608
Issue #19595 : Re-enable a long-disabled test in test_winsound
2013-11-27 23:56:04 -06:00
Benjamin Peterson
1314ef73d0
add SO_PRIORITY ( closes #19802 )
...
Patch by Claudiu Popa.
2013-11-27 09:18:54 -06:00
Benjamin Peterson
d75803c1fc
merge 3.3 ( #19729 )
2013-11-26 19:24:01 -06:00
Benjamin Peterson
0ee22bf774
fix format spec recursive expansion ( closes #19729 )
2013-11-26 19:22:36 -06:00
Zachary Ware
14fff88773
Issue #19788 : kill_python(_d).exe is now run as a PreBuildEvent on the
...
pythoncore sub-project. This should prevent build errors due a previous
build's python(_d).exe still running.
2013-11-26 16:34:45 -06:00
Zachary Ware
bb65b5bf1d
Issue #19788 : kill_python(_d).exe is now run as a PreBuildEvent on the
...
pythoncore sub-project. This should prevent build errors due a previous
build's python(_d).exe still running.
2013-11-26 16:32:59 -06:00
Zachary Ware
910b1c3993
Merge heads
2013-11-26 14:57:45 -06:00
Zachary Ware
99fb0513dd
Merge heads
2013-11-26 14:57:10 -06:00
Zachary Ware
29f8cb64e6
Issue #19588 : Merge with 3.3
2013-11-26 14:54:21 -06:00
Zachary Ware
a6edea530b
Issue #19588 : Fixed tests in test_random that were silently skipped most
...
of the time. Patch by Julian Gindi.
2013-11-26 14:50:10 -06:00
Serhiy Storchaka
822963ed5d
Issue #11508 : Fixed uuid.getnode() and uuid.uuid1() on environment with
...
virtual interface. Original patch by Kent Frazier.
2013-11-26 22:49:36 +02:00
Serhiy Storchaka
56507c7862
Issue #11508 : Fixed uuid.getnode() and uuid.uuid1() on environment with
...
virtual interface. Original patch by Kent Frazier.
2013-11-26 22:47:16 +02:00
Serhiy Storchaka
687ff0ecdf
Issue #11489 : JSON decoder now accepts lone surrogates.
2013-11-26 21:27:11 +02:00
Serhiy Storchaka
c93329b3dd
Issue #11489 : JSON decoder now accepts lone surrogates.
2013-11-26 21:25:28 +02:00
Mark Dickinson
1df88677e9
Issue #19638 : Merge from 3.3
2013-11-26 16:19:38 +00:00
Mark Dickinson
f45bbb6211
Issue #19638 : Raise ValueError instead of crashing when converting billion character strings to float.
2013-11-26 16:19:13 +00:00
Larry Hastings
99e101013f
Merged 3.4.0b1 release head back into trunk.
2013-11-24 14:05:57 -08:00
Serhiy Storchaka
b5d386314f
Issue #19545 : Avoid chained exceptions while passing stray % to
...
time.strptime(). Initial patch by Claudiu Popa.
2013-11-24 18:17:11 +02:00
Serhiy Storchaka
cdac302af3
Issue #19545 : Avoid chained exceptions while passing stray % to
...
time.strptime(). Initial patch by Claudiu Popa.
2013-11-24 18:15:37 +02:00
Georg Brandl
ed007d5b1b
Fix suspicious markup in the docs.
2013-11-24 16:09:26 +01:00
Larry Hastings
7e611dab4a
Bump version number to 3.4.0b1.
2013-11-24 06:59:35 -08:00
Zachary Ware
a4b7a7548c
Issue #3158 : doctest can now find doctests in functions and methods
...
written in C.
As a part of this, a few doctests have been added to the builtins module
(on hex(), oct(), and bin()), a doctest has been fixed (hopefully on all
platforms) on float, and test_builtins now runs doctests in builtins.
2013-11-24 01:19:09 -06:00
Serhiy Storchaka
d27b455bbc
Issue #13477 : Added command line interface to the tarfile module.
...
Original patch by Berker Peksag.
2013-11-24 01:53:29 +02:00
Larry Hastings
44e2eaab54
Issue #19674 : inspect.signature() now produces a correct signature
...
for some builtins.
2013-11-23 15:37:55 -08:00
Larry Hastings
dcd340eeeb
Issue #19358 : "make clinic" now runs the Argument Clinic preprocessor
...
over all CPython source files.
2013-11-23 14:58:45 -08:00
Larry Hastings
ebdcb50b8a
Issue #19730 : Argument Clinic now supports all the existing PyArg
...
"format units" as legacy converters, as well as two new features:
"self converters" and the "version" directive.
2013-11-23 14:54:00 -08:00
Larry Hastings
3a9079742f
Issue #19722 : Added opcode.stack_effect(), which accurately
...
computes the stack effect of bytecode instructions.
2013-11-23 14:49:22 -08:00
Martin v. Löwis
8d0d369067
Update Tcl/Tk to 8.6.1.
2013-11-23 23:05:27 +01:00
Christian Heimes
67986f9431
Issue #19735 : Implement private function ssl._create_stdlib_context() to
...
create SSLContext objects in Python's stdlib module. It provides a single
configuration point and makes use of SSLContext.load_default_certs().
2013-11-23 22:43:47 +01:00
Serhiy Storchaka
32eddc1bbc
Issue #16203 : Add re.fullmatch() function and regex.fullmatch() method,
...
which anchor the pattern at both ends of the string to match.
Original patch by Matthew Barnett.
2013-11-23 23:20:30 +02:00
Serhiy Storchaka
5c24d0e504
Issue #13592 : Improved the repr for regular expression pattern objects.
...
Based on patch by Hugo Lopes Tavares.
2013-11-23 22:42:43 +02:00
Serhiy Storchaka
3062c9a6c8
Issue #19641 : Added the audioop.byteswap() function to convert big-endian
...
samples to little-endian and vice versa.
2013-11-23 22:26:01 +02:00
Serhiy Storchaka
6787a3806e
Issue #15204 : Deprecated the 'U' mode in file-like objects.
2013-11-23 22:12:06 +02:00
Ezio Melotti
6bdd98622e
#10712 : 2to3 has a new "asserts" fixer that replaces deprecated names of unittest methods.
2013-11-23 21:14:42 +02:00
Antoine Pitrou
c9dc4a2a8a
Issue #17810 : Implement PEP 3154, pickle protocol 4.
...
Most of the work is by Alexandre.
2013-11-23 18:59:12 +01:00
Ezio Melotti
95401c5f6b
#13633 : Added a new convert_charrefs keyword arg to HTMLParser that, when True, automatically converts all character references.
2013-11-23 19:52:05 +02:00
Serhiy Storchaka
434d27a490
Merge heads
2013-11-23 19:08:38 +02:00
Serhiy Storchaka
be0c3250b1
Issue #19668 : Added support for the cp1125 encoding.
2013-11-23 18:52:23 +02:00
Guido van Rossum
cfc6901a7e
Add news about pdb fix for yield[from].
2013-11-23 08:46:14 -08:00
Christian Heimes
5de397e158
merge
2013-11-23 15:59:07 +01:00
Christian Heimes
4c05b472dd
Issue #19689 : Add ssl.create_default_context() factory function. It creates
...
a new SSLContext object with secure default settings.
2013-11-23 15:58:30 +01:00
Antoine Pitrou
91a7af3e48
Issue #19727 : os.utime(..., None) is now potentially more precise under Windows.
2013-11-23 15:23:26 +01:00