Christian Heimes
d2774c7d09
Issue #18259 : Declare sethostname in socketmodule.c for AIX
2013-06-19 02:06:29 +02:00
Antoine Pitrou
1a1a06ee36
Issue #18256 : Compilation fix for recent AIX releases. Patch by David Edelsohn.
2013-06-18 22:19:11 +02:00
Antoine Pitrou
9a00e0a41c
Issue #18256 : Compilation fix for recent AIX releases. Patch by David Edelsohn.
2013-06-18 22:17:48 +02:00
Christian Heimes
9ce4f36aa1
merge heads
2013-06-17 15:45:11 +02:00
Christian Heimes
9a5395ae2b
Issue #18147 : Add diagnostic functions to ssl.SSLContext().
...
get_ca_list() lists all loaded CA certificates and cert_store_stats() returns
amount of loaded X.509 certs, X.509 CA certs and CRLs.
2013-06-17 15:44:12 +02:00
Serhiy Storchaka
a5f004fe7d
Merge heads
2013-06-17 16:38:00 +03:00
Serhiy Storchaka
774bed7e60
Issue #18167 : cgi.FieldStorage no more fails to handle multipart/form-data
...
when \r\n appears at end of 65535 bytes without other newlines.
2013-06-17 16:36:20 +03:00
Serhiy Storchaka
c7bfe0e42e
Issue #18167 : cgi.FieldStorage no more fails to handle multipart/form-data
...
when \r\n appears at end of 65535 bytes without other newlines.
2013-06-17 16:34:41 +03:00
Christian Heimes
9424bb4aea
Issue #18207 : Fix test_ssl for some versions of OpenSSL that ignore seconds
...
in ASN1_TIME fields.
2013-06-17 15:32:57 +02:00
Brett Cannon
f24fecd4ac
Issue #18076 : Introduce imoportlib.util.decode_source().
...
The helper function makes it easier to implement
imoprtlib.abc.InspectLoader.get_source() by making that function
require just the raw bytes for source code and handling all other
details.
2013-06-16 18:37:53 -04:00
Brett Cannon
f4375ef4d4
importlib.abc.SourceLoader.get_source() was re-raising SyntaxError and
...
UnicodeDecodeError as ImportError. That was over-reaching the point of
raising ImportError in get_source() (which is to signal the source
code was not found when it should have). Conflating the two exceptions
with ImportError could lead to masking errors with the source which
should be known outside of whether there was an error simply getting
the source to begin with.
2013-06-16 18:05:54 -04:00
Brett Cannon
13d8ff9c5b
Issues #18058 , 18057: Make importlib._bootstrap.NamespaceLoader
...
conform the the InspectLoader ABC. Perk of this is that runpy/-m can
now work with namespace packages.
2013-06-16 14:56:58 -04:00
Brett Cannon
e4f41deccf
Issue #17177 : The imp module is pending deprecation.
...
To make sure there is no issue with code that is both Python 2 and 3
compatible, there are no plans to remove the module any sooner than
Python 4 (unless the community moves to Python 3 solidly before then).
2013-06-16 13:13:40 -04:00
Gregory P. Smith
22ba31a3af
Prevent a possible double close of parent pipe fds when the subprocess
...
exec runs into an error. Prevent a regular multi-close of the /dev/null
fd when any of stdin, stdout and stderr was set to DEVNULL.
2013-06-15 18:14:56 -07:00
Gregory P. Smith
893f2ffc7c
news entry for subprocess double close fix.
2013-06-15 18:05:17 -07:00
Andrew Kuchling
8a2a902f88
Merge with 3.3
2013-06-15 15:10:08 -04:00
Andrew Kuchling
53e5ea7951
#18113 : Objects associated to a curses.panel object with set_userptr() were leaked.
...
Reported by Atsuo Ishimoto.
2013-06-15 14:04:04 -04:00
Brett Cannon
cc39b1ed1d
merge w/ 3.3
2013-06-15 13:37:38 -04:00
Brett Cannon
27bbfdbc4c
Drop some dead imports of imp
2013-06-15 13:37:12 -04:00
Brett Cannon
a38e81428a
Issue #18194 : Introduce importlib.util.cache_from_source() and
...
source_from_cache(), finishing the work introduced in changset
4134:9cacdb9d0c59.
2013-06-14 22:35:40 -04:00
Ethan Furman
6b3d64ab5d
Closes issue 17947. Adds PEP-0435 (Adding an Enum type to the Python standard library).
...
Missing files added.
News entry added.
2013-06-14 16:55:46 -07:00
Brett Cannon
2d77204180
Issue #17907 : Document types.ModuleType's constructor and attributes,
...
allowing for documenting imp.new_module() as deprecated.
2013-06-14 19:19:57 -04:00
Brett Cannon
05a647deed
Issue #18192 : Introduce importlib.util.MAGIC_NUMBER and document the
...
deprecation of imp.get_magic().
2013-06-14 19:02:34 -04:00
Brett Cannon
8c18da20f9
merge
2013-06-14 18:33:21 -04:00
Brett Cannon
33915eba7c
Issue #17222 : Raise FileExistsError when py_compile.compile would
...
overwrite a symlink or non-regular file with a regular file.
2013-06-14 18:33:00 -04:00
Ned Deily
7bff3cbe3d
Issue #18149 : Add filecmp.clear_cache() to manually clear the filecmp cache.
...
Patch by Mark Levitt
2013-06-14 15:19:11 -07:00
Brett Cannon
3fe35e6503
Issue #18193 : Add importlib.reload(), documenting (but not
...
implementing in code) the deprecation of imp.reload().
Thanks to Berker Peksag for the patch.
2013-06-14 15:04:26 -04:00
Christian Heimes
09ec23f120
Issue #15172 : Document NASM 2.10+ as requirement for building OpenSSL 1.0.1 on Windows
2013-06-14 15:48:16 +02:00
Christian Heimes
c81549f476
Issue #15172 : Document NASM 2.10+ as requirement for building OpenSSL 1.0.1 on Windows
2013-06-14 15:40:28 +02:00
Brett Cannon
8f5ac5106e
Issue #15767 : Touch up ModuleNotFoundError usage by import.
...
Forgot to raise ModuleNotFoundError when None is found in sys.modules.
This led to introducing the C function PyErr_SetImportErrorSubclass()
to make setting ModuleNotFoundError easier.
Also updated the reference docs to mention ModuleNotFoundError
appropriately. Updated the docs for ModuleNotFoundError to mention the
None in sys.modules case.
Lastly, it was noticed that PyErr_SetImportError() was not setting an
exception when returning None in one case. That issue is now fixed.
2013-06-12 23:29:18 -04:00
Brett Cannon
b1611e2772
Issue #15767 : Introduce ModuleNotFoundError, a subclass of
...
ImportError.
The exception is raised by import when a module could not be found.
Technically this is defined as no viable loader could be found for the
specified module. This includes ``from ... import`` statements so that
the module usage is consistent for all situations where import
couldn't find what was requested.
This should allow for the common idiom of::
try:
import something
except ImportError:
pass
to be updated to using ModuleNotFoundError and not accidentally mask
ImportError messages that should propagate (e.g. issues with a
loader).
This work was driven by the fact that the ``from ... import``
statement needed to be able to tell the difference between an
ImportError that simply couldn't find a module (and thus silence the
exception so that ceval can raise it) and an ImportError that
represented an actual problem.
2013-06-12 16:59:46 -04:00
Roger Serwy
6d844c5db9
#18196 : merge with 3.3
2013-06-11 22:25:34 -05:00
Roger Serwy
f467521927
#18196 : Avoid displaying spurious SystemExit tracebacks.
2013-06-11 22:25:14 -05:00
Roger Serwy
c2efeb61b9
#5492 : merge with 3.3
2013-06-11 22:13:51 -05:00
Roger Serwy
036e84924a
#5492 : Avoid traceback when exiting IDLE caused by a race condition.
2013-06-11 22:13:17 -05:00
Brett Cannon
d5e6f2e200
Issue #18157 : stop using imp.load_module() in imp.
2013-06-11 17:09:36 -04:00
Roger Serwy
30b4131b41
#17511 : merge with 3.3.
2013-06-10 23:02:56 -05:00
Roger Serwy
391f469681
#17511 : Keep IDLE find dialog open after clicking "Find Next".
...
Original patch by Sarah K.
2013-06-10 23:01:20 -05:00
Benjamin Peterson
3164f5d565
merge 3.3 ( #18183 )
2013-06-10 09:24:01 -07:00
Benjamin Peterson
7e30373126
remove MAX_MAXCHAR because it's unsafe for computing maximum codepoitn value (see #18183 )
2013-06-10 09:19:46 -07:00
Richard Oudkerk
cac17b4d78
Merge.
2013-06-10 15:45:30 +01:00
Richard Oudkerk
409f90237c
Issue #18180 : Fix ref leak in _PyImport_GetDynLoadWindows().
2013-06-10 15:38:54 +01:00
Serhiy Storchaka
531381f207
Issue #16102 : Make uuid._netbios_getnode() work again on Python 3.
2013-06-09 21:10:13 +03:00
Serhiy Storchaka
6f50b810b7
Issue #16102 : Make uuid._netbios_getnode() work again on Python 3.
2013-06-09 21:08:05 +03:00
Christian Heimes
46bebee25f
Issue #17134 : Add ssl.enum_cert_store() as interface to Windows' cert store.
2013-06-09 19:03:31 +02:00
Christian Heimes
6d7ad13a45
Issue #18143 : Implement ssl.get_default_verify_paths() in order to debug
...
the default locations for cafile and capath.
2013-06-09 18:02:55 +02:00
Serhiy Storchaka
302b8c31ec
Issue #15239 : Make mkstringprep.py work again on Python 3.
2013-06-09 17:11:48 +03:00
Serhiy Storchaka
e7275ffa4c
Issue #15239 : Make mkstringprep.py work again on Python 3.
2013-06-09 17:08:00 +03:00
Serhiy Storchaka
9670543a00
Issue #18038 : SyntaxError raised during compilation sources with illegal
...
encoding now always contains an encoding name.
2013-06-09 16:53:55 +03:00
Serhiy Storchaka
3af14aaba5
Issue #18038 : SyntaxError raised during compilation sources with illegal
...
encoding now always contains an encoding name.
2013-06-09 16:51:52 +03:00
Ezio Melotti
7dc4c03344
#18126 : merge with 3.3.
2013-06-09 01:05:16 +03:00
Ezio Melotti
c1f5839412
#18126 : update NumPy links in the documentation. Patch by Yury V. Zaytsev.
2013-06-09 01:04:21 +03:00
Ezio Melotti
f103d55b2a
#17691 : merge with 3.3.
2013-06-09 00:10:04 +03:00
Ezio Melotti
28b0d9d13e
#17691 : test_univnewlines now works with unittest test discovery. Patch by Zachary Ware.
2013-06-09 00:07:06 +03:00
Łukasz Langa
7f7a67aac8
Fixed #18150 : duplicate test inside TestSingleDispatch
...
Thanks to Vajrasky Kok for the patch
2013-06-07 22:25:27 +02:00
Brett Cannon
abb18af38f
merge w/ 3.3 for issue #18055
2013-06-07 13:18:36 -04:00
Brett Cannon
50793b4438
Issue #18055 : Move to importlib from imp for IDLE.
2013-06-07 13:17:48 -04:00
Brett Cannon
a33e11e436
Issue #17314 : Stop using imp in multiprocessing.forking and move over
...
to importlib.
2013-06-07 11:45:41 -04:00
Vinay Sajip
30298b468b
Closes #11959 : SMTPServer and SMTPChannel now take an optional map, use of which avoids affecting global state.
2013-06-07 15:21:41 +01:00
Richard Oudkerk
ac0ad884d1
Issue #17931 : Resolve confusion on Windows between pids and process handles.
2013-06-05 23:29:30 +01:00
Łukasz Langa
6f69251980
Add reference implementation for PEP 443
...
PEP accepted: http://mail.python.org/pipermail/python-dev/2013-June/126734.html
2013-06-05 12:20:24 +02:00
Victor Stinner
7e91e771a9
Close #17931 : Fix PyLong_FromPid() on Windows 64-bit: processes are identified
...
by their HANDLE which is a pointer (and not a long, which is smaller).
2013-06-04 23:56:38 +02:00
Brett Cannon
c97ec8fa69
merge
2013-06-04 17:36:07 -04:00
Brett Cannon
af38f5a503
Tweak at the suggestion of Ezio Melotti for exception messages when
...
EOF is hit while trying to read the header of a bytecode file.
2013-06-04 17:34:49 -04:00
Victor Stinner
e0b99ba140
Close #17932 : Fix an integer overflow issue on Windows 64-bit in iterators:
...
change the C type of seqiterobject.it_index from long to Py_ssize_t.
2013-06-04 23:02:46 +02:00
Victor Stinner
0b81111b18
(Merge 3.3) Close #18109 : os.uname() now decodes fields from the locale
...
encoding, and socket.gethostname() now decodes the hostname from the locale
encoding, instead of using the UTF-8 encoding in strict mode.
2013-06-03 22:09:14 +02:00
Victor Stinner
a534fc4b3b
Close #18109 : os.uname() now decodes fields from the locale encoding, and
...
socket.gethostname() now decodes the hostname from the locale encoding, instead
of using the UTF-8 encoding in strict mode.
2013-06-03 22:07:27 +02:00
Serhiy Storchaka
7d15b54f37
Issue #18094 : test_uuid no more reports skipped tests as passed.
2013-05-31 22:31:02 +03:00
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
Serhiy Storchaka
3610286f8c
Merge heads
2013-08-03 21:17:04 +03: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
Eli Bendersky
08231a9c6a
Issue #17901 : fix TreeBuilder construction for an explicit element_factory=None
...
Based on report and patch by Aaron Oakley.
2013-05-18 15:47:16 -07: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
d739bda6b2
Issue #18084 : Use sys.byteorder in wave.py.
...
Original patch by Hideaki Takahashi.
2013-05-29 23:38:00 +03: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
Eli Bendersky
20c1cdd64a
Issue #17901 : fix TreeBuilder construction for an explicit element_factory=None
...
Based on report and patch by Aaron Oakley.
2013-05-18 15:47:58 -07: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
Brian Curtin
e914123d1f
Merge with 3.3
2013-05-16 12:03:40 -05:00
Brian Curtin
2502ebf9c9
Add Nick Sloan for his contribution to #17732
2013-05-16 11:59:29 -05: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
Ezio Melotti
173d4109b5
#17841 : remove missing codecs aliases from the documentation. Patch by Thomas Fenzl.
2013-05-10 05:21:35 +03:00
Ezio Melotti
79ec9f0ec9
#17809 : merge with 3.3.
2013-05-09 15:24:30 +03:00
Ezio Melotti
ce82d57c74
#17809 : fix a test failure in test_expanduser when $HOME has a trailing /. Patch by Kubilay Kocak.
2013-05-09 15:19:45 +03: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
Serhiy Storchaka
263fab94ee
Issue #16601 : Restarting iteration over tarfile no more continues from where
...
it left off. Patch by Michael Birtwell.
2013-05-09 14:22:26 +03:00
Antoine Pitrou
04e70d19e7
Issue #17807 : Generators can now be finalized even when they are part of a reference cycle.
2013-05-08 18:12:35 +02:00
Antoine Pitrou
070cb3c9be
Issue #1545463 : At shutdown, defer finalization of codec modules so that stderr remains usable.
...
(should fix Windows buildbot failures on test_gc)
2013-05-08 13:23:25 +02:00
Ezio Melotti
7168879eb2
#17871 : merge with 3.3.
2013-05-07 09:47:08 +03:00
Ezio Melotti
9c939bceeb
#17871 : fix unittest.TextTestRunner signature in the docs. Patch by Yogesh Chaudhari.
2013-05-07 09:46:30 +03:00
Victor Stinner
8cecc8c262
Issue #7330 : Implement width and precision (ex: "%5.3s") for the format string
...
of PyUnicode_FromFormat() function, original patch written by Ysj Ray.
2013-05-06 23:11:54 +02:00
Antoine Pitrou
9b5d4d8cef
Issue #17289 : The readline module now plays nicer with external modules or applications changing the rl_completer_word_break_characters global variable.
...
Initial patch by Bradley Froehle.
2013-05-06 21:54:07 +02:00
Antoine Pitrou
a7f7deb6ed
Issue #17289 : The readline module now plays nicer with external modules or applications changing the rl_completer_word_break_characters global variable.
...
Initial patch by Bradley Froehle.
2013-05-06 21:51:03 +02:00
Charles-Francois Natali
b1294fa9f4
Issue #12181 : select module: Fix struct kevent definition on OpenBSD 64-bit
...
platforms. Patch by Federico Schwindt.
2013-05-06 21:26:05 +02:00
Charles-Francois Natali
002a77d2f7
Issue #12181 : select module: Fix struct kevent definition on OpenBSD 64-bit
...
platforms. Patch by Federico Schwindt.
2013-05-06 21:24:31 +02:00
Antoine Pitrou
5f454a07a0
Issue #1545463 : Global variables caught in reference cycles are now garbage-collected at shutdown.
2013-05-06 21:15:57 +02:00
David Malcolm
1df37c657d
#17833 : merge with 3.3
2013-05-06 14:51:13 -04:00
David Malcolm
d08b210164
#17833 : fix test_gdb failures seen on PPC64 Linux in test_threads (test.test_gdb.PyBtTests)
2013-05-06 14:47:15 -04:00
Nick Coghlan
b39fd0c9b8
Issue #11816 : multiple improvements to the dis module
...
* get_instructions generator
* ability to redirect output to a file
* Bytecode and Instruction abstractions
Patch by Nick Coghlan, Ryan Kelly and Thomas Kluyver.
2013-05-06 23:59:20 +10:00
Richard Oudkerk
60bb107ef3
Correct issue number for c4f92b597074 in Misc/NEWS from #13813 to #13831
2013-05-06 12:24:30 +01:00
Richard Oudkerk
8575783a00
Issue #13813 : Embed stringification of remote traceback in local
...
traceback raised when pool task raises an exception.
2013-05-06 11:38:25 +01:00
Roger Serwy
53683f6f4b
#13495 : merge with 3.3.
2013-05-05 22:16:03 -05:00
Roger Serwy
9bc7b793ea
#13495 : Avoid loading the color delegator twice in IDLE.
2013-05-05 22:15:44 -05:00
Richard Oudkerk
7a3dae056d
Issue #15528 : Add weakref.finalize to support finalization using
...
weakref callbacks.
This is 2e446e87ac5b except that collections/__init__.py has been
modified to import proxy from _weakref instead of weakref. This
eliminates an import cycle which seems to cause a problem on Unix but
not Windows.
2013-05-05 23:05:00 +01:00
Antoine Pitrou
8408cea0cd
Issue #17094 : Clear stale thread states after fork().
...
Note that this is a potentially disruptive change since it may
release some system resources which would otherwise remain
perpetually alive (e.g. database connections kept in thread-local
storage).
2013-05-05 23:47:09 +02:00
Richard Oudkerk
39b17c513a
Backout 2e446e87ac5b; it breaks the unix buildbots.
2013-05-05 22:12:34 +01:00
Richard Oudkerk
f3593026de
Issue #15528 : Add weakref.finalize to support finalization using
...
weakref callbacks.
2013-05-05 20:59:04 +01:00
Roger Serwy
2faf9b0869
#17798 : merge with 3.3.
2013-05-05 11:35:15 -05:00
Roger Serwy
5b1ab24751
#17798 : Allow IDLE to edit new files when specified on command line.
2013-05-05 11:34:21 -05:00
Antoine Pitrou
52c5f85cf9
Issue #14173 : Avoid crashing when reading a signal handler during interpreter shutdown.
2013-05-04 23:21:09 +02:00
Antoine Pitrou
c8c952ce2a
Issue #14173 : Avoid crashing when reading a signal handler during interpreter shutdown.
2013-05-04 23:16:59 +02:00
Antoine Pitrou
df6931dbbc
Issue #17408 : Avoid using an obsolete instance of the copyreg module when the interpreter is shutdown and then started again.
2013-05-04 20:46:19 +02:00
Antoine Pitrou
957a23b088
Issue #17408 : Avoid using an obsolete instance of the copyreg module when the interpreter is shutdown and then started again.
2013-05-04 20:45:02 +02:00
Antoine Pitrou
1a6cb30a34
Issue #5845 : Enable tab-completion in the interactive interpreter by default, thanks to a new sys.__interactivehook__.
...
(original patch by Éric Araujo)
2013-05-04 20:08:35 +02:00
Brett Cannon
4c14b5de1c
#17115,17116: Have modules initialize the __package__ and __loader__
...
attributes to None.
The long-term goal is for people to be able to rely on these
attributes existing and checking for None to see if they have been
set. Since import itself sets these attributes when a loader does not
the only instances when the attributes are None are from someone
overloading __import__() and not using a loader or someone creating a
module from scratch.
This patch also unifies module initialization. Before you could have
different attributes with default values depending on how the module
object was created. Now the only way to not get the same default set
of attributes is to circumvent initialization by calling
ModuleType.__new__() directly.
2013-05-04 13:56:58 -04:00
Ezio Melotti
4e59af7abd
#7855 : merge with 3.3.
2013-05-04 17:47:54 +03:00
Ezio Melotti
28faf03d44
#7855 : Add tests for ctypes/winreg for issues found in IronPython. Initial patch by Dino Viehland.
2013-05-04 17:46:23 +03:00
Serhiy Storchaka
59115aa7c9
Issue #16316 : mimetypes now recognizes the .xz and .txz (.tar.xz) extensions.
2013-05-04 15:12:55 +03:00
Brett Cannon
2a9c653f38
#15902 : merge w/ 3.3
2013-05-03 10:47:17 -04:00
Brett Cannon
9d0f772c51
Issue #15902 : Fix imp.load_module() to accept None as a file when
...
trying to load an extension module.
While at it, also add a proper unittest.skipIf() guard to another test
involving imp.load_dynamic().
2013-05-03 10:37:08 -04:00
Raymond Hettinger
4072875dcb
merge
2013-05-03 02:41:02 -07:00
Raymond Hettinger
b98dcc1f53
Issue #15535 : Fix pickling of named tuples.
2013-05-03 02:24:15 -07:00
Antoine Pitrou
242db728e2
Issue #13721 : SSLSocket.getpeercert() and SSLSocket.do_handshake() now raise an OSError with ENOTCONN, instead of an AttributeError, when the SSLSocket is not connected.
2013-05-01 20:52:07 +02:00
Ezio Melotti
f6ca26fbff
#17802 : merge with 3.3.
2013-05-01 16:20:00 +03:00
Ezio Melotti
8e596a765c
#17802 : Fix an UnboundLocalError in html.parser. Initial tests by Thomas Barlow.
2013-05-01 16:18:25 +03:00
Ezio Melotti
8dff4bd7af
Move NEWS entry to the right section.
2013-05-01 16:13:45 +03:00
Ezio Melotti
1698babd1b
#14679 : add an __all__ (that contains only HTMLParser) to html.parser.
2013-05-01 16:09:34 +03:00
Ezio Melotti
ed52f6cb73
#11078 : test___all__ now checks for duplicates in __all__. Initial patch by R. David Murray.
2013-05-01 14:58:09 +03:00
Antoine Pitrou
4c09c2cbd5
Issue #17712 : Fix test_gdb failures on Ubuntu 13.04.
2013-05-01 00:17:45 +02:00
Antoine Pitrou
81641d6ebc
Issue #17712 : Fix test_gdb failures on Ubuntu 13.04.
2013-05-01 00:15:44 +02:00
Benjamin Peterson
3b0431dc60
check local class namespace before reaching for cells ( closes #17853 )
2013-04-30 09:41:40 -04:00
Gregory P. Smith
5d6620d9d5
fix the news entry, the description in 3.3 should be different
...
than the one merged from 3.2 to match the actual changes here.
2013-04-30 01:01:54 -07:00
Gregory P. Smith
fde108ba37
news entry
2013-04-30 00:58:24 -07:00
Gregory P. Smith
cf86d9441e
news entry
2013-04-30 00:57:18 -07:00
Benjamin Peterson
0bb83f812f
merge 3.3 ( #17863 )
2013-04-29 10:23:31 -04:00
Benjamin Peterson
fe1b22af0a
ignore errors when trying to fetch sys.stdin.encoding ( closes #17863 )
2013-04-29 10:23:08 -04:00
Benjamin Peterson
5c089314ef
merge 3.3
2013-04-29 09:08:33 -04:00
Benjamin Peterson
7d110042c5
raise an ImportError (rather than fatal) when __import__ is not found in __builtins__ ( closes #17867 )
2013-04-29 09:08:14 -04:00
Brett Cannon
e1d30f24ee
merge for issue #17358
2013-04-28 11:58:31 -04:00
Brett Cannon
5a4c233a9e
Issue #17358 : imp.load_source() and load_compiled() should now return
...
modules which will typically work when reloaded.
A hack is used to support these functions as their API allowed them to
pass in a file object but then operate as if import had loaded them.
Unfortunately the hack kept a reference around for the file object
passed in which would be unusable on reload since it had been closed.
The solution is to simply use the hack for the initial load but then a
proper loader on the module so that imp.reload() at least has a chance
to work.
2013-04-28 11:53:26 -04:00
R David Murray
876f08e3ae
Merge #7152 : Clarify that ProxyHandler is added only if proxy settings are detected.
...
Behavior confirmation and initial patch by Jessica McKellar.
2013-04-28 11:08:27 -04:00
R David Murray
5aea37ad1d
#7152 : Clarify that ProxyHandler is added only if proxy settings are detected.
...
Behavior confirmation and initial patch by Jessica McKellar.
2013-04-28 11:07:16 -04:00
Serhiy Storchaka
5f99fa7287
Issue #17857 : Prevent build failures with pre-3.5.0 versions of sqlite3,
...
such as was shipped with Centos 5 and Mac OS X 10.4.
2013-04-28 14:11:55 +03:00
Serhiy Storchaka
a9217a42e6
Issue #17857 : Prevent build failures with pre-3.5.0 versions of sqlite3,
...
such as was shipped with Centos 5 and Mac OS X 10.4.
2013-04-28 14:10:27 +03:00
Georg Brandl
ba2f8be4c6
Issue #17843 : Remove bz2 test data that triggers antivirus warnings.
2013-05-12 11:11:51 +02:00
Georg Brandl
ce654f48aa
Issue #15535 : Fix pickling of named tuples.
2013-05-12 11:09:11 +02:00
Serhiy Storchaka
d160b12292
Issue #17857 : Prevent build failures with pre-3.5.0 versions of sqlite3,
...
such as was shipped with Centos 5 and Mac OS X 10.4.
2013-04-28 14:10:27 +03:00
Antoine Pitrou
9f14681959
Issue #17804 : New function ``struct.iter_unpack`` allows for streaming struct unpacking.
2013-04-27 00:20:04 +02:00
R David Murray
f0f7ceae3c
17830: preserve line endings of original file when updating keywords.
...
This fixes the test failures on Windows from the new tests, and
includes test fixes as well as the module fix.
2013-04-25 12:01:36 -04:00
Senthil Kumaran
5238092592
Issue #17272 : Making the urllib.request's Request.full_url a descriptor. Fixes
...
bugs with assignment to full_url. Patch by Demian Brecht.
2013-04-25 05:45:48 -07:00
Antoine Pitrou
34373b2252
Issue #17835 : Fix test_io when the default OS pipe buffer size is larger than one million bytes.
2013-04-24 23:33:20 +02:00
Antoine Pitrou
e1a1674e1e
Issue #17835 : Fix test_io when the default OS pipe buffer size is larger than one million bytes.
2013-04-24 23:31:38 +02:00
Ronald Oussoren
a8a5c58a19
(3.3->default) Ensure that plistlib doesn't corrupt deeply nested datastructures
...
Without this changeset plistlib would write empty tags for plistlib.Data
objects in deeply nested datastructures.
Fixes #17353
2013-04-23 13:48:29 +02:00
Ronald Oussoren
326edfde56
Ensure that plistlib doesn't corrupt deeply nested datastructures
...
Without this changeset plistlib would write empty tags for plistlib.Data
objects in deeply nested datastructures.
Fixes #17353
2013-04-23 13:47:22 +02:00
Serhiy Storchaka
b00b596c05
Issue #11714 : Use 'with' statements to assure a Semaphore releases a
...
condition variable. Original patch by Thomas Rachel.
2013-04-22 22:54:16 +03:00
Serhiy Storchaka
81a5855a27
Issue #11714 : Use 'with' statements to assure a Semaphore releases a
...
condition variable. Original patch by Thomas Rachel.
2013-04-22 22:51:43 +03:00
Serhiy Storchaka
fcd9f22238
Issue #16624 : `subprocess.check_output` now accepts an `input` argument,
...
allowing the subprocess's stdin to be provided as a (byte) string.
Patch by Zack Weinberg.
2013-04-22 20:20:54 +03:00
Eli Bendersky
ed8b86d323
Issue #17736 : fix misleading comment in _elementtree.c
...
Patch by Jonas Wagner
2013-04-22 05:29:09 -07:00