Terry Jan Reedy
b1165f0c01
Issue #15392 : Finish news entry.
2013-05-30 20:55:52 -04:00
Senthil Kumaran
c70a6ae49b
#17403 : urllib.parse.robotparser normalizes the urls before adding to ruleline.
...
This helps in handling certain types invalid urls in a conservative manner.
2013-05-29 05:54:31 -07:00
Ned Deily
97345680dc
Issue #18080 : When building a C extension module on OS X, if the compiler
...
is overriden with the CC environment variable, use the new compiler as
the default for linking if LDSHARED is not also overriden. This restores
Distutils behavior introduced in 3.2.3 and inadvertently dropped in 3.3.0.
2013-05-28 16:35:30 -07:00
Serhiy Storchaka
37a79a12d1
Issue #18025 : Fixed a segfault in io.BufferedIOBase.readinto() when raw
...
stream's read() returns more bytes than requested.
2013-05-28 16:24:45 +03:00
Serhiy Storchaka
ea2b490f3d
Issue #18011 : base64.b32decode() now raises a binascii.Error if there are
...
non-alphabet characters present in the input string to conform a docstring.
Updated the module documentation.
2013-05-28 15:27:29 +03:00
Jason R. Coombs
3a09286790
Issue #13772 : Restored directory detection of targets in `os.symlink` on Windows, which was temporarily removed in Python 3.2.3 due to an incomplete implementation. The implementation now works even if the symlink is created in a location other than the current directory.
2013-05-27 23:21:28 -04:00
Terry Jan Reedy
db4e5c53c9
Issue #15392 : Create a unittest framework for IDLE.
...
Preliminary patch by Rajagopalasarma Jayakrishnan.
2013-05-27 21:32:03 -04:00
Brett Cannon
c3511c1dd8
Issue #17953 : document that sys.modules shouldn't be replaced (thanks
...
to interp->modules) and that deleting essential items from the dict
can cause Python to blow up.
Thanks to Terry Reedy for coming up with initial wording and Yogesh
Chaudhari for coming up with a patch using that wording in parallel to
my own patch.
2013-05-24 08:05:07 -04:00
Ronald Oussoren
27a4ac535f
Issue #17269 : Workaround for a platform bug in getaddrinfo on OSX
...
Without this patch socket.getaddrinfo crashed when called
with some unusual argument combinations.
2013-05-24 13:47:37 +02:00
Ned Deily
7f0882c920
Issue #17532 : Always include Options menu for IDLE on OS X.
...
Patch by Guilherme Simões.
2013-05-22 15:19:40 -07:00
Serhiy Storchaka
66d53fa9ad
Issue #16986 : ElementTree now correctly parses a string input not only when
...
an internal XML encoding is UTF-8 or US-ASCII.
2013-05-22 17:07:51 +03:00
Serhiy Storchaka
9e62d35e65
Issue #17844 : Add links to encoders and decoders for bytes-to-bytes codecs.
2013-05-22 15:33:09 +03:00
Roger Serwy
caf3024fa6
#14146 : Highlight source line while debugging on Windows.
2013-05-20 22:13:39 -05:00
Ezio Melotti
86aecc360f
#14097 : improve the "introduction" page of the tutorial.
2013-05-20 08:12:32 +03:00
Antoine Pitrou
916fc7bf28
Issue #11995 : test_pydoc doesn't import all sys.path modules anymore.
2013-05-19 15:44:54 +02:00
Serhiy Storchaka
2c3f2f19df
Issue #17812 : Fixed quadratic complexity of base64.b32encode().
2013-05-19 11:41:15 +03:00
Antoine Pitrou
636f93c63b
Issue #17980 : Fix possible abuse of ssl.match_hostname() for denial of service using certificates with many wildcards (CVE-2013-2099).
2013-05-18 17:56:42 +02:00
Benjamin Peterson
d2b58a9880
only recursively expand in the format spec ( closes #17644 )
2013-05-17 17:34:30 -05:00
Brett Cannon
3e0651b5fa
Issue #18065 : For frozen packages set __path__ to [].
...
Previously __path__ was set to [__name__], but that could lead to bad
results if someone managed to circumvent the frozen importer and
somehow ended up with a finder that thought __name__ was a legit
directory/location.
2013-05-31 23:18:39 -04:00
Brett Cannon
0dbb4c7f13
Issues #18088 , 18089: Introduce
...
importlib.abc.Loader.init_module_attrs() and implement
importlib.abc.InspectLoader.load_module().
The importlib.abc.Loader.init_module_attrs() method sets the various
attributes on the module being loaded. It is done unconditionally to
support reloading. Typically people used
importlib.util.module_for_loader, but since that's a decorator there
was no way to override it's actions, so init_module_attrs() came into
existence to allow for overriding. This is also why module_for_loader
is now pending deprecation (having its other use replaced by
importlib.util.module_to_load).
All of this allowed for importlib.abc.InspectLoader.load_module() to
be implemented. At this point you can now implement a loader with
nothing more than get_code() (which only requires get_source();
package support requires is_package()). Thanks to init_module_attrs()
the implementation of load_module() is basically a context manager
containing 2 methods calls, a call to exec(), and a return statement.
2013-05-31 18:56:47 -04:00
Serhiy Storchaka
c7a2825681
Issue #18094 : test_uuid no more reports skipped tests as passed.
2013-05-31 22:34:00 +03:00
Terry Jan Reedy
1acd3a081c
Remove duplicate entry due to mismerge and incomplete resolution.
2013-05-30 21:08:49 -04:00
Terry Jan Reedy
17bea376e8
merge
2013-05-30 21:05:53 -04:00
Brett Cannon
357c9fb055
Rename importlib.util.ModuleManager to module_to_load so that the name
...
explains better what the context manager is providing.
2013-05-30 17:31:47 -04:00
Serhiy Storchaka
1cfebc73e0
Issue #9369 : The types of `char*` arguments of PyObject_CallFunction() and
...
PyObject_CallMethod() now changed to `const char*`.
Based on patches by Jörg Müller and Lars Buitinck.
2013-05-29 18:50:54 +03:00
Senthil Kumaran
6b3026ce72
merge from 3.3
...
#17403 : urllib.parse.robotparser normalizes the urls before adding to
ruleline. This helps in handling certain types invalid urls in a conservative
manner. Patch contributed by Mher Movsisyan.
2013-05-29 05:57:21 -07:00
Ned Deily
6750282007
Issue #18080 : merge from 3.3
2013-05-28 16:45:06 -07:00
Brett Cannon
3dc48d6f69
Issue #18070 : importlib.util.module_for_loader() now sets __loader__
...
and __package__ unconditionally in order to do the right thing for
reloading.
2013-05-28 18:35:54 -04:00
Brett Cannon
a3687f0d68
Introduce importlib.util.ModuleManager which is a context manager to
...
handle providing (and cleaning up if needed) the module to be loaded.
A future commit will use the context manager in
Lib/importlib/_bootstrap.py and thus why the code is placed there
instead of in Lib/importlib/util.py.
2013-05-28 17:29:34 -04:00
Serhiy Storchaka
281945f427
Issue #18025 : Fixed a segfault in io.BufferedIOBase.readinto() when raw
...
stream's read() returns more bytes than requested.
2013-05-28 16:27:08 +03:00
Serhiy Storchaka
80f3bf95f1
Move some Misc/NEWS entries to correct place.
2013-05-28 15:34:16 +03:00
Serhiy Storchaka
77a3ad743f
Issue #18011 : base64.b32decode() now raises a binascii.Error if there are
...
non-alphabet characters present in the input string to conform a docstring.
Updated the module documentation.
2013-05-28 15:30:38 +03:00
Terry Jan Reedy
667a03b292
Merge with 3.3
2013-05-27 21:33:40 -04:00
Brett Cannon
fc508dd608
NEWS entry for issue #18072
2013-05-27 21:12:40 -04:00
Benjamin Peterson
acfa291af9
grammar
2013-05-27 14:49:31 -07:00
Benjamin Peterson
da5eb5a31c
don't expand the operand to Py_XINCREF/XDECREF/CLEAR/DECREF multiple times ( closes #17206 )
...
A patch from Illia Polosukhin.
2013-05-27 14:46:14 -07:00
Brett Cannon
9ffe85e1e8
Move importlib.abc.SourceLoader.source_to_code() to InspectLoader.
...
While the previous location was fine, it makes more sense to have the
method higher up in the inheritance chain, especially at a point where
get_source() is defined which is the earliest source_to_code() could
programmatically be used in the inheritance tree in importlib.abc.
2013-05-26 16:45:10 -04:00
Łukasz Langa
a15b95536f
Mention issue #16832 in Misc/NEWS
2013-05-25 18:48:16 +02:00
Antoine Pitrou
3a65ad7f08
Issue #8240 : Set the SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER flag on SSL sockets.
2013-05-25 13:02:32 +02:00
Ronald Oussoren
dc3e6cc452
(3.3->default) Issue #17269 : Workaround for a platform bug in getaddrinfo on OSX
...
Without this patch socket.getaddrinfo crashed when called
with some unusual argument combinations.
2013-05-24 13:51:21 +02:00
Ned Deily
6a00b6f4fd
Issue #17532 : merge
2013-05-22 15:24:44 -07:00
Serhiy Storchaka
447b6e3c6e
Issue #16986 : ElementTree now correctly parses a string input not only when
...
an internal XML encoding is UTF-8 or US-ASCII.
2013-05-22 17:21:06 +03:00
Serhiy Storchaka
43e145b6a4
Move a NEWS entity to a correct place.
2013-05-22 17:19:41 +03:00
Serhiy Storchaka
549681c79b
Issue #17844 : Add links to encoders and decoders for bytes-to-bytes codecs.
2013-05-22 15:35:35 +03:00
Giampaolo Rodola'
80e1c43ddf
Fix issue #17996 : expose socket.AF_LINK constant on BSD and OSX.
2013-05-21 21:02:04 +02:00
Serhiy Storchaka
3ee6dabf5b
Issue #17900 : Allowed pickling of recursive OrderedDicts. Decreased pickled
...
size and pickling time.
2013-05-21 12:47:57 +03:00
Charles-François Natali
b10c71daa2
Backed out changeset c0f2b038fc12
2013-05-21 10:45:46 +02:00
Charles-François Natali
c7c333d25d
Issue #17683 : socket module: return AF_UNIX addresses in Linux abstract
...
namespace as string.
2013-05-21 09:49:18 +02:00
Roger Serwy
87ff387254
#14146 : merge with 3.3.
2013-05-20 22:16:53 -05:00
Charles-Francois Natali
44feda3cd0
Issue #17914 : Add os.cpu_count(). Patch by Yogesh Chaudhari, based on an
...
initial patch by Trent Nelson.
2013-05-20 14:40:46 +02:00
Ezio Melotti
93c6770c72
#14097 : merge with 3.3.
2013-05-20 08:14:14 +03:00
Antoine Pitrou
c52d113e28
Issue #11995 : test_pydoc doesn't import all sys.path modules anymore.
2013-05-19 15:46:37 +02:00
Serhiy Storchaka
87aa7dc211
Issue #17812 : Fixed quadratic complexity of base64.b32encode().
...
Optimize base64.b32encode() and base64.b32decode() (speed up to 3x).
2013-05-19 11:49:32 +03:00
Antoine Pitrou
fef34e3186
Issue #17937 : Try harder to collect cyclic garbage at shutdown.
2013-05-19 01:11:58 +02:00
Antoine Pitrou
31fb419908
Issue #17980 : Fix possible abuse of ssl.match_hostname() for denial of service using certificates with many wildcards (CVE-2013-2099).
2013-05-18 17:59:12 +02:00
Raymond Hettinger
163e9821b4
Undo the deprecation of _asdict().
...
Backed out changeset c4ca39bece9d
2013-05-18 00:05:20 -07:00
Raymond Hettinger
4e0172fd9a
Deprecate nametuple._asdict()
2013-05-17 17:14:27 -07:00
Benjamin Peterson
48953632df
merge 3.3
2013-05-17 17:35:28 -05:00
Richard Oudkerk
af7260e81a
Issue #15758 : Fix FileIO.readall() so it no longer has O(n**2) complexity.
2013-05-17 23:34:42 +01:00
Serhiy Storchaka
fff61f2cd3
Issue #14596 : The struct.Struct() objects now use more compact implementation.
2013-05-17 10:49:44 +03:00
Vinay Sajip
862b15e7d0
Issue #17981 : Closed socket on error in SysLogHandler.
2013-05-16 22:57:02 +01:00
Vinay Sajip
3a8f510b52
Closes #17981 : Merged fix from 3.3.
2013-05-16 23:02:54 +01:00
Victor Stinner
6fdd7b81fa
Issue #17964 : Fix os.sysconf(): the return type of the C sysconf() function
...
is long, not int.
2013-05-16 22:26:29 +02:00
Giampaolo Rodola'
3cb09064a3
Issue #17992 : Add timeouts to asyncore and asynchat tests so that they won't accidentally hang.
2013-05-16 15:21:53 +02:00
Benjamin Peterson
1e93b06007
complain about "global __class__" in a class body ( closes #17983 )
2013-05-15 16:17:25 -05:00
Benjamin Peterson
312595ce3a
hide the __class__ closure from the class body ( #12370 )
2013-05-15 15:26:42 -05:00
Georg Brandl
c032f16d18
post-release update.
2013-05-15 19:42:39 +02:00
doko@ubuntu.com
94fd53ba4e
- Fix typos in the multiprocessing module.
2013-05-15 18:08:03 +02:00
doko@ubuntu.com
9df891ca41
- Fix typos in the multiprocessing module.
2013-05-15 18:06:56 +02:00
doko@ubuntu.com
bcaddf6382
- Issue #17754 : Make ctypes.util.find_library() independent of the locale.
2013-05-15 18:04:50 +02:00
doko@ubuntu.com
ef535584a9
- Issue #17754 : Make ctypes.util.find_library() independent of the locale.
2013-05-15 18:02:13 +02:00
doko@ubuntu.com
dbbf4c813f
Misc/NEWS: Add 3.3.3 section and move entries made after the 3.3.2 release
...
to the new section.
2013-05-15 18:00:05 +02:00
Benjamin Peterson
e1b4cbc422
when arguments are cells clear the locals slot (backport of #17927 )
2013-05-14 22:31:26 -05:00
Antoine Pitrou
9396356948
Backout c89febab4648 following private feedback by Guido.
...
(Issue #17807 : Generators can now be finalized even when they are part of a reference cycle)
2013-05-14 20:37:52 +02:00
Barry Warsaw
b710d7e4c3
- Issue #17977 : The documentation for the cadefault argument's default value
...
in urllib.request.urlopen() is fixed to match the code.
2013-05-14 11:38:38 -04:00
Barry Warsaw
d486707d2e
- Issue #17977 : The documentation for the cadefault argument's default value
...
in urllib.request.urlopen() is fixed to match the code.
2013-05-14 11:35:16 -04:00
Antoine Pitrou
5f18791902
Issue #17968 : Fix memory leak in os.listxattr().
2013-05-13 19:48:46 +02:00
Antoine Pitrou
7f987398b7
Issue #17968 : Fix memory leak in os.listxattr().
2013-05-13 19:46:29 +02:00
Georg Brandl
84fc4ba67e
Closes #17962 : Build with OpenSSL 1.0.1e on Windows.
2013-05-12 19:50:34 +02:00
Georg Brandl
997d05d89f
merge
2013-05-12 19:44:21 +02:00
Serhiy Storchaka
3068aed92b
Issue #17606 : Fixed support of encoded byte strings in the XMLGenerator
...
characters() and ignorableWhitespace() methods. Original patch by Sebastian
Ortiz Vasquez.
2013-05-12 17:31:59 +03:00
Serhiy Storchaka
3eab6b363a
Issue #17606 : Fixed support of encoded byte strings in the XMLGenerator
...
characters() and ignorableWhitespace() methods. Original patch by Sebastian
Ortiz Vasquez.
2013-05-12 17:31:16 +03:00
Georg Brandl
88f4dd6451
bump to 3.3.2
2013-05-12 12:51:38 +02:00
Georg Brandl
7025349aa8
merge with 3.3
2013-05-12 12:37:12 +02:00
Georg Brandl
521ed52131
Closes issue #17732 : ignore install-directory specific options in
...
distutils.cfg when a venv is active.
2013-05-12 12:36:07 +02:00
Georg Brandl
2665f21866
merge with 3.3
2013-05-12 12:08:05 +02:00
Georg Brandl
b3bd624a55
Back out patch for #1159051 , which caused backwards compatibility problems.
2013-05-12 11:57:26 +02:00
Georg Brandl
64949fa20e
merge with 3.2
2013-05-12 11:52:22 +02:00
Georg Brandl
a9417d7f0e
merge with 3.2
2013-05-12 11:51:26 +02:00
Georg Brandl
c502df4e3e
Issue #17915 : Fix interoperability of xml.sax with file objects returned by
...
codecs.open().
2013-05-12 11:41:12 +02:00
Georg Brandl
93b061bc3e
Issue #1159051 : Back out a fix for handling corrupted gzip files that
...
broke backwards compatibility.
2013-05-12 11:29:27 +02:00
Georg Brandl
831ae8454d
merge heads
2013-05-12 11:24:47 +02:00
Georg Brandl
fbb9152f92
Issue #17838 : merge with 3.3
2013-05-12 11:21:27 +02:00
Benjamin Peterson
0d4931eb9e
prevent IDLE from trying to close when sys.stdin is reassigned ( #17838 )
2013-05-11 22:24:28 -05:00
Benjamin Peterson
a75a2ec64d
merge 3.3 ( #17547 )
2013-05-11 13:02:59 -05:00
Benjamin Peterson
feb5149244
-Wformat is needed by gcc 4.8 ( closes #17547 )
2013-05-11 13:00:05 -05:00
Antoine Pitrou
7ce35a1816
Issue #17237 : Fix crash in the ASCII decoder on m68k.
2013-05-11 15:59:37 +02:00
Antoine Pitrou
8b0e98426d
Issue #17237 : Fix crash in the ASCII decoder on m68k.
2013-05-11 15:58:34 +02:00
Guido van Rossum
6832c81d5d
#17927 : Keep frame from referencing cell-ified arguments.
2013-05-10 08:47:42 -07:00
Serhiy Storchaka
b3c5d85680
Issue #16601 : Restarting iteration over tarfile no more continues from where
...
it left off. Patch by Michael Birtwell.
2013-05-09 14:36:58 +03:00