Brett Cannon
9e080e0e74
Issue #25609 : Introduce contextlib.AbstractContextManager and
...
typing.ContextManager.
2016-04-08 12:15:27 -07:00
Serhiy Storchaka
c5b5ba9bda
Issue #26709 : Fixed Y2038 problem in loading binary PLists.
2016-04-08 15:00:33 +03:00
Serhiy Storchaka
94ad49fabc
Issue #26709 : Fixed Y2038 problem in loading binary PLists.
2016-04-08 15:00:02 +03:00
Martin Panter
b15c304984
Issue #6953 : Merge readline doc from 3.5
2016-04-05 10:17:38 +00:00
Martin Panter
0f7673943a
Issue #6953 : Rearrange and expand Readline module documentation
...
* Group functions into six new subsections
* Document the underlying Readline function or variable accessed
* get_history_length() returns the history file limit
* clear_history() is conditionally compiled in
* Clarify zero and one bases for history item indexes
* parse_and_bind() uses its argument directly as an init line
* Change "command line" to "line buffer" for consistency
* read_init_file() also executes the file
* read_history_file() replaces the previous history
* write_history_file() overwrites any existing file
* Differentiate history file lines from history list items, which could be
multi-line
* Add more information about completion, also addressing Issue #10796
* libedit (Editline) may be used on any platform; detection is OS X specific
2016-04-05 07:37:22 +00:00
Martin Panter
c86c91aab0
Merge typo fixes from 3.5
2016-04-05 06:20:32 +00:00
Martin Panter
cc71a795df
Fix typos in documentation and comments
2016-04-05 06:19:42 +00:00
Martin Panter
a3506005b3
Issue #23735 : Merge Readline resize handling from 3.5
2016-04-03 03:19:27 +00:00
Martin Panter
5dbbf1abba
Issue #23735 : Add SIGWINCH handler for Readline 6.3+ support, by Eric Price
2016-04-03 02:54:58 +00:00
Martin Panter
519f91215b
Issue #25951 : Fix SSLSocket.sendall() to return None, by Aviv Palivoda
2016-04-03 02:12:54 +00:00
Martin Panter
b93e4b2480
Issue #26586 : Merge excessive HTTP header handling from 3.5
2016-04-03 01:28:49 +00:00
Martin Panter
acc03195b0
Issue #26586 : Handle excessive header fields in http.server, by Xiang Zhang
2016-04-03 00:45:46 +00:00
Martin Panter
dcfebb32e2
Issue #26676 : Add missing XMLPullParser to ElementTree.__all__
2016-04-01 06:55:55 +00:00
Martin Panter
047f3b7376
Issue #22854 : Merge UnsupportedOperation fixes from 3.5
2016-03-31 08:25:59 +00:00
Martin Panter
754aab28ed
Issue #22854 : Clarify documentation about UnsupportedOperation and add tests
...
Also change BufferedReader.writable() and BufferedWriter.readable() to always
return False.
2016-03-31 07:21:56 +00:00
Serhiy Storchaka
ab0d198c7a
Issue #26492 : Exhausted iterator of array.array now conforms with the behavior
...
of iterators of other mutable sequences: it lefts exhausted even if iterated
array is extended.
2016-03-30 21:11:16 +03:00
Serhiy Storchaka
ab479c49d3
Issue #26494 : Fixed crash on iterating exhausting iterators.
...
Affected classes are generic sequence iterators, iterators of str, bytes,
bytearray, list, tuple, set, frozenset, dict, OrderedDict, corresponding
views and os.scandir() iterator.
2016-03-30 20:41:15 +03:00
Serhiy Storchaka
fbb1c5ee06
Issue #26494 : Fixed crash on iterating exhausting iterators.
...
Affected classes are generic sequence iterators, iterators of str, bytes,
bytearray, list, tuple, set, frozenset, dict, OrderedDict, corresponding
views and os.scandir() iterator.
2016-03-30 20:40:02 +03:00
Victor Stinner
9759dd3343
Issue #26295 : When using "python3 -m test --testdir=TESTDIR", regrtest doesn't
...
add "test." prefix to test module names.
regrtest also prepends testdir to sys.path.
2016-03-30 02:32:52 +02:00
Victor Stinner
b1511f789e
doctest now supports packages
...
Issue #26641 : doctest.DocFileTest and doctest.testfile() now support packages
(module splitted into multiple directories) for the package parameter.
2016-03-30 01:29:05 +02:00
Martin Panter
ef4bb1e994
Issue #23804 : Merge SSL zero read fix from 3.5
2016-03-28 01:09:13 +00:00
Martin Panter
f6b1d66a3c
Issue #23804 : Fix SSL recv/read(0) to not return 1024 bytes
2016-03-28 00:22:09 +00:00
Berker Peksag
5a6c018b57
Issue #25195 : Fix a regression in mock.MagicMock
...
_Call is a subclass of tuple (changeset 3603bae63c13 only works
for classes) so we need to implement __ne__ ourselves.
Patch by Andrew Plummer.
2016-03-28 00:30:40 +03:00
Berker Peksag
ce913877e4
Issue #25195 : Fix a regression in mock.MagicMock
...
_Call is a subclass of tuple (changeset 3603bae63c13 only works
for classes) so we need to implement __ne__ ourselves.
Patch by Andrew Plummer.
2016-03-28 00:30:02 +03:00
Martin Panter
afd465d497
Issue #26644 : Merge SSL negative read fix from 3.5
2016-03-27 10:40:22 +00:00
Martin Panter
5503d4731e
Issue #26644 : Raise ValueError for negative SSLSocket.recv() and read()
2016-03-27 05:35:19 +00:00
Martin Panter
3840b2ac67
Issue #25940 : Use internal local server more in test_ssl
...
Move many tests from NetworkedTests and NetworkedBIOTests to a new Simple-
BackgroundTests class, using the existing ThreadedEchoServer and SIGNED_
CERTFILE infrastructure.
For tests that cause the server to crash by rejecting its certificate,
separate them into independent test methods.
Added custom root certificate to capath with the following commands:
cp Lib/test/{pycacert.pem,capath/}
# Edit copy to remove part before certificate
c_rehash -v Lib/test/capath/
c_rehash -v -old Lib/test/capath/
# Note the generated file names
cp Lib/test/capath/{pycacert.pem,b1930218.0}
mv Lib/test/capath/{pycacert.pem,ceff1710.0}
Change to pure PEM version of SIGNING_CA because PEM_cert_to_DER_cert() does
not like the extra text at the start.
Moved test_connect_ex_error() into BasicSocketTests and rewrote it to connect
to a reserved localhost port.
NetworkedTests.test_get_server_certificate_ipv6() split out because it needs
to connect to an IPv6 DNS address.
The only reference left to self-signed.pythontest.net is test_timeout_
connect_ex(), which needs a remote server to reliably time out the
connection, but does not rely on the server running SSL.
Made ThreadedEchoServer call unwrap() by default when it sees the client has
shut the connection down, so that the client can cleanly call unwrap().
2016-03-27 01:53:46 +00:00
Alexander Belopolsky
16b698b095
merge
2016-03-25 15:46:55 -04:00
Alexander Belopolsky
1dcf4f9ee5
Issue#26616:Fixed a bug in datetime.astimezone() method.
2016-03-25 15:42:59 -04:00
Zachary Ware
4a2e663f99
Fix a few typos
2016-03-24 22:45:00 -05:00
Victor Stinner
4f17426437
Fix bug in __import__ during Python shutdown
...
Issue #26637 : The importlib module now emits an ImportError rather than a
TypeError if __import__() is tried during the Python shutdown process but
sys.path is already cleared (set to None).
2016-03-25 00:40:59 +01:00
Victor Stinner
e091d32a7a
Merge 3.5
...
Issue #21925 : warnings.formatwarning() now catches exceptions when calling
linecache.getline() and tracemalloc.get_object_traceback() to be able to log
ResourceWarning emitted late during the Python shutdown process.
2016-03-25 00:33:12 +01:00
Victor Stinner
27461683a9
warnings.formatwarning(): catch exceptions
...
Issue #21925 : warnings.formatwarning() now catches exceptions on
linecache.getline(...) to be able to log ResourceWarning emitted late during
the Python shutdown process.
2016-03-25 00:30:32 +01:00
Victor Stinner
404cdc5a92
faulthandler: add Windows exception handler
...
Issue #23848 : On Windows, faulthandler.enable() now also installs an exception
handler to dump the traceback of all Python threads on any Windows exception,
not only on UNIX signals (SIGSEGV, SIGFPE, SIGABRT).
2016-03-23 10:39:17 +01:00
Victor Stinner
10b73e1748
Add C functions _PyTraceMalloc_Track()
...
Issue #26530 :
* Add C functions _PyTraceMalloc_Track() and _PyTraceMalloc_Untrack() to track
memory blocks using the tracemalloc module.
* Add _PyTraceMalloc_GetTraceback() to get the traceback of an object.
2016-03-22 13:39:05 +01:00
Victor Stinner
e492ae50e2
tracemalloc now supports domains
...
Issue #26588 :
* The _tracemalloc now supports tracing memory allocations of multiple address
spaces (domains).
* Add domain parameter to tracemalloc_add_trace() and
tracemalloc_remove_trace().
* tracemalloc_add_trace() now starts by removing the previous trace, if any.
* _tracemalloc._get_traces() now returns a list of (domain, size,
traceback_frames): the domain is new.
* Add tracemalloc.DomainFilter
* tracemalloc.Filter: add an optional domain parameter to the constructor and a
domain attribute
* Sublte change: use Py_uintptr_t rather than void* in the traces key.
* Add tracemalloc_config.use_domain, currently hardcoded to 1
2016-03-22 12:58:23 +01:00
Martin Panter
0b2d71bc70
Issue #24266 : Merge readline Ctrl+C handling from 3.5
2016-03-22 09:28:58 +00:00
Martin Panter
d6990d221b
Issue #24266 : Cancel history search mode with Ctrl+C in Readline 7
2016-03-22 07:24:05 +00:00
Benjamin Peterson
2efdc8c7c1
merge 3.5 ( #17167 )
2016-03-21 22:31:31 -07:00
Benjamin Peterson
e46487b133
merge 3.4 ( #17167 )
2016-03-21 22:31:24 -07:00
Benjamin Peterson
b9869dfe35
remove useless $ keyword ( closes #17167 )
2016-03-21 22:31:02 -07:00
Serhiy Storchaka
e431d3c9aa
Issue #26581 : Use the first coding cookie on a line, not the last one.
2016-03-20 23:36:29 +02:00
Victor Stinner
19a8e844e4
Add socket finalizer
...
Issue #26590 : Implement a safe finalizer for the _socket.socket type. It now
releases the GIL to close the socket. Use PyErr_ResourceWarning() to raise the
ResourceWarning to pass the socket object to the warning logger, to get the
traceback where the socket was created (allocated).
2016-03-21 16:36:48 +01:00
Victor Stinner
fac395681f
Optimize bytes.replace(b'', b'.')
...
Issue #26574 : Optimize bytes.replace(b'', b'.') and
bytearray.replace(b'', b'.'): up to 80% faster. Patch written by Josh Snider.
2016-03-21 10:38:58 +01:00
Berker Peksag
1cd4ff6284
Issue #26560 : Avoid potential ValueError in BaseHandler.start_response
...
Initial patch by Peter Inglesby.
2016-03-19 09:04:59 +02:00
Serhiy Storchaka
a051bf3afb
Issue #26581 : Use the first coding cookie on a line, not the last one.
2016-03-20 23:47:48 +02:00
Berker Peksag
3c3d7f4b99
Issue #18787 : spwd.getspnam() now raises a PermissionError if the user
...
doesn't have privileges.
2016-03-19 11:44:17 +02:00
Berker Peksag
cf934a1c9b
Issue #26560 : Avoid potential ValueError in BaseHandler.start_response
...
Initial patch by Peter Inglesby.
2016-03-19 09:05:59 +02:00
Victor Stinner
914cde89d4
On ResourceWarning, log traceback where the object was allocated
...
Issue #26567 :
* Add a new function PyErr_ResourceWarning() function to pass the destroyed
object
* Add a source attribute to warnings.WarningMessage
* Add warnings._showwarnmsg() which uses tracemalloc to get the traceback where
source object was allocated.
2016-03-19 01:03:51 +01:00
Ezio Melotti
6840632ef2
#26250 : merge with 3.5.
2016-03-18 20:11:30 +02:00
Ezio Melotti
62564dbb4b
#26250 : document the sqlite3.Cursor.connection attribute. Initial patches by Aviv Palivoda and Varpu Rantala.
2016-03-18 20:10:36 +02:00
Brett Cannon
32cba67b9f
Merge for issue #26271
2016-03-18 10:30:21 -07:00
Brett Cannon
e4044bfe63
Issue #26271 : Fix the Freeze tool to use variables passed in from the
...
configure script related to compiler flags.
Thanks to Daniel Shaulov for the bug report and patch.
2016-03-18 10:29:43 -07:00
Steve Dower
3ca3342307
Issue #26313 : ssl.py _load_windows_store_certs fails if windows cert store is empty. Patch by Baji.
2016-03-17 15:02:53 -07:00
Steve Dower
8dd7aebc23
Issue #26313 : ssl.py _load_windows_store_certs fails if windows cert store is empty. Patch by Baji.
2016-03-17 15:02:39 -07:00
Ned Deily
c9188000d7
Issue #26583 : merge from 3.5
2016-03-17 17:56:42 -04:00
Ned Deily
1c80b152bd
Issue #26583 : Skip test_timestamp_overflow in test_import if bytecode
...
files cannot be written.
2016-03-17 17:53:52 -04:00
Victor Stinner
ec748c47ac
Merge 3.5
2016-03-17 09:11:54 +01:00
Martin Panter
499d3654a8
Issue #17603 : Merge configure.ac fix from 3.5
2016-03-18 03:03:10 +00:00
Martin Panter
d887d1f365
Issue #17603 : Check for st_blocks field without requiring fileblocks.o
2016-03-18 02:36:41 +00:00
Victor Stinner
5c13aa1562
Fix pyclbr to support importing packages
...
Issue #26569 : Fix pyclbr.readmodule() and pyclbr.readmodule_ex() to support
importing packages.
2016-03-17 09:06:41 +01:00
Martin Panter
ce911c3fed
Issue #26499 : Fixes to HTTPResponse.readline() and read1(), by Silent Ghost
2016-03-17 06:42:48 +00:00
Victor Stinner
ad524375af
Fail if PyMem_Malloc() is called without holding the GIL
...
Issue #26563 : Debug hooks on Python memory allocators now raise a fatal error
if functions of the PyMem_Malloc() family are called without holding the GIL.
2016-03-16 12:12:53 +01:00
Martin Panter
32f2eb4941
Issue #21042 : Revert Linux find_library() to return just filename
...
This reverts most of revision 3092cf163eb4. The change worked on x86
architectures, but did not work on ARM, probably due to extra ABI flags in
the ldconfig output.
2016-03-17 07:50:22 +00:00
Martin Panter
ec195fba5b
Issue #26499 : Merge HTTPResponse fix from 3.5
2016-03-17 07:05:34 +00:00
Victor Stinner
0611c26a58
On memory error, dump the memory block traceback
...
Issue #26564 : _PyObject_DebugDumpAddress() now dumps the traceback where a
memory block was allocated on memory block. Use the tracemalloc module to get
the traceback.
2016-03-15 22:22:13 +01:00
Antoine Pitrou
58f2bd86fb
Issue #26523 : The multiprocessing thread pool (multiprocessing.dummy.Pool) was untested.
2016-03-15 10:52:51 +01:00
Antoine Pitrou
62b6a0d70c
Issue #26523 : The multiprocessing thread pool (multiprocessing.dummy.Pool) was untested.
2016-03-15 10:48:28 +01:00
Robert Collins
bfef0be420
#25320 : Handle sockets in directories unittest discovery is scanning.
...
Patch from Victor van den Elzen.
2016-03-15 13:33:28 +13:00
Robert Collins
ecd5383891
#25320 : Handle sockets in directories unittest discovery is scanning.
...
Patch from Victor van den Elzen.
2016-03-15 13:29:17 +13:00
Victor Stinner
c4aec3628b
Check the GIL in PyObject_Malloc()
...
Issue #26558 : The debug hook of PyObject_Malloc() now checks that the GIL is
held when the function is called.
2016-03-14 22:26:53 +01:00
Victor Stinner
34be807ca4
Add PYTHONMALLOC env var
...
Issue #26516 :
* Add PYTHONMALLOC environment variable to set the Python memory
allocators and/or install debug hooks.
* PyMem_SetupDebugHooks() can now also be used on Python compiled in release
mode.
* The PYTHONMALLOCSTATS environment variable can now also be used on Python
compiled in release mode. It now has no effect if set to an empty string.
* In debug mode, debug hooks are now also installed on Python memory allocators
when Python is configured without pymalloc.
2016-03-14 12:04:26 +01:00
Berker Peksag
0647ef05eb
Issue #16181 : cookiejar.http2time() now returns None if year is higher than datetime.MAXYEAR
2016-03-14 05:48:28 +02:00
Berker Peksag
20be53e5b5
Issue #16181 : cookiejar.http2time() now returns None if year is higher than datetime.MAXYEAR
2016-03-14 05:48:02 +02:00
Ezio Melotti
4c9375b65f
#24918 : merge with 3.5.
2016-03-13 11:41:45 +02:00
Ezio Melotti
f2b9a39813
#24918 : fix CSS for code blocks when a side box is present. Patch by Manvi B.
2016-03-13 11:41:05 +02:00
Ezio Melotti
0ce835fc7e
#25687 : merge with 3.5.
2016-03-13 09:40:55 +02:00
Ezio Melotti
8dea74f12a
#25687 : clarify that errors in tearDown increase the total number of reported errors. Initial patch by HyeSoo Park.
2016-03-13 09:40:09 +02:00
Steve Dower
8d9bcb5d62
Issue #26079 : Fixing the build output folder for tix-8.4.3.6. Patch by Bjoern Thiel.
2016-03-12 08:39:07 -08:00
Steve Dower
d3722e7b6f
Issue #26079 : Fixing the build output folder for tix-8.4.3.6. Patch by Bjoern Thiel.
2016-03-12 08:38:55 -08:00
Steve Dower
6d6b986d90
Issue #23606 : Adds note to ctypes documentation regarding cdll.msvcrt.
2016-03-12 08:26:29 -08:00
Steve Dower
d669b6bd0a
Issue #23606 : Adds note to ctypes documentation regarding cdll.msvcrt.
2016-03-12 08:25:22 -08:00
Steve Dower
11b3918164
Issue #26513 : Fixes platform module detection of Windows Server
2016-03-12 08:07:34 -08:00
Steve Dower
126c9c17ef
Issue #26513 : Fixes platform module detection of Windows Server
2016-03-12 08:06:23 -08:00
Serhiy Storchaka
6e4150f36b
Issue #23718 : Fixed parsing time in week 0 before Jan 1. Original patch by
...
Tamás Bence Gedai.
2016-03-12 10:53:09 +02:00
Serhiy Storchaka
8a7240eeed
Issue #23718 : Fixed parsing time in week 0 before Jan 1. Original patch by
...
Tamás Bence Gedai.
2016-03-12 10:51:16 +02:00
Victor Stinner
2c2a4e63d7
Add Mock.assert_called()
...
Issue #26323 : Add assert_called() and assert_called_once() methods to
unittest.mock.Mock.
2016-03-11 22:17:48 +01:00
Berker Peksag
d0e9b6919f
Issue #20589 : Invoking Path.owner() and Path.group() on Windows now raise
...
NotImplementedError instead of ImportError.
2016-03-11 23:08:11 +02:00
Berker Peksag
04d4229719
Issue #20589 : Invoking Path.owner() and Path.group() on Windows now raise
...
NotImplementedError instead of ImportError.
2016-03-11 23:07:27 +02:00
Serhiy Storchaka
2d68f18656
Issue #26177 : Fixed the keys() method for Canvas and Scrollbar widgets.
2016-03-09 10:52:08 +02:00
Martin Panter
b9f3114d42
Issue #21042 : Return full path in ctypes.util.find_library() on Linux
...
Patch by Tamás Bence Gedai.
2016-03-10 01:06:23 +00:00
Serhiy Storchaka
42a4366ad5
Issue #26177 : Fixed the keys() method for Canvas and Scrollbar widgets.
...
Added few missed tests for configure options.
2016-03-09 10:33:51 +02:00
Steve Dower
43cbd05b6c
Issue #26465 : Update Windows builds to use OpenSSL 1.0.2g.
2016-03-08 10:29:24 -08:00
Steve Dower
947f411b0d
Issue #26465 : Update Windows builds to use OpenSSL 1.0.2g.
2016-03-08 10:26:52 -08:00
Serhiy Storchaka
674e2d0ea0
Issue #15068 : Got rid of excessive buffering in fileinput.
...
The bufsize parameter is now deprecated and ignored.
2016-03-08 18:35:19 +02:00
Serhiy Storchaka
cc2dbc5844
Issue #15068 : Got rid of excessive buffering in the fileinput module.
...
The bufsize parameter is no longer used.
2016-03-08 18:28:36 +02:00
Ned Deily
3a5e1afb92
Issue #26465 : merge from 3.5
2016-03-08 01:11:14 -05:00
Ned Deily
f4d97ce100
Issue #26465 : Update OS X installer build to use OpenSSL 1.0.2g.
2016-03-08 01:09:08 -05:00
Ned Deily
686905fe13
Issue #24324 : merge from 3.5
2016-03-08 00:40:12 -05:00
Ned Deily
bec699e40d
Issue #24324 : Do not enable unreachable code warnings when using
...
gcc as the option does not work correctly in older versions of gcc
and has been silently removed as of gcc-4.5.
2016-03-08 00:28:37 -05:00
Ned Deily
8cd8883d27
Issue #26505 : merge from 3.5
2016-03-07 14:52:46 -05:00
Ned Deily
adbf8cecbe
Issue #26505 : Fix typos in getaddrinfo license text.
...
Patch by Alex Willmer.
2016-03-07 14:51:59 -05:00
Alexander Belopolsky
a2998a63c8
Closes #19475 : Added timespec to the datetime.isoformat() method.
...
Added an optional argument timespec to the datetime isoformat() method
to choose the precision of the time component.
Original patch by Alessandro Cucci.
2016-03-06 14:58:43 -05:00
Berker Peksag
d07a1cb53b
Issue #26489 : Add dictionary unpacking support to Tools/parser/unparse.py
...
Patch by Guo Ci Teo.
2016-03-06 16:50:44 +02:00
Berker Peksag
d66dd5ce68
Issue #26489 : Add dictionary unpacking support to Tools/parser/unparse.py
...
Patch by Guo Ci Teo.
2016-03-06 16:50:15 +02:00
Berker Peksag
48238c7e37
Issue #2202 : Fix UnboundLocalError in AbstractDigestAuthHandler.get_algorithm_impls
...
Raise ValueError if algorithm is not MD5 or SHA.
Initial patch by Mathieu Dupuy.
2016-03-06 16:17:47 +02:00
Berker Peksag
e88dd1c32c
Issue #2202 : Fix UnboundLocalError in AbstractDigestAuthHandler.get_algorithm_impls
...
Raise ValueError if algorithm is not MD5 or SHA.
Initial patch by Mathieu Dupuy.
2016-03-06 16:16:40 +02:00
Serhiy Storchaka
818e18dd94
Issue #26167 : Minimized overhead in copy.copy() and copy.deepcopy().
...
Optimized copying and deepcopying bytearrays, NotImplemented, slices,
short lists, tuples, dicts, sets.
2016-03-06 14:56:57 +02:00
Serhiy Storchaka
de128e19e2
Issue #26015 : Added new tests for pickling iterators of mutable sequences.
2016-03-06 14:12:04 +02:00
Serhiy Storchaka
aabafe7bc2
Issue #26015 : Added new tests for pickling iterators of mutable sequences.
2016-03-06 14:10:24 +02:00
Serhiy Storchaka
5608411a96
Issue #25718 : Fixed pickling and copying the accumulate() iterator with total is None.
2016-03-06 14:02:26 +02:00
Serhiy Storchaka
d55162517d
Issue #25718 : Fixed pickling and copying the accumulate() iterator with total is None.
2016-03-06 14:00:45 +02:00
Serhiy Storchaka
b6bfce6c0b
Issue #26475 : Fixed debugging output for regular expressions with the (?x) flag.
2016-03-06 09:17:39 +02:00
Serhiy Storchaka
a01a144aab
Issue #26475 : Fixed debugging output for regular expressions with the (?x) flag.
2016-03-06 09:15:47 +02:00
Serhiy Storchaka
a0d416f0d1
Issue #26482 : Allowed pickling recursive dequeues.
2016-03-06 08:55:21 +02:00
Benjamin Peterson
0f04bc7959
merge 3.5 ( closes #26478 )
2016-03-03 22:10:52 -08:00
Benjamin Peterson
cfc2a1fc70
merge 3.4 ( closes #26478 )
2016-03-03 22:08:01 -08:00
Benjamin Peterson
f11b25b081
properly use the ObjArgs variant of CallMethod in dictview binary operations ( closes #26478 )
2016-03-03 22:05:36 -08:00
Berker Peksag
6282e656e9
Issue #26335 : Make mmap.write() return the number of bytes written like
...
other write methods.
Patch by Jakub Stasiak.
2016-03-02 19:30:18 +02:00
Victor Stinner
3d9d77a3dc
Merge 3.5
2016-03-01 21:30:50 +01:00
Victor Stinner
6c9aa8f2bf
Fix str.translate()
...
Issue #26464 : Fix str.translate() when string is ASCII and first replacements
removes character, but next replacement uses a non-ASCII character or a string
longer than 1 character. Regression introduced in Python 3.5.0.
2016-03-01 21:30:30 +01:00
Serhiy Storchaka
42e49ac0da
Issue #26457 : Fixed the subnets() methods in IP network classes for the case
...
when resulting prefix length is equal to maximal prefix length.
Based on patch by Xiang Zhang.
2016-03-01 10:26:10 +02:00
Serhiy Storchaka
bb0dbd583b
Issue #26457 : Fixed the subnets() methods in IP network classes for the case
...
when resulting prefix length is equal to maximal prefix length.
Based on patch by Xiang Zhang.
2016-03-01 10:25:45 +02:00
Martin Panter
93088d1b03
Issue #26385 : Merge NamedTemporaryFile fix from 3.5
2016-02-29 11:25:09 +00:00
Martin Panter
7869a22779
Issue #26385 : Cleanup NamedTemporaryFile if open() fails, by SilentGhost
2016-02-28 05:22:20 +00:00
Martin Panter
8cacc63002
Issue #22836 : Merge exception reporting from 3.5
2016-02-28 03:29:51 +00:00
Martin Panter
3263f6874a
Issue #22836 : Keep exception reports sensible despite errors
2016-02-28 03:16:11 +00:00
Ezio Melotti
b8d75035f2
#26246 : merge with 3.5.
2016-02-27 08:42:14 +02:00
Ezio Melotti
738f88f688
#26246 : merge with 3.4.
2016-02-27 08:41:16 +02:00
Ezio Melotti
90ba2ca68a
#26246 : update copybutton.js after JQuery update. Patch by Liang-Bo Wang.
2016-02-27 08:39:36 +02:00
Georg Brandl
3902d62c4e
merge with 3.5
2016-02-26 19:37:52 +01:00
Georg Brandl
5d94134040
Closes #25910 : fix dead and permanently redirected links in the docs. Thanks to SilentGhost for the patch.
2016-02-26 19:37:12 +01:00
Martin Panter
6e132254a9
Issue #26402 : Merge XML-RPC client fix from 3.5
2016-02-25 12:13:50 +00:00
Martin Panter
eae3336e42
Issue #26402 : Fix XML-RPC client retrying after server disconnection
...
This is a regression introduced in 3.5 by revision eba80326ba53. Fix by Jelte
Fennema, test case by me.
2016-02-25 11:53:40 +00:00
Ned Deily
b8da1a4fee
Issue #25136 : merge from 3.5
2016-02-25 00:59:16 +11:00
Ned Deily
020250f91f
Issue #25136 : Support Apple Xcode 7's new textual SDK stub libraries.
...
As of Xcode 7, SDKs for Apple platforms now include textual-format stub
libraries whose file names have a .tbd extension rather than the
standard OS X .dylib extension. The Apple compiler tool chain handles
these stub libraries transparently and the installed system shared libraries
are still .dylibs. However, the new stub libraries cause problems for
third-party programs that support building with Apple SDKs and make
build-time decisions based on the presence or paths of system-supplied
shared libraries in the SDK. In particular, building Python itself with
an SDK fails to find system-supplied libraries during setup.py's build of
standard library extension modules. The solution is to have
find_library_file() in Distutils search for .tbd files, along with
the existing types (.a, .so, and .dylib). Patch by Tim Smith.
2016-02-25 00:56:38 +11:00
Jason R. Coombs
b118870490
Issue #26302 : merge from 3.5
2016-02-24 08:50:59 -05:00
Serhiy Storchaka
6c783ac15d
Issue #25913 : Leading <~ is optional now in base64.a85decode() with adobe=True.
...
Patch by Swati Jaiswal.
2016-02-24 12:08:11 +02:00
Serhiy Storchaka
205e75bb62
Issue #25913 : Leading <~ is optional now in base64.a85decode() with adobe=True.
...
Patch by Swati Jaiswal.
2016-02-24 12:05:50 +02:00
Ned Deily
3d2778c8da
Issue #26406 : merge from 3.5
2016-02-23 22:10:06 +11:00
Ned Deily
e1d4e58777
Issue #26406 : Avoid unnecessary serialization of getaddrinfo(3) calls on
...
current versions of OpenBSD and NetBSD. Patch by A. Jesse Jiryu Davis.
2016-02-23 22:05:29 +11:00
Zachary Ware
72f2ef4137
Issue #26268 : Merge with 3.5
2016-02-22 04:16:33 -06:00
Zachary Ware
6fe57ad229
Issue #26268 : Update Windows builds to use OpenSSL 1.0.2f
2016-02-22 04:08:51 -06:00
Zachary Ware
16f164e9b8
Issue #26268 : Update the prepare_ssl.py script
...
It can now handle OpenSSL versions 1.0.2e and greater, which don't
include include files in include/.
Note that sources prepared by this script no longer support the old
project files for 2.7; you now have to have Perl available to use
the old build_ssl.py script with sources from svn.python.org.
2016-02-22 04:02:30 -06:00
Brett Cannon
ccd6c593ef
Fix some typos in the NEWS file
2016-02-21 09:21:35 -08:00
Brett Cannon
31feb71f80
Fix some typos in the NEWS file
2016-02-21 09:20:51 -08:00
Martin Panter
d9108d1253
Issue #23430 : Stop socketserver from catching SystemExit etc from handlers
...
Also make handle_error() consistently output to stderr, and fix the
documentation.
2016-02-21 08:49:56 +00:00
Brett Cannon
e5f4d3c246
Merge for issue #26186
2016-02-20 18:37:04 -08:00
Brett Cannon
558823a0cf
Issue #26186 : Remove an invalid type check in
...
importlib.util.LazyLoader.
The class was checking its argument as to whether its implementation
of create_module() came directly from importlib.abc.Loader. The
problem is that the classes coming from imoprtlib.machinery do not
directly inherit from the ABC as they come from _frozen_importlib.
Because the documentation has always said that create_module() was
ignored, the check has simply been removed.
2016-02-20 18:35:41 -08:00
Brett Cannon
0911c0d271
Merge for issue #26367
2016-02-20 12:59:36 -08:00
Brett Cannon
4f38cb41fe
Issue #26367 : Have importlib.__init__() raise RuntimeError when
...
'level' is specified but no __package__.
This brings the function inline with builtins.__import__(). Thanks to
Manuel Jacob for the patch.
2016-02-20 12:52:06 -08:00
Martin Panter
a2b64e630e
Issue #26309 : Merge socketserver fix from 3.5
2016-02-18 11:01:32 +00:00
Martin Panter
c12fef9aa3
Issue #26309 : Shut down socketserver request if verify_request() is false
...
Patch by Aviv Palivoda.
2016-02-18 10:43:55 +00:00
Benjamin Peterson
4a180a693f
merge 3.5 ( closes #25939 )
2016-02-17 22:18:35 -08:00
Benjamin Peterson
1378f7ca68
merge 3.4 ( closes #25939 )
2016-02-17 22:18:20 -08:00
Benjamin Peterson
9491272751
open the cert store readonly
...
Patch from Chi Hsuan Yen.
2016-02-17 22:13:19 -08:00
Ned Deily
00538ffe3a
Issue #25924 : merge with 3.5
2016-02-15 16:57:04 +11:00
Ned Deily
47299fd39c
Issue #25924 : Avoid unnecessary serialization of getaddrinfo(3) calls on OS X
...
versions 10.5 or higher. Original patch by A. Jesse Jiryu Davis.
2016-02-15 16:54:08 +11:00
Ned Deily
44f9bc959f
Issue #26268 : merge from 3.5
2016-02-15 16:47:03 +11:00
Ned Deily
203ce927f5
Issue #26268 : Update OS X 10.5+ installer build to use OpenSSL 1.0.2f.
2016-02-15 16:44:38 +11:00
Martin Panter
8a5e69ca8c
Issue #26316 : Merge Arg Clinic fix from 3.5
2016-02-14 03:25:48 +00:00
Martin Panter
4177e7c38e
Issue #26316 : Fix variable name typo in Argument Clinic
2016-02-14 03:23:13 +00:00
Yury Selivanov
3e48b38dff
Merge 3.5 (issue #25887 )
2016-02-13 18:00:31 -05:00
Yury Selivanov
77c96813ab
Issue #25887 : Raise a RuntimeError when a coroutine is awaited more than once.
2016-02-13 17:59:05 -05:00
Yury Selivanov
e0b23095ee
Issues #26289 and #26315 : Optimize floor/modulo div for single-digit longs
...
Microbenchmarks show 2-2.5x improvement. Built-in 'divmod' function
is now also ~10% faster.
-m timeit -s "x=22331" "x//2;x//-3;x//4;x//5;x//-6;x//7;x//8;x//-99;x//100;"
with patch: 0.321 without patch: 0.633
-m timeit -s "x=22331" "x%2;x%3;x%-4;x%5;x%6;x%-7;x%8;x%99;x%-100;"
with patch: 0.224 without patch: 0.66
Big thanks to Serhiy Storchaka, Mark Dickinson and Victor Stinner for
thorow code reviews and algorithms improvements.
2016-02-11 10:26:27 -05:00
Serhiy Storchaka
7c90a82a01
Issue #25995 : os.walk() no longer uses FDs proportional to the tree depth.
...
Different solution from 3.5.
2016-02-11 13:31:00 +02:00
Serhiy Storchaka
06c45e6e9c
Issue #25995 : os.walk() no longer uses FDs proportional to the tree depth.
2016-02-11 13:29:28 +02:00
Serhiy Storchaka
ffe96ae10b
Issue #25994 : Added the close() method and the support of the context manager
...
protocol for the os.scandir() iterator.
2016-02-11 13:21:30 +02:00
Serhiy Storchaka
2feb642585
Issue #26325 : Added test.support.check_no_resource_warning() to check that
...
no ResourceWarning is emitted.
2016-02-11 13:12:19 +02:00
Serhiy Storchaka
94a619d48b
Issue #26325 : Added test.support.check_no_resource_warning() to check that
...
no ResourceWarning is emitted.
2016-02-11 13:11:44 +02:00
Serhiy Storchaka
a9725f86a9
Issue #26312 : SystemError is now raised in all programming bugs with using
...
PyArg_ParseTupleAndKeywords(). RuntimeError did raised before in some
programming bugs.
2016-02-11 12:41:40 +02:00
Charles-François Natali
78f55ffc63
Issue #23992 : multiprocessing: make MapResult not fail-fast upon exception.
2016-02-10 22:58:18 +00:00
Martin Panter
3008b1c4bb
Issue #26304 : Merge doc wording from 3.5
2016-02-10 05:44:56 +00:00
Martin Panter
c04fb56e36
Issue #26304 : Change "allows to <verb>" to "allows <verb>ing" or similar
...
The original form is incorrect grammar and feels awkward, even though the
meaning is clear.
2016-02-10 05:44:01 +00:00
Martin Panter
7e3a91a5fc
Issue #26136 : Upgrade the generator_stop warning to DeprecationWarning
...
Patch by Anish Shah.
2016-02-10 04:40:48 +00:00
Martin Panter
1fe0d13d12
Issue #26243 : zlib.compress() keyword argument support by Aviv Palivoda
2016-02-10 10:06:36 +00:00
Martin Panter
96a4f07107
Issues #26310 , #26311 : Fix typos in the documentation and code comments
2016-02-10 01:17:51 +00:00
Martin Panter
263c448a2e
Issues #26310 , 26311: Merge typo fixes from 3.5
2016-02-10 01:18:36 +00:00
Victor Stinner
15a3095d64
compiler: don't emit SyntaxWarning on const stmt
...
Issue #26204 : the compiler doesn't emit SyntaxWarning warnings anymore when
constant statements are ignored.
2016-02-08 22:45:06 +01:00
Victor Stinner
a2724095cd
compiler now ignores constant statements
...
The compile ignores constant statements and emit a SyntaxWarning warning.
Don't emit the warning for string statement because triple quoted string is a
common syntax for multiline comments.
Don't emit the warning on ellipis neither: 'def f(): ...' is a legit syntax for
abstract functions.
Changes:
* test_ast: ignore SyntaxWarning when compiling test statements. Modify
test_load_const() to use assignment expressions rather than constant
expression.
* test_code: add more kinds of constant statements, ignore SyntaxWarning when
testing that the compiler removes constant statements.
* test_grammar: ignore SyntaxWarning on the statement "1"
2016-02-08 18:17:58 +01:00
Serhiy Storchaka
fd625c39d0
Issue #26117 : The os.scandir() iterator now closes file descriptor not only
...
when the iteration is finished, but when it was failed with error.
2016-02-08 17:57:22 +02:00
Serhiy Storchaka
988b9bcd88
Issue #26117 : The os.scandir() iterator now closes file descriptor not only
...
when the iteration is finished, but when it was failed with error.
2016-02-08 17:56:36 +02:00
Serhiy Storchaka
d2962f145a
Issue #25949 : __dict__ for an OrderedDict instance is now created only when
...
needed.
2016-02-08 16:39:05 +02:00
Serhiy Storchaka
79ad897052
Issue #25911 : Restored support of bytes paths in os.walk() on Windows.
2016-02-08 16:24:15 +02:00
Martin Panter
192697e33b
Issue #26045 : Merge http.client error addition from 3.5
2016-02-09 11:57:11 +00:00
Martin Panter
44391481d7
Issue #26045 : Add UTF-8 suggestion to error in http.client
...
Based on patch by Guido van Rossum.
2016-02-09 10:20:52 +00:00
Serhiy Storchaka
5f6a0b4eb2
Issue #25911 : Restored support of bytes paths in os.walk() on Windows.
2016-02-08 16:23:28 +02:00
Serhiy Storchaka
4cd63ef67a
Issue #26198 : ValueError is now raised instead of TypeError on buffer
...
overflow in parsing "es#" and "et#" format units. SystemError is now raised
instead of TypeError on programmical error in parsing format string.
2016-02-08 01:22:47 +02:00
Serhiy Storchaka
503f908090
Issue #26039 : Added zipfile.ZipInfo.from_file() and zipinfo.ZipInfo.is_dir().
...
Patch by Thomas Kluyver.
2016-02-08 00:02:25 +02:00
Anish Shah
102d813b55
Issue #26302 : Correctly identify comma as an invalid character for a cookie (correcting regression in Python 3.5).
2016-02-07 05:36:00 +05:00
Yury Selivanov
186c30b7ae
Issue #26288 : Optimize PyLong_AsDouble.
2016-02-05 19:40:01 -05:00
Martin Panter
a3643c280f
Issue #12923 : Merge FancyURLopener fix from 3.5
2016-02-06 01:08:40 +00:00
Yury Selivanov
aecef0d2d5
Merge 3.5 (issue #25660 )
2016-02-04 01:24:56 -05:00
Yury Selivanov
a7eae4016e
Issue #25660 : Fix TAB key behaviour in REPL.
2016-02-04 01:23:05 -05:00
Martin Panter
a03702252f
Issue #12923 : Reset FancyURLopener's redirect counter even on exception
...
Based on patches by Brian Brazil and Daniel Rocco.
2016-02-04 06:01:35 +00:00
Martin Panter
63d096ddab
Issue #24421 : Compile _math.c separately to avoid race condition
2016-02-03 05:19:44 +00:00
Serhiy Storchaka
65aaef423b
Issue #25945 : Fixed bugs in functools.partial.
...
Fixed a crash when unpickle the functools.partial object with wrong state.
Fixed a leak in failed functools.partial constructor.
"args" and "keywords" attributes of functools.partial have now always types
tuple and dict correspondingly.
2016-02-02 18:45:47 +02:00
Martin Panter
8254f793c0
Issue #26244 : Merge zlib documentation from 3.5
2016-02-03 07:52:06 +00:00
Martin Panter
567d513b9b
Issue #26244 : Clarify default zlib compression level in documentation
...
Based on patch by Aviv Palivoda.
2016-02-03 07:06:33 +00:00
Martin Panter
c9deece272
Issue #24421 : Compile _math.c separately to avoid race condition
2016-02-03 05:19:44 +00:00
Serhiy Storchaka
3874128519
Issue #25945 : Fixed bugs in functools.partial.
...
Fixed a crash when unpickle the functools.partial object with wrong state.
Fixed a leak in failed functools.partial constructor.
"args" and "keywords" attributes of functools.partial have now always types
tuple and dict correspondingly.
2016-02-02 18:45:17 +02:00
Raymond Hettinger
b00da57561
Issue #26194 : Inserting into a full deque to raise an IndexError
2016-02-01 21:19:22 -08:00
Raymond Hettinger
ce5179fcba
Issue #23601 : Use small object allocator for dict key objects
2016-01-31 08:56:21 -08:00
Berker Peksag
396cbd6dfd
Issue #23076 : Path.glob() now raises a ValueError if it's called with an
...
invalid pattern.
Patch by Thomas Nyberg.
2016-01-30 17:51:35 +02:00
Berker Peksag
4a208e448e
Issue #23076 : Path.glob() now raises a ValueError if it's called with an
...
invalid pattern.
Patch by Thomas Nyberg.
2016-01-30 17:50:48 +02:00
Martin Panter
cca32995b3
Issue #4806 : Merge * unpacking fix from 3.5
2016-01-31 06:33:16 +00:00
Martin Panter
b5944220ab
Issue #4806 : Avoid masking original TypeError in call with * unpacking
...
Based on patch by Hagen Fürstenau and Daniel Urban.
2016-01-31 06:30:56 +00:00
Serhiy Storchaka
2552c2d6f7
Issue #26202 : copy.deepcopy() now correctly copies range() objects with
...
non-atomic attributes.
2016-01-28 21:43:51 +02:00
Serhiy Storchaka
0a20bbf669
Issue #26202 : copy.deepcopy() now correctly copies range() objects with
...
non-atomic attributes.
2016-01-28 21:43:35 +02:00
Serhiy Storchaka
8abaa9ab34
Issue #19883 : Fixed possible integer overflows in zipimport.
2016-01-28 21:32:39 +02:00
Serhiy Storchaka
d5db57396b
Issue #19883 : Fixed possible integer overflows in zipimport.
2016-01-28 21:30:16 +02:00
Victor Stinner
c8d2fb4112
Merge 3.5: Issue #26227
2016-01-28 15:44:10 +01:00
Victor Stinner
7240030c52
Windows: Decode hostname from ANSI code page
...
Issue #26227 : On Windows, getnameinfo(), gethostbyaddr() and gethostbyname_ex()
functions of the socket module now decode the hostname from the ANSI code page
rather than UTF-8.
2016-01-28 15:41:01 +01:00
Martin Panter
9d48869fcc
Issue #19023 : Merge ctypes doc and tests from 3.5
2016-01-29 10:25:40 +00:00
Martin Panter
34360c8e09
Issue #19023 : Document ctypes array and pointer classes
...
Also add some more tests. Based on patch by Sye van der Veen.
2016-01-29 10:12:19 +00:00
Raymond Hettinger
3743432302
Issue #26194 : Fix undefined behavior for deque.insert() when len(d) == maxlen
2016-01-26 21:44:16 -08:00
Victor Stinner
f2c1aa1661
Add ast.Constant
...
Issue #26146 : Add a new kind of AST node: ast.Constant. It can be used by
external AST optimizers, but the compiler does not emit directly such node.
An optimizer can replace the following AST nodes with ast.Constant:
* ast.NameConstant: None, False, True
* ast.Num: int, float, complex
* ast.Str: str
* ast.Bytes: bytes
* ast.Tuple if items are constants too: tuple
* frozenset
Update code to accept ast.Constant instead of ast.Num and/or ast.Str:
* compiler
* docstrings
* ast.literal_eval()
* Tools/parser/unparse.py
2016-01-26 00:40:57 +01:00
Brett Cannon
9fa812668f
Issue #18018 : Raise an ImportError if a relative import is attempted
...
with no known parent package.
Previously SystemError was raised if the parent package didn't exist
(e.g., __package__ was set to '').
Thanks to Florent Xicluna and Yongzhi Pan for reporting the issue.
2016-01-22 16:39:02 -08:00
Brett Cannon
849113af6b
Issue #25791 : Warn when __package__ != __spec__.parent.
...
In a previous change, __spec__.parent was prioritized over
__package__. That is a backwards-compatibility break, but we do
eventually want __spec__ to be the ground truth for module details. So
this change reverts the change in semantics and instead raises an
ImportWarning when __package__ != __spec__.parent to give people time
to adjust to using spec objects.
2016-01-22 15:25:50 -08:00
Victor Stinner
3cdd5fb970
code_richcompare() now uses the constants types
...
Issue #25843 : When compiling code, don't merge constants if they are equal but
have a different types. For example, "f1, f2 = lambda: 1, lambda: 1.0" is now
correctly compiled to two different functions: f1() returns 1 (int) and f2()
returns 1.0 (int), even if 1 and 1.0 are equal.
Add a new _PyCode_ConstantKey() private function.
2016-01-22 12:33:12 +01:00
Victor Stinner
efb2413ce8
code_richcompare() now uses the constants types
...
Issue #25843 : When compiling code, don't merge constants if they are equal but
have a different types. For example, "f1, f2 = lambda: 1, lambda: 1.0" is now
correctly compiled to two different functions: f1() returns 1 (int) and f2()
returns 1.0 (int), even if 1 and 1.0 are equal.
Add a new _PyCode_ConstantKey() private function.
2016-01-22 12:33:12 +01:00
Victor Stinner
e3560a7dc9
site: error on sitecustomize import error
...
Issue #26099 : The site module now writes an error into stderr if sitecustomize
module can be imported but executing the module raise an ImportError. Same
change for usercustomize.
2016-01-22 12:22:07 +01:00
Victor Stinner
875dde4387
Merge 3.5 (doc)
2016-01-21 08:58:44 +01:00
Victor Stinner
d99cd333fe
Issue #26106 : doc: Move text of licenses to parsed literal block
...
This change helps to ignore text of PSF, BEOPEN.com and CNRI licenses when
translating the documentation. Patch written by Julien Palard who is
translating Python 3.5 doc to french. Text of other licenses already used
preformatted format.
2016-01-21 08:56:00 +01:00
Benjamin Peterson
2b0b5ac5a0
merge 3.5 ( #26171 )
2016-01-20 22:25:40 -08:00
Benjamin Peterson
47b8ba22e3
merge 3.4 ( #26171 )
2016-01-20 22:25:06 -08:00
Benjamin Peterson
c4032da201
prevent buffer overflow in get_data ( closes #26171 )
2016-01-20 22:23:44 -08:00
Victor Stinner
f3914eb16d
co_lnotab supports negative line number delta
...
Issue #26107 : The format of the co_lnotab attribute of code objects changes to
support negative line number delta.
Changes:
* assemble_lnotab(): if line number delta is less than -128 or greater than
127, emit multiple (offset_delta, lineno_delta) in co_lnotab
* update functions decoding co_lnotab to use signed 8-bit integers
- dis.findlinestarts()
- PyCode_Addr2Line()
- _PyCode_CheckLineNumber()
- frame_setlineno()
* update lnotab_notes.txt
* increase importlib MAGIC_NUMBER to 3361
* document the change in What's New in Python 3.6
* cleanup also PyCode_Optimize() to use better variable names
2016-01-20 12:16:21 +01:00
Victor Stinner
b56837a033
Merge 3.5
...
Issue #26154 : Add a new private _PyThreadState_UncheckedGet() function.
2016-01-20 11:19:46 +01:00
Victor Stinner
bfd316e750
Add _PyThreadState_UncheckedGet()
...
Issue #26154 : Add a new private _PyThreadState_UncheckedGet() function which
gets the current thread state, but don't call Py_FatalError() if it is NULL.
Python 3.5.1 removed the _PyThreadState_Current symbol from the Python C API to
no more expose complex and private atomic types. Atomic types depends on the
compiler or can even depend on compiler options. The new function
_PyThreadState_UncheckedGet() allows to get the variable value without having
to care of the exact implementation of atomic types.
Changes:
* Replace direct usage of the _PyThreadState_Current variable with a call to
_PyThreadState_UncheckedGet().
* In pystate.c, replace direct usage of the _PyThreadState_Current variable
with the PyThreadState_GET() macro for readability.
* Document also PyThreadState_Get() in pystate.h
2016-01-20 11:12:38 +01:00
Serhiy Storchaka
5ccbf79eae
Issue #26147 : xmlrpc now works with strings not encodable with used
...
non-UTF-8 encoding.
2016-01-20 10:41:33 +02:00
Serhiy Storchaka
aebb6d3682
Issue #26147 : xmlrpc now works with strings not encodable with used
...
non-UTF-8 encoding.
2016-01-20 10:34:27 +02:00
Serhiy Storchaka
4918b47c64
Issue #25935 : Garbage collector now breaks reference loops with OrderedDict.
2016-01-19 14:48:42 +02:00
Serhiy Storchaka
d205d0145c
Issue #25935 : Garbage collector now breaks reference loops with OrderedDict.
2016-01-19 14:46:25 +02:00
Serhiy Storchaka
47670ebb0c
Issue #16620 : Fixed AttributeError in msilib.Directory.glob().
2016-01-19 14:06:13 +02:00
Serhiy Storchaka
e914cd1308
Issue #16620 : Fixed AttributeError in msilib.Directory.glob().
2016-01-19 13:55:36 +02:00
Benjamin Peterson
2c028492d4
merge 3.5 ( #25731 )
2016-01-18 21:18:35 -08:00
Benjamin Peterson
9ad11544bf
set tp_new from the class in the hierarchy that actually owns the descriptor ( closes #25731 )
...
Debugging by Eryk Sun.
2016-01-18 21:11:18 -08:00
Serhiy Storchaka
905a97d4c2
Issue #26013 : Added compatibility with broken protocol 2 pickles created
...
in old Python 3 versions (3.4.3 and lower).
2016-01-18 21:36:03 +02:00
Serhiy Storchaka
111c7b9011
Issue #26013 : Added compatibility with broken protocol 2 pickles created
...
in old Python 3 versions (3.4.3 and lower).
2016-01-18 21:35:22 +02:00
Serhiy Storchaka
9cc4ed5c7a
Issue #26129 : Deprecated accepting non-integers in grp.getgrgid().
2016-01-18 18:49:57 +02:00
Steve Dower
709c2aeba6
Issue #26071 : bdist_wininst created binaries fail to start and find 32bit Python
2016-01-16 13:55:05 -08:00
Steve Dower
332334f1ab
Issue #26071 : bdist_wininst created binaries fail to start and find 32bit Python
2016-01-16 13:54:53 -08:00
Steve Dower
ca9aab19ab
Issue #26073 : Update the list of magic numbers in launcher
2016-01-16 13:48:31 -08:00
Steve Dower
87fb7f64d8
Issue #26073 : Update the list of magic numbers in launcher
2016-01-16 13:48:06 -08:00
Steve Dower
c3cd76a2a1
Issue #26065 : Excludes venv from library when generating embeddable distro.
2016-01-16 13:45:32 -08:00
Steve Dower
10cabcbe14
Issue #26065 : Excludes venv from library when generating embeddable distro.
2016-01-16 13:44:43 -08:00
Steve Dower
d8ce735e82
Issue #25850 : Use cross-compilation by default for 64-bit Windows.
2016-01-16 12:40:19 -08:00
Steve Dower
1d329413fc
Issue #25850 : Use cross-compilation by default for 64-bit Windows.
2016-01-16 12:39:10 -08:00
Martin Panter
e8afd01db8
Issue #23883 : Update news
2016-01-16 07:01:46 +00:00
Martin Panter
4eb376c441
Issue #23883 : Add missing APIs to calendar.__all__
...
Patch by Joel Taddei and Jacek Kołodziej.
2016-01-16 06:49:30 +00:00
Martin Panter
7978e10441
Issue #23883 : Missing fileinput.__all__ APIs; patch by Mauro SM Rodrigues
2016-01-16 06:26:54 +00:00
Brett Cannon
63b8505281
Issue #25791 : Raise an ImportWarning when __spec__ or __package__ are
...
not defined for a relative import.
This is the start of work to try and clean up import semantics to rely
more on a module's spec than on the myriad attributes that get set on
a module. Thanks to Rose Ames for the patch.
2016-01-15 13:33:03 -08:00
Brett Cannon
56aae8f304
Issue #17633 : Improve support for namespace packages with zipimport.
...
Previously zipimport mistakenly limited namespace support to only the
top-level of the zipfile when it should have supported an arbitrary
depth.
Thanks to Phil Connel for the bug report and initial patch and Mike
Romberg for the final patch.
2016-01-15 11:22:19 -08:00
Martin Panter
3570e02fd2
Issue #25940 : Merge self-signed.pythontest.net testing from 3.5
2016-01-14 13:25:06 +00:00
Martin Panter
17cbee49d6
Issue #25940 : Merge self-signed.pythontest.net testing from 3.4 into 3.5
2016-01-14 13:22:29 +00:00
Martin Panter
514bb0711f
Issue #25940 : Merge self-signed.pythontest.net testing from 3.3 into 3.4
2016-01-14 12:46:49 +00:00
Martin Panter
73f55076f6
Issue #25940 : Merge self-signed.pythontest.net testing from 3.2 into 3.3
2016-01-14 12:21:02 +00:00
Martin Panter
3d81d93f34
Issue #25940 : Use self-signed.pythontest.net in SSL tests
...
This is instead of svn.python.org, whose certificate recently expired, and
whose new certificate uses a different root certificate.
The certificate used at the pythontest server was modifed to set the "basic
constraints" CA flag. This flag seems to be required for test_get_ca_certs_
capath() to work (in Python 3.4+).
Added the new self-signed certificate to capath with the following commands:
cp Lib/test/{selfsigned_pythontestdotnet.pem,capath/}
c_rehash -v Lib/test/capath/
c_rehash -v -old Lib/test/capath/
# Note the generated file names
cp Lib/test/capath/{selfsigned_pythontestdotnet.pem,0e4015b9.0}
mv Lib/test/capath/{selfsigned_pythontestdotnet.pem,ce7b8643.0}
The new server responds with "No route to host" when connecting to port 444.
2016-01-14 09:36:00 +00:00
Senthil Kumaran
86f7109dad
Issue #25822 : Add docstrings to the fields of urllib.parse results.
...
Patch contributed by Swati Jaiswal.
2016-01-14 00:11:39 -08:00
Senthil Kumaran
4e280a6f9f
Add a NEWS entry for Issue #22642 .
2016-01-13 07:48:57 -08:00
Zachary Ware
e2c9adb03b
Closes #25348 : Merge with 3.5
2016-01-12 01:31:21 -06:00
Zachary Ware
bed30c37d8
Issue #25348 : Add --pgo and --pgo-job flags to PCbuild\build.bat
2016-01-12 01:26:50 -06:00
Barry Warsaw
305e3557e9
Merge heads.
2016-01-11 15:53:51 -05:00
Barry Warsaw
3d220cc4d7
As per further discussion, re-enable the typeobject.c guard for picklability.
...
upstreams such as Cython will have to adjust.
2016-01-11 15:51:27 -05:00
doko@ubuntu.com
0633cb7d7a
Merge 3.5
2016-01-11 21:43:29 +01:00
doko@ubuntu.com
b2b1217270
- Issue #24705 : Fix sysconfig._parse_makefile not expanding ${} vars
...
appearing before $() vars.
2016-01-11 21:41:40 +01:00
Yury Selivanov
37dc2b2883
Issue #25486 : Resurrect inspect.getargspec in 3.6. Backout a565aad5d6e1.
...
The decision is that we shouldn't remove popular APIs (however long they
are depreacted) from Python 3, while 2.7 is still around and supported.
2016-01-11 15:15:01 -05:00
Barry Warsaw
ec71f1779f
Issue #22995 : [UPDATE] Comment out the one of the pickleability tests in
...
_PyObject_GetState() due to regressions observed in Cython-based projects.
2016-01-11 13:49:40 -05:00
Barry Warsaw
885e1939be
Issue #22995 : [UPDATE] Comment out the one of the pickleability tests in
...
_PyObject_GetState() due to regressions observed in Cython-based projects.
2016-01-11 13:24:02 -05:00
Yury Selivanov
4f8273d77e
Merge 3.5 (issue #26050 )
2016-01-11 12:32:53 -05:00
Yury Selivanov
b4b8a0ef3e
Merge 3.4 (Issue #26050 )
2016-01-11 12:30:56 -05:00
Yury Selivanov
d9d0e864b9
Issue #26050 : Add asyncio.StreamReader.readuntil() method.
...
Patch by Марк Коренберг.
2016-01-11 12:28:19 -05:00
Senthil Kumaran
96b531abd5
Issue #26069 : Remove the deprecated apis in the trace module.
2016-01-11 07:09:42 -08:00
Andrew Svetlov
3feb9460ed
Add missing Misc/NEWS update
2016-01-11 09:16:58 +02:00
Andrew Svetlov
34dd59ec84
merge 3.5
2016-01-11 09:13:10 +02:00
Andrew Svetlov
c07b16b40f
Sync with asyncio repo
2016-01-11 08:42:49 +02:00
Terry Jan Reedy
3acf170869
Merge with 3.5
2016-01-09 03:28:01 -05:00
Terry Jan Reedy
2a97f8a6d1
Issue #26029 : Remove extraneous word. Patch by Upendra Kumar.
2016-01-09 03:27:37 -05:00
Senthil Kumaran
b94591c2bf
merge from 3.5
...
Issue #22138 : Fix mock.patch behavior when patching descriptors. Restore
original values after patching.
Patch contributed by Sean McCully.
2016-01-08 23:44:10 -08:00
Senthil Kumaran
81bc927da7
Issue #22138 : Fix mock.patch behavior when patching descriptors. Restore
...
original values after patching.
Patch contributed by Sean McCully.
2016-01-08 23:43:29 -08:00
Benjamin Peterson
5db60aa84e
merge 3.5 ( closes #25672 )
2016-01-07 21:38:51 -08:00
Benjamin Peterson
3b1a8b3bbe
enable SSL_MODE_RELEASE_BUFFERS
...
Patch by Cory Benfield.
2016-01-07 21:37:37 -08:00
Guido van Rossum
483397a235
Issue #22570 : Add 'path' attribute to pathlib.Path objects. (Merge 3.5->3.6)
2016-01-06 11:03:47 -08:00
Guido van Rossum
1a4afec0d6
Issue #22570 : Add 'path' attribute to pathlib.Path objects. (Merge 3.4->3.5)
2016-01-06 11:03:15 -08:00
Guido van Rossum
e428231539
Issue #22570 : Add 'path' attribute to pathlib.Path objects.
2016-01-06 11:01:42 -08:00
Guido van Rossum
e630b6818f
Issue #26012 : Don't traverse into symlinks for ** pattern in pathlib.Path.[r]glob(). (Merge 3.5->3.6)
2016-01-06 10:36:19 -08:00
Guido van Rossum
520f297eb4
Issue #26012 : Don't traverse into symlinks for ** pattern in pathlib.Path.[r]glob(). (Merge 3.4->3.5)
2016-01-06 10:35:30 -08:00
Guido van Rossum
69bfb15bd8
Issue #26012 : Don't traverse into symlinks for ** pattern in pathlib.Path.[r]glob().
2016-01-06 10:31:33 -08:00
Guido van Rossum
080169c494
Issue #24120 : Ignore PermissionError in pathlib.Path.[r]glob(). Ulrich Petri. (Merge 3.5->3.6)
2016-01-06 09:53:51 -08:00
Guido van Rossum
d54377d2ca
Issue #24120 : Ignore PermissionError in pathlib.Path.[r]glob(). Ulrich Petri. (Merge 3.4->3.5)
2016-01-06 09:51:42 -08:00
Guido van Rossum
6c2d33a258
Issue #24120 : Ignore PermissionError in pathlib.Path.[r]glob(). Ulrich Petri.
2016-01-06 09:42:07 -08:00
R David Murray
317f64f048
#21815 : violate IMAP RFC to be compatible with, e.g., gmail
...
and others, including imaplib's own behavior. I'm applying this only to 3.6
because there's a potential backward compatibility concern: if there are
servers that include ] characters in the 'text' portion of their imap
responses, this code change could introduce a new bug.
Patch by Lita Cho, reviewed by Jessica McKellar, Berker Peksag, Maciej Szulik,
silentghost, and me (I fleshed out the comments with the additional
info/concerns.)
2016-01-02 17:18:34 -05:00
R David Murray
01759d5554
Merge: #22709 : Use stdin as-is if it does not have a buffer attribute.
2016-01-02 15:43:44 -05:00
R David Murray
830207e8f3
#22709 : Use stdin as-is if it does not have a buffer attribute.
...
This restores backward compatibility lost in the fix for #21075 , and
is better duck typing.
Patch by Akira Li.
2016-01-02 15:41:41 -05:00
Serhiy Storchaka
288cb25f1a
Issue #25961 : Disallowed null characters in the type name.
...
Simplified testing for null characters in __name__ setter.
2015-12-30 21:41:53 +02:00
Serhiy Storchaka
42bf8fc901
Issue #25961 : Disallowed null characters in the type name.
...
Simplified testing for null characters in __name__ setter.
2015-12-30 21:40:49 +02:00
Serhiy Storchaka
0d250bc119
Issue #25971 : Optimized creating Fractions from floats by 2 times and from
...
Decimals by 3 times.
Unified error messages in float.as_integer_ratio(), Decimal.as_integer_ratio(),
and Fraction constructors.
2015-12-29 22:34:23 +02:00
Benjamin Peterson
5aab44b301
merge 3.5 ( #25973 )
2015-12-29 10:08:51 -06:00
Benjamin Peterson
3cc8f4b969
make recording and reporting errors and nonlocal and global directives more robust ( closes #25973 )
2015-12-29 10:08:34 -06:00
Brett Cannon
eae3079041
Issue #25802 : Deprecate load_module() on importlib.machinery.SourceFileLoader and SourcelessFileLoader.
...
They were the only remaining implementations of load_module() not
documented as deprecated.
2015-12-28 17:55:27 -08:00
Stefan Krah
6f5470880e
Fix typo.
2015-12-28 23:17:05 +01:00
Stefan Krah
e3f359c71c
Merge.
2015-12-28 23:12:52 +01:00
Stefan Krah
53f2e0ad45
Issue #25928 : Add Decimal.as_integer_ratio(). Python parts and docs by
...
Mark Dickinson.
2015-12-28 23:02:02 +01:00
Serhiy Storchaka
e3a7d26aa6
Issue #25447 : Copying the lru_cache() wrapper object now always works,
...
independedly from the type of the wrapped object (by returning the original
object unchanged).
2015-12-28 23:59:09 +02:00
Serhiy Storchaka
e4d65e3aab
Issue #25447 : Copying the lru_cache() wrapper object now always works,
...
independedly from the type of the wrapped object (by returning the original
object unchanged).
2015-12-28 23:58:07 +02:00
Brett Cannon
1e3c3e906c
Issue #25768 : Make compileall functions return booleans and document
...
the return values as well as test them.
Thanks to Nicholas Chammas for the bug report and initial patch.
2015-12-27 13:17:04 -08:00
Brett Cannon
4a4ca7c13f
Merge for issue #12484
2015-12-27 12:24:36 -08:00
Brett Cannon
762d5ea875
Issue #12484 : Remove a mention of Py_InitModule() and _PyImport_FixupExtension().
...
Thanks to Alejandro Santos for the bug report and Anish Shah for the
patch.
2015-12-27 12:24:06 -08:00
Brett Cannon
0792451ea4
Merge for issue #25874
2015-12-27 12:09:10 -08:00
Brett Cannon
85622e4bc9
Issue #25874 : Clarify platform support in the "Using Python on Windows" doc.
...
Thanks to Chris Wilcox for the initial patch.
2015-12-27 12:08:37 -08:00
Serhiy Storchaka
f9253c96fd
Issue #22995 : Instances of extension types with a state that aren't
...
subclasses of list or dict and haven't implemented any pickle-related
methods (__reduce__, __reduce_ex__, __getnewargs__, __getnewargs_ex__,
or __getstate__), can no longer be pickled. Including memoryview.
2015-12-25 21:05:35 +02:00
Serhiy Storchaka
f81be8aa3f
Issue #22995 : Instances of extension types with a state that aren't
...
subclasses of list or dict and haven't implemented any pickle-related
methods (__reduce__, __reduce_ex__, __getnewargs__, __getnewargs_ex__,
or __getstate__), can no longer be pickled. Including memoryview.
2015-12-25 21:04:29 +02:00
Serhiy Storchaka
ef1585eb9a
Issue #25923 : Added more const qualifiers to signatures of static and private functions.
2015-12-25 20:01:53 +02:00
Serhiy Storchaka
ea8c43152f
Issue #24103 : Fixed possible use after free in ElementTree.XMLPullParser.
2015-12-24 11:53:16 +02:00
Serhiy Storchaka
bc4ded9537
Issue #24103 : Fixed possible use after free in ElementTree.XMLPullParser.
2015-12-24 11:51:57 +02:00
Serhiy Storchaka
f006940351
Issue #20440 : Massive replacing unsafe attribute setting code with special
...
macro Py_SETREF.
2015-12-24 10:39:57 +02:00
Serhiy Storchaka
5a57ade58e
Issue #20440 : Massive replacing unsafe attribute setting code with special
...
macro Py_SETREF.
2015-12-24 10:35:59 +02:00
Serhiy Storchaka
345e78e566
Issue #25860 : os.fwalk() no longer skips remaining directories when error occurs.
...
Original patch by Samson Lee.
2015-12-23 00:09:01 +02:00
Serhiy Storchaka
0bddc9eb15
Issue #25860 : os.fwalk() no longer skips remaining directories when error occurs.
...
Original patch by Samson Lee.
2015-12-23 00:08:24 +02:00
Serhiy Storchaka
3987e26e75
Issue #25914 : Fixed and simplified OrderedDict.__sizeof__.
2015-12-22 08:22:05 +02:00
Serhiy Storchaka
0ce7a3a34c
Issue #25914 : Fixed and simplified OrderedDict.__sizeof__.
2015-12-22 08:16:18 +02:00
Zachary Ware
266514ae93
Issue #25827 : Merge with 3.5
2015-12-21 14:17:12 -06:00
Zachary Ware
5af856404a
Issue #25827 : Add support for ICC to configure
2015-12-21 12:09:17 -06:00
Serhiy Storchaka
060ed718ce
Issue #25869 : Optimized deepcopying ElementTree; it is now 20 times faster.
2015-12-21 12:57:27 +02:00
Serhiy Storchaka
22adf2ac02
Issue #25873 : Optimized iterating ElementTree.
...
Iterating elements Element.iter() is now 40% faster,
iterating text Element.itertext() is now up to 2.5 times faster.
2015-12-21 12:43:54 +02:00
Serhiy Storchaka
47a9d59d51
Issue #25902 : Fixed various refcount issues in ElementTree iteration.
2015-12-21 11:11:12 +02:00
Serhiy Storchaka
66c08d90f6
Issue #25902 : Fixed various refcount issues in ElementTree iteration.
2015-12-21 11:09:48 +02:00
Larry Hastings
c4e70ffba9
Post-release touchups for Python 3.4.4 final.
2015-12-20 22:42:47 -08:00
Serhiy Storchaka
3182db356c
Issue #25766 : Special method __bytes__() now works in str subclasses.
2015-12-20 16:37:21 +02:00
Serhiy Storchaka
5aac3ed799
Issue #25766 : Special method __bytes__() now works in str subclasses.
2015-12-20 16:36:34 +02:00
Larry Hastings
fa71932860
Release bump for Python 3.4.4 final.
2015-12-19 19:31:10 -08:00
Serhiy Storchaka
a9406e77fa
Issue #25421 : __sizeof__ methods of builtin types now use dynamic basic size.
...
This allows sys.getsize() to work correctly with their subclasses with
__slots__ defined.
2015-12-19 20:07:11 +02:00
Serhiy Storchaka
5c4064e8bd
Issue #25421 : __sizeof__ methods of builtin types now use dynamic basic size.
...
This allows sys.getsize() to work correctly with their subclasses with
__slots__ defined.
2015-12-19 20:05:25 +02:00
Serhiy Storchaka
a254921cd4
Issue #22227 : The TarFile iterator is reimplemented using generator.
...
This implementation is simpler that using class.
2015-12-19 09:43:14 +02:00
Serhiy Storchaka
efb778a843
Fixed markup and spaces in Misc/NEWS.
2015-12-18 19:37:02 +02:00
Serhiy Storchaka
d1f20d1cf3
Fixed markup and spaces in Misc/NEWS.
2015-12-18 19:36:24 +02:00
Serhiy Storchaka
3fd4a735d8
Issue #25899 : Converted non-ASCII characters in docstrings and manpage
...
to ASCII replacements. Removed UTF-8 BOM from Misc/NEWS.
Original patch by Chris Angelico.
2015-12-18 13:10:37 +02:00
Serhiy Storchaka
225821c653
Issue #25899 : Converted non-ASCII characters in docstrings and manpage
...
to ASCII replacements. Original patch by Chris Angelico.
2015-12-18 13:05:04 +02:00
Victor Stinner
117051afa9
(Merge 3.5) Issue #25696 : Fix installation of Python on UNIX with make -j9.
2015-12-13 21:21:36 +01:00
Victor Stinner
c2021558ef
Issue #25696 : Fix installation of Python on UNIX with make -j9.
2015-12-13 21:20:36 +01:00
Martin Panter
33d8a1b426
Issue #19771 : Merge runpy error adjustment from 3.5
2015-12-12 07:16:33 +00:00
Martin Panter
dda584340e
Issue #19771 : Omit irrelevant message if package could not be initialized
2015-12-12 06:58:55 +00:00
Serhiy Storchaka
36ff997988
Issue #25638 : Optimized ElementTree parsing; it is now 10% faster.
2015-12-10 09:51:53 +02:00
Larry Hastings
ef3a67682b
Null merge from 3.5.
2015-12-06 22:14:58 -08:00
Larry Hastings
d785da8fbb
Merge.
2015-12-06 22:00:57 -08:00
Larry Hastings
13cf4904b2
Post-release fixups for Python 3.4.4rc1.
2015-12-06 21:54:29 -08:00
Larry Hastings
0c6ffabc5b
Post-release fixups for Python 3.5.1.
2015-12-06 21:53:27 -08:00
Serhiy Storchaka
9ec5e25f26
Issue #25638 : Optimized ElementTree.iterparse(); it is now 2x faster.
...
ElementTree.XMLParser._setevents now accepts any objects with the append
method, not just a list.
2015-12-07 02:31:11 +02:00
Serhiy Storchaka
59fb6342a4
Issue #25761 : Improved detecting errors in broken pickle data.
2015-12-06 22:01:35 +02:00
Larry Hastings
e739601a78
Version bump for 3.4.4rc1.
2015-12-06 05:53:35 -08:00
Ned Deily
7da28d29d6
Issue #25798 : merge from 3.5
2015-12-05 23:57:55 -05:00
Ned Deily
8d5d4664dc
Issue #25798 : merge from 3.4
2015-12-05 23:55:33 -05:00
Ned Deily
6364094f49
Issue #25798 : Update OS X 10.5+ 32-bit-only installer to build
...
and link with OpenSSL 1.0.2e.
2015-12-05 23:51:23 -05:00
Martin Panter
c85110658b
Issue #25717 : Merge fstat() fix from 3.5
2015-12-06 03:29:54 +00:00
Martin Panter
0bb62b12a3
Issue #25717 : Tolerate fstat() failures in the FileIO constructor
...
This restores 3.4 behaviour, which was removed by revision 3b5279b5bfd1. The
fstat() call fails with ENOENT for a Virtual Box shared folder filesystem if
the file entry has been unlinked, e.g. for a temporary file.
2015-12-06 03:15:05 +00:00
Larry Hastings
ffccaa40fa
Version bump for 3.5.1 final.
2015-12-05 17:05:23 -08:00
Benjamin Peterson
14b2c82855
fix reordering
2015-12-05 00:27:11 -08:00
Benjamin Peterson
608916af24
merge 3.5
2015-12-05 00:24:10 -08:00
Benjamin Peterson
c98bbd5289
merge 3.4
2015-12-05 00:24:01 -08:00
Benjamin Peterson
68524e1984
merge 3.3
2015-12-05 00:23:11 -08:00
Benjamin Peterson
2deaea3119
merge 3.2
2015-12-05 00:21:12 -08:00
Benjamin Peterson
5e621176c4
add CVE and issue number
2015-12-05 00:17:57 -08:00
R David Murray
154228fb61
Merge: #24903 : Remove misleading error message to fix regression.
2015-12-04 23:05:20 -05:00
R David Murray
939614c48c
Merge: #24903 : Remove misleading error message to fix regression.
2015-12-04 23:04:37 -05:00
R David Murray
ced699b4c7
#24903 : Remove misleading error message to fix regression.
...
Before the argparse conversion, compileall would (sometimes) accept multiple
paths when -d was specified. Afterward, it does not. The corresponding check
in the original code claimed to prevent multiple *directories* from being
specified...but it didn't really work even to do that. So this patch fixes
the regression by invoking the consenting adults rule: if you specify a
combination of arguments to compileall that produces files with inconsistent
destdirs (which you could do before), it is on you.
Patch by Jake Garver.
2015-12-04 22:54:38 -05:00
Martin Panter
07efcd5007
Issue #25764 : Merge subprocess fix from 3.5
2015-12-05 02:27:58 +00:00
Martin Panter
6a77c2d978
Issue #25764 : Merge subprocess fix from 3.4 into 3.5
2015-12-05 02:03:42 +00:00
Brett Cannon
65ca88e4e0
Issue #25771 : Tweak ValueError message when package isn't specified
...
for importlib.util.resolve_name() but is needed.
Thanks to Martin Panter for the bug report.
2015-12-04 15:19:42 -08:00
Brett Cannon
f4f25fe576
Issue #25500 : Fix the language reference to not claim that import
...
statements search for __import__ in the global scope.
Thanks to Sergei Lebedev for finding the documentation bug.
2015-12-04 14:51:26 -08:00
Serhiy Storchaka
3ab6c981e7
Issue #6478 : _strptime's regexp cache now is reset after changing timezone
...
with time.tzset().
2015-12-03 22:27:31 +02:00
Serhiy Storchaka
b1f64e7d29
Issue #6478 : _strptime's regexp cache now is reset after changing timezone
...
with time.tzset().
2015-12-03 22:26:36 +02:00
Serhiy Storchaka
c7217d7c22
Issue #6478 : _strptime's regexp cache now is reset after changing timezone
...
with time.tzset().
2015-12-03 22:21:07 +02:00
Martin Panter
85134706af
Issue #14285 : Merge runpy exception fix from 3.5
2015-12-03 01:36:03 +00:00
Martin Panter
657257edb6
Issue #14285 : Do not catch __init__.py exceptions in runpy
...
Initialize package before calling find_spec() for __main__, so that we do not
incorrectly handle exceptions from __init__.py. When runpy is used from the
Python CLI, use an internal exception rather than ImportError, to avoid
catching unexpected exceptions.
Also remove exception message rewriting in _run_module_as_main(), because it
seems to be redundant with the _get_main_module_details() function.
2015-12-03 01:23:10 +00:00
Serhiy Storchaka
7c088a9b5c
Issue #25709 : Fixed problem with in-place string concatenation and utf-8 cache.
2015-12-03 01:05:52 +02:00
Serhiy Storchaka
6648bf5661
Issue #25709 : Fixed problem with in-place string concatenation and utf-8 cache.
2015-12-03 01:04:37 +02:00
Serhiy Storchaka
31b9410654
Issue #25709 : Fixed problem with in-place string concatenation and utf-8 cache.
2015-12-03 01:02:03 +02:00
Serhiy Storchaka
e800941d66
Issue #25709 : Fixed problem with in-place string concatenation and utf-8 cache.
2015-12-03 01:02:03 +02:00
Serhiy Storchaka
7aa690860e
Issue #25709 : Fixed problem with in-place string concatenation and utf-8 cache.
2015-12-03 01:02:03 +02:00
Steve Dower
7b28eb1457
Merge from 3.5 (including all NEWS entries)
2015-12-02 09:19:07 -08:00
Steve Dower
10f997d986
Issue #25715 : Python 3.5.1 installer shows wrong upgrade path and incorrect logic for launcher detection.
2015-12-02 08:28:51 -08:00
Steven D'Aprano
b28c3275c7
Issue #25177 : Fixed problem with the mean of very small and very large numbers.
2015-12-01 19:59:53 +11:00
Steven D'Aprano
40a841bcb9
Fixed issue #25177 , problems with the mean of very small and very large numbers.
2015-12-01 17:04:32 +11:00
Steven D'Aprano
c0c00c38ad
Fix for issue #25177 with the mean of very small and very large numbers.
2015-12-01 13:48:48 +11:00
Serhiy Storchaka
78122c9c5d
Issue #25718 : Fixed copying object with state with boolean value is false.
2015-11-30 17:37:13 +02:00
Serhiy Storchaka
b63015b01a
Issue #25718 : Fixed copying object with state with boolean value is false.
2015-11-30 17:35:40 +02:00
Serhiy Storchaka
cbbec1c53f
Issue #25718 : Fixed copying object with state with boolean value is false.
2015-11-30 17:20:02 +02:00
Martin Panter
b4ce1fc31b
Issue #5319 : New Py_FinalizeEx() API to exit with status 120 on failure
2015-11-30 03:18:29 +00:00
Martin Panter
afdd51343c
Issue #25764 : Preserve subprocess fork exception when preexec_fn used
...
Also fix handling of failure to release the import lock.
2015-11-30 02:21:41 +00:00
R David Murray
4f09806e66
#25485 : Add context manager support to Telnet class.
...
Patch by Stéphane Wirtel.
2015-11-28 12:24:52 -05:00
Serhiy Storchaka
37f5421954
Issue #10131 : Fixed deep copying of minidom documents. Based on patch
...
by Marian Ganisin.
2015-11-26 23:52:34 +02:00
Serhiy Storchaka
15f070f845
Issue #10131 : Fixed deep copying of minidom documents. Based on patch
...
by Marian Ganisin.
2015-11-26 23:50:54 +02:00
Serhiy Storchaka
c472246d81
Issue #10131 : Fixed deep copying of minidom documents. Based on patch
...
by Marian Ganisin.
2015-11-26 23:49:42 +02:00
Martin Panter
2ed41f305e
Issue #22989 , #21228 : Merge urlopen() doc from 3.5
2015-11-26 11:04:06 +00:00
Martin Panter
9e87f3d79f
Issue #22989 , #21228 : Merge urlopen() doc from 3.4 into 3.5
2015-11-26 11:03:50 +00:00
Martin Panter
747d48cf27
Issues #22989 , #21228 : Document HTTP response object for urlopen()
...
Previous documentation was not clear if the geturl(), info() and getcode()
were valid for HTTP responses. The “msg” attribute is different to the usual
HTTPResponse.msg attribute. Based on patch by Evens Fortuné.
2015-11-26 11:01:58 +00:00
Serhiy Storchaka
6a50e79130
Issue #24097 : Fixed crash in object.__reduce__() if slot name is freed inside
...
__getattr__. Original patch by Antoine Pitrou.
2015-11-25 18:35:15 +02:00
Serhiy Storchaka
670d78abc5
Issue #24097 : Fixed crash in object.__reduce__() if slot name is freed inside
...
__getattr__. Original patch by Antoine Pitrou.
2015-11-25 18:34:19 +02:00
Serhiy Storchaka
d28bb624d1
Issue #24097 : Fixed crash in object.__reduce__() if slot name is freed inside
...
__getattr__. Original patch by Antoine Pitrou.
2015-11-25 18:33:29 +02:00
Serhiy Storchaka
b64c94338b
Issue #25616 : Tests for OrderedDict are extracted from test_collections
...
into separate file test_ordered_dict.
2015-11-25 17:18:57 +02:00
Serhiy Storchaka
2cefc1efa2
Issue #25616 : Tests for OrderedDict are extracted from test_collections
...
into separate file test_ordered_dict.
2015-11-25 17:12:02 +02:00
Serhiy Storchaka
33e7ea5ad6
Issue #25616 : Tests for OrderedDict are extracted from test_collections
...
into separate file test_ordered_dict.
2015-11-25 17:09:01 +02:00
Serhiy Storchaka
e8ec455755
Issue #25697 : Fixed rough alphabetical order in Misc/ACKS.
2015-11-25 16:13:29 +02:00
Serhiy Storchaka
83cb6b5215
Issue #25697 : Fixed rough alphabetical order in Misc/ACKS.
2015-11-25 16:12:30 +02:00
Serhiy Storchaka
1c855f4602
Issue #25697 : Fixed rough alphabetical order in Misc/ACKS.
2015-11-25 16:11:29 +02:00
Serhiy Storchaka
bb6e4a0b31
Issue #24731 : Fixed crash on converting objects with special methods
...
__bytes__, __trunc__, and __float__ returning instances of subclasses of
bytes, int, and float to subclasses of bytes, int, and float correspondingly.
2015-11-25 15:53:19 +02:00
Serhiy Storchaka
f9afda57ad
Issue #24731 : Fixed crash on converting objects with special methods
...
__bytes__, __trunc__, and __float__ returning instances of subclasses of
bytes, int, and float to subclasses of bytes, int, and float correspondingly.
2015-11-25 15:52:04 +02:00
Serhiy Storchaka
15095800a3
Issue #24731 : Fixed crash on converting objects with special methods
...
__bytes__, __trunc__, and __float__ returning instances of subclasses of
bytes, int, and float to subclasses of bytes, int, and float correspondingly.
2015-11-25 15:47:01 +02:00
Serhiy Storchaka
dde0815c35
Issue #7990 : dir() on ElementTree.Element now lists properties: "tag",
...
"text", "tail" and "attrib". Original patch by Santoso Wijaya.
2015-11-25 15:28:13 +02:00
Serhiy Storchaka
14128d8bc5
Issue #25725 : Fixed a reference leak in pickle.loads() when unpickling
...
invalid data including tuple instructions.
2015-11-25 15:07:36 +02:00
Serhiy Storchaka
c5f3b4285a
Issue #25725 : Fixed a reference leak in pickle.loads() when unpickling
...
invalid data including tuple instructions.
2015-11-25 15:06:49 +02:00
Serhiy Storchaka
a49de6be36
Issue #25725 : Fixed a reference leak in pickle.loads() when unpickling
...
invalid data including tuple instructions.
2015-11-25 15:01:53 +02:00
Martin Panter
450c988184
Issue #25663 : Merge rlcompleter fix from 3.5
2015-11-24 00:19:10 +00:00
Martin Panter
11bb1ad155
Issue #25663 : Merge rlcompleter fix from 3.4 into 3.5
2015-11-24 00:10:45 +00:00
Martin Panter
ed92910852
Issue #25663 : Make rlcompleter avoid duplicate global names
2015-11-23 23:50:26 +00:00
Serhiy Storchaka
698068b013
Issue #25688 : Fixed file leak in ElementTree.iterparse() raising an error.
2015-11-23 15:46:14 +02:00
Serhiy Storchaka
6f988b5990
Issue #25688 : Fixed file leak in ElementTree.iterparse() raising an error.
2015-11-23 15:45:12 +02:00
Serhiy Storchaka
e3d4ec4766
Issue #25688 : Fixed file leak in ElementTree.iterparse() raising an error.
2015-11-23 15:44:03 +02:00
Serhiy Storchaka
b1ce30281d
Issue #23914 : Fixed SystemError raised by unpickler on broken pickle data.
2015-11-23 15:20:21 +02:00
Serhiy Storchaka
4409c6cfae
Issue #23914 : Fixed SystemError raised by unpickler on broken pickle data.
2015-11-23 15:19:23 +02:00
Serhiy Storchaka
e9b3074cf9
Issue #23914 : Fixed SystemError raised by unpickler on broken pickle data.
2015-11-23 15:17:43 +02:00
Larry Hastings
3715cab3cb
Merge 3.5.1rc1 release changes back into main 3.5 branch.
2015-11-22 23:27:07 -08:00
Larry Hastings
ba11daa4e8
Post-release updates for Python 3.5.1rc1.
2015-11-22 23:22:47 -08:00
Serhiy Storchaka
0cd3effacd
Issue #25691 : Fixed crash on deleting ElementTree.Element attributes.
2015-11-23 08:49:39 +02:00
Serhiy Storchaka
3987fefd6f
Issue #25691 : Fixed crash on deleting ElementTree.Element attributes.
2015-11-23 08:47:26 +02:00
Serhiy Storchaka
b6aa5375d5
Issue #25691 : Fixed crash on deleting ElementTree.Element attributes.
2015-11-23 08:42:25 +02:00
Serhiy Storchaka
bf57bff1a9
Issue #25624 : ZipFile now always writes a ZIP_STORED header for directory
...
entries. Patch by Dingyuan Wang.
2015-11-22 14:50:59 +02:00
Serhiy Storchaka
6e3d2ba269
Issue #25624 : ZipFile now always writes a ZIP_STORED header for directory
...
entries. Patch by Dingyuan Wang.
2015-11-22 14:50:25 +02:00
Serhiy Storchaka
8bc792a602
Issue #25624 : ZipFile now always writes a ZIP_STORED header for directory
...
entries. Patch by Dingyuan Wang.
2015-11-22 14:49:58 +02:00
Larry Hastings
6e86580fc7
Version bump for Python 3.5.1rc1.
2015-11-21 23:54:22 -08:00
Terry Jan Reedy
2f557be2f5
Merge with 3.5
2015-11-21 13:20:26 -05:00
Terry Jan Reedy
7537898e4f
Misc/NEWS entries for IDLE.
2015-11-21 13:20:09 -05:00
Terry Jan Reedy
c75d37fcba
Misc/NEWS entries for IDLE.
2015-11-21 13:19:03 -05:00
Martin Panter
1aa10278a7
Issue #25626 : Add news to 3.6 section
2015-11-21 10:57:47 +00:00
Martin Panter
36befa5b4c
Issue #25626 : Merge zlib fix from 3.5
2015-11-21 10:57:15 +00:00
Martin Panter
e99e97762c
Issue #25626 : Change zlib to accept Py_ssize_t and cap to UINT_MAX
...
The underlying zlib library stores sizes in “unsigned int”. The corresponding
Python parameters are all sizes of buffers filled in by zlib, so it is okay
to reduce higher values to the UINT_MAX internal cap. OverflowError is still
raised for sizes that do not fit in Py_ssize_t.
Sizes are now limited to Py_ssize_t rather than unsigned long, because Python
byte strings cannot be larger than Py_ssize_t. Previously this could result
in a SystemError on 32-bit platforms.
This resolves a regression in the gzip module when reading more than UINT_MAX
or LONG_MAX bytes in one call, introduced by revision 62723172412c.
2015-11-20 08:13:35 +00:00
Martin Panter
8b4ee344ef
Issue #25583 : Add news to 3.6 section
2015-11-20 02:37:57 +00:00
Martin Panter
5e02af4961
Issue #25583 : Merge makedirs fix from 3.5
2015-11-20 02:37:29 +00:00
Martin Panter
97cabb9fa5
Issue #25583 : Merge makedirs fix from 3.4 into 3.5
2015-11-20 02:35:46 +00:00
Guido van Rossum
13d9b86d46
Issue #25593 : Change semantics of EventLoop.stop(). (Merge 3.5->3.6)
2015-11-19 13:34:24 -08:00
Guido van Rossum
82f9feaf10
Issue #25593 : Change semantics of EventLoop.stop(). (Merge 3.4->3.5)
2015-11-19 13:33:34 -08:00
Guido van Rossum
41f69f4cc7
Issue #25593 : Change semantics of EventLoop.stop().
2015-11-19 13:28:47 -08:00
Martin Panter
a82642f9db
Issue #25583 : Avoid incorrect errors raised by os.makedirs(exist_ok=True)
2015-11-19 04:48:44 +00:00
Serhiy Storchaka
0f53f2b1e5
Issue #25498 : Fixed contributors name.
2015-11-16 18:46:05 +02:00
Serhiy Storchaka
a27a1e576e
Issue #25498 : Fixed contributors name.
2015-11-16 18:45:39 +02:00
Serhiy Storchaka
da32d26ab9
Issue #25498 : Fixed contributors name.
2015-11-16 18:45:23 +02:00
Benjamin Peterson
d798dc1034
merge 3.5 ( #25630 )
2015-11-15 21:57:50 -08:00
Benjamin Peterson
a4d33b3428
make the PyUnicode_FSConverter cleanup set the decrefed argument to NULL ( closes #25630 )
2015-11-15 21:57:39 -08:00
Gregory P. Smith
f31f9718ac
Fixes #23564 : Fix a partially broken sanity check in the _posixsubprocess
...
internals regarding how fds_to_pass were passed to the child. The bug
had no actual impact as subprocess.py already avoided it.
2015-11-15 21:29:43 -08:00
Gregory P. Smith
d0a5b1c343
Fixes #23564 : Fix a partially broken sanity check in the _posixsubprocess
...
internals regarding how fds_to_pass were passed to the child. The bug
had no actual impact as subprocess.py already avoided it.
2015-11-15 21:15:26 -08:00
Gregory P. Smith
97b0b1e8d4
Fix issue #6973 : When we know a subprocess.Popen process has died, do
...
not allow the send_signal(), terminate(), or kill() methods to do
anything as they could potentially signal a different process.
2015-11-15 18:31:34 -08:00
Gregory P. Smith
2cd1b3b089
Fix issue #6973 : When we know a subprocess.Popen process has died, do
...
not allow the send_signal(), terminate(), or kill() methods to do
anything as they could potentially signal a different process.
2015-11-15 18:26:11 -08:00
Gregory P. Smith
a0c9caad66
Fix issue #6973 : When we know a subprocess.Popen process has died, do
...
not allow the send_signal(), terminate(), or kill() methods to do
anything as they could potentially signal a different process.
2015-11-15 18:19:10 -08:00
Benjamin Peterson
c4b528e809
merge 3.5 ( #25578 )
2015-11-14 15:14:58 -08:00
Benjamin Peterson
fcc2e71e99
merge 3.4 ( #25578 )
2015-11-14 15:14:42 -08:00
Benjamin Peterson
f0c9038a36
fix possible memory lea k in _get_aia_uri ( closes #25578 )
2015-11-14 15:12:18 -08:00
Serhiy Storchaka
0304729ec4
Issue #25388 : Fixed tokenizer crash when processing undecodable source code
...
with a null byte.
2015-11-14 15:12:04 +02:00
Serhiy Storchaka
7e2b870b85
Issue #25388 : Fixed tokenizer crash when processing undecodable source code
...
with a null byte.
2015-11-14 15:11:17 +02:00
Serhiy Storchaka
0d441119f5
Issue #25388 : Fixed tokenizer crash when processing undecodable source code
...
with a null byte.
2015-11-14 15:10:35 +02:00
Martin Panter
28a465c9e0
Issue #23883 : Add news listing modules with new exported APIs
2015-11-14 12:52:08 +00:00
Martin Panter
d226d308a3
Issue #23883 : Add test.support.check__all__() and test gettext.__all__
...
Patches by Jacek Kołodziej.
2015-11-14 11:47:00 +00:00
Martin Panter
fad4b60074
Adjust grammar and punctuation in whatsnew/3.6.rst
2015-11-14 01:29:17 +00:00
Martin Panter
22fd1c262a
Merge typo and grammar fixes from 3.5
2015-11-14 01:29:13 +00:00
Martin Panter
97ce0faa4d
Fix grammar in whatsnew/3.5.rst and elsewhere
...
Mainly missing grammatical articles (the, a).
2015-11-14 01:14:54 +00:00
Martin Panter
6fe39266c8
Issue #25590 : Complete attribute names even if they are not yet created
2015-11-13 23:54:02 +00:00
Martin Panter
f4ad5f5dea
Issue #25590 : Merge rlcompleter getattr change from 3.5
2015-11-13 23:48:17 +00:00
Martin Panter
fa9ea04673
Issue #25590 : Merge rlcompleter change from 3.4 into 3.5
2015-11-13 23:10:39 +00:00
Martin Panter
06622ead80
Issue #25590 : Make rlcompleter only call getattr() once per attribute
...
Previously it was called another time via hasattr(), and both calls were
made once for dir(f) and again for dir(f.__class__). This includes a
backport of changing from a list to a set from revision 4dbb315fe667.
2015-11-13 22:47:00 +00:00
Martin Panter
8adaec5671
Issue #25498 : Add NEWS entry for 3.6
2015-11-13 22:17:08 +00:00
Martin Panter
ceaabc100c
Issue #25498 : Merge ctypes crash fix from 3.5
2015-11-13 22:14:53 +00:00
Martin Panter
0da4ac1f21
Issue #25498 : Merge ctypes crash fix from 3.4 into 3.5
2015-11-13 22:12:12 +00:00
Martin Panter
1bb651540e
Issue #25498 : Fix GC crash due to ctypes objects wrapping a memoryview
...
This was a regression caused by revision 1da9630e9b7f. Based on patch by
Eryksun.
2015-11-13 21:43:39 +00:00
Serhiy Storchaka
1010921c71
Issue #25462 : The hash of the key now is calculated only once in most
...
operations in C implementation of OrderedDict.
2015-11-13 15:18:26 +02:00
Serhiy Storchaka
19a70e7f5d
Issue #25462 : The hash of the key now is calculated only once in most
...
operations in C implementation of OrderedDict.
2015-11-13 14:48:36 +02:00
Serhiy Storchaka
12ab296f82
Issue #22995 : Default implementation of __reduce__ and __reduce_ex__ now
...
rejects builtin types with not defined __new__.
Added tests for non-pickleable types.
2015-11-12 11:34:39 +02:00
Serhiy Storchaka
609a2e17ad
Issue #22995 : Default implementation of __reduce__ and __reduce_ex__ now
...
rejects builtin types with not defined __new__.
Added tests for non-pickleable types.
2015-11-12 11:31:51 +02:00
Serhiy Storchaka
d7a4415599
Issue #22995 : Default implementation of __reduce__ and __reduce_ex__ now
...
rejects builtin types with not defined __new__.
Added tests for non-pickleable types.
2015-11-12 11:23:04 +02:00
Benjamin Peterson
d5d6e331fb
merge 3.5 ( #25530 )
2015-11-11 22:45:36 -08:00
Benjamin Peterson
45bde5d2ee
merge 3.4 ( #25530 )
2015-11-11 22:45:22 -08:00
Benjamin Peterson
a9dcdabccb
always set OP_NO_SSLv3 by default ( closes #25530 )
2015-11-11 22:38:41 -08:00
Benjamin Peterson
ea54d319d6
merge 3.5 ( #25569 )
2015-11-11 22:14:31 -08:00
Benjamin Peterson
86429bd174
merge 3.5 ( #25569 )
2015-11-11 22:14:08 -08:00
Benjamin Peterson
eda06c8f5e
fix memory leak in _get_crl_dp ( closes #25569 )
...
Patch started by Stéphane Wirtel.
2015-11-11 22:07:38 -08:00
Serhiy Storchaka
608f472a85
Added missed periods at the ends of sentences in Misc/NEWS.
2015-11-10 00:31:28 +02:00
Serhiy Storchaka
4f1c1879cb
Added missed periods at the ends of sentences in Misc/NEWS.
2015-11-10 00:31:10 +02:00
Serhiy Storchaka
fed16ec7c2
Added missed periods at the ends of sentences in Misc/NEWS.
2015-11-10 00:20:43 +02:00
Serhiy Storchaka
e9eb20097d
Fixed markup in Misc/NEWS.
2015-11-09 23:44:31 +02:00
Serhiy Storchaka
acdb0207cd
Fixed markup in Misc/NEWS.
2015-11-09 23:43:56 +02:00
Serhiy Storchaka
faf7060fa0
Fixed markup in Misc/NEWS.
2015-11-09 23:41:39 +02:00
Serhiy Storchaka
cc10c33765
Issue #25584 : Added "escape" to the __all__ list in the glob module.
...
From patch by Xavier de Gaye.
2015-11-09 23:18:32 +02:00
Serhiy Storchaka
04b5700b36
Issue #25584 : Added "escape" to the __all__ list in the glob module.
...
From patch by Xavier de Gaye.
2015-11-09 23:18:19 +02:00
Serhiy Storchaka
8e43e11be3
Issue #25584 : Fixed recursive glob() with patterns starting with '**'.
2015-11-09 23:12:28 +02:00
Serhiy Storchaka
735b790fed
Issue #25584 : Fixed recursive glob() with patterns starting with '**'.
2015-11-09 23:12:07 +02:00
R David Murray
7861667c8e
Merge: #25446 : Fix regression in smtplib's AUTH LOGIN support.
2015-11-08 01:05:11 -05:00
R David Murray
b0deeb47d8
#25446 : Fix regression in smtplib's AUTH LOGIN support.
...
The auth method tests simply weren't adequate because of the fact that
smtpd doesn't support authentication. I borrowed some of Milan's
code for that from issue #21935 and added it to the smtplib tests.
Also discovered that the direct test for the 'auth' method wasn't actually
testing anything and fixed it.
The fix makes the new authobject mechanism work the way it is
documented...the problem was that wasn't checking for a 334 return code
if an initial-response was provided, which works fine for auth plain
and cram-md5, but not for auth login.
2015-11-08 01:03:52 -05:00
Steve Dower
ba270147e4
Issue #24306 : Sets component ID for launcher to match 3.5 and later to avoid downgrading.
2015-11-07 10:07:04 -08:00
Martin Panter
9513ba3b8f
Issue #24802 : Merge null termination fixes from 3.5
2015-11-07 03:15:32 +00:00
Martin Panter
61d6e4ae9d
Issue #24802 : Merge null termination fixes from 3.4 into 3.5
2015-11-07 02:56:11 +00:00
Martin Panter
eeb896c411
Issue #24802 : Copy bytes-like objects to null-terminated buffers if necessary
...
This avoids possible buffer overreads when int(), float(), compile(), exec()
and eval() are passed bytes-like objects. Similar code is removed from the
complex() constructor, where it was not reachable.
Patch by John Leitch, Serhiy Storchaka and Martin Panter.
2015-11-07 02:32:21 +00:00
Victor Stinner
f9827ea618
Issue #25555 : Fix parser and AST: fill lineno and col_offset of "arg" node when
...
compiling AST from Python objects.
2015-11-06 17:01:48 +01:00
Victor Stinner
c106c68aeb
Issue #25555 : Fix parser and AST: fill lineno and col_offset of "arg" node when
...
compiling AST from Python objects.
2015-11-06 17:01:48 +01:00
Martin Panter
e2e0deec45
Issue #18010 : Merge pydoc web search fix from 3.5
2015-11-06 01:08:34 +00:00
Martin Panter
98da9d0e0d
Issue #18010 : Merge pydoc web search fix from 3.4 into 3.5
2015-11-06 00:51:38 +00:00
Martin Panter
9ad0aae656
Issue #18010 : Fix pydoc web server search to handle package exceptions
...
Implementation by Antoine Pitrou.
2015-11-06 00:27:14 +00:00
Serhiy Storchaka
7c1455be6b
Issue #25554 : Got rid of circular references in regular expression parsing.
2015-11-05 17:51:15 +02:00
Serhiy Storchaka
b5d0a21553
Issue #25554 : Got rid of circular references in regular expression parsing.
2015-11-05 17:49:26 +02:00
Serhiy Storchaka
cf156bc248
Issue #24726 : Fixed issue number for previous changeset 76e848554b5d.
2015-11-04 22:38:40 +02:00
Serhiy Storchaka
4d11a94fb6
Issue #24726 : Fixed issue number for previous changeset 59c7615ea921.
2015-11-04 22:37:46 +02:00
Serhiy Storchaka
f83afa508f
Issue #25449 : Fixed a crash and leaking NULL in repr() of OrderedDict that
...
was mutated by direct calls of dict methods.
2015-11-04 22:33:33 +02:00
Serhiy Storchaka
710cd34bdb
Issue #25449 : Fixed a crash and leaking NULL in repr() of OrderedDict that
...
was mutated by direct calls of dict methods.
2015-11-04 22:33:07 +02:00
Serhiy Storchaka
161b6ff19c
Issue #25449 : Iterating OrderedDict with keys with unstable hash now raises
...
KeyError in C implementations as well as in Python implementation.
Added tests for OrderedDict subclasses.
2015-11-04 22:08:52 +02:00
Serhiy Storchaka
b45b7b2137
Issue #25449 : Iterating OrderedDict with keys with unstable hash now raises
...
KeyError in C implementations as well as in Python implementation.
Added tests for OrderedDict subclasses.
2015-11-04 22:05:38 +02:00
Serhiy Storchaka
4a7c03aab4
Issue #25523 : Merge a-to-an corrections from 3.5.
2015-11-02 14:44:29 +02:00
Serhiy Storchaka
f51d715845
Issue #25523 : Further a-to-an corrections new in 3.5.
2015-11-02 14:40:41 +02:00
Serhiy Storchaka
a84f6c3dd3
Issue #25523 : Merge a-to-an corrections from 3.4.
2015-11-02 14:39:05 +02:00
Serhiy Storchaka
d65c9496da
Issue #25523 : Further a-to-an corrections.
2015-11-02 14:10:23 +02:00
Martin Panter
e56a919100
Issue #25523 : Merge a-to-an corrections from 3.5
2015-11-02 04:27:17 +00:00
Martin Panter
d2ad5718ad
Issue #25523 : Further a-to-an corrections new in 3.5
2015-11-02 04:20:33 +00:00
Martin Panter
2eb819f7a8
Issue #25523 : Merge "a" to "an" fixes from 3.4 into 3.5
2015-11-02 04:04:57 +00:00
Martin Panter
7462b64911
Issue #25523 : Correct "a" article to "an" article
...
This changes the main documentation, doc strings, source code comments, and a
couple error messages in the test suite. In some cases the word was removed
or edited some other way to fix the grammar.
2015-11-02 03:37:02 +00:00
Serhiy Storchaka
9785261d68
Issue #18973 : Command-line interface of the calendar module now uses argparse
...
instead of optparse.
2015-11-01 17:14:27 +02:00
Serhiy Storchaka
17bdf2015d
Issue #25510 : fileinput.FileInput.readline() now returns b'' instead of ''
...
at the end if the FileInput was opened with binary mode.
Patch by Ryosuke Ito.
2015-11-01 16:45:54 +02:00
Serhiy Storchaka
56275dc1e2
Issue #25510 : fileinput.FileInput.readline() now returns b'' instead of ''
...
at the end if the FileInput was opened with binary mode.
Patch by Ryosuke Ito.
2015-11-01 16:45:26 +02:00
Serhiy Storchaka
314464d0ab
Issue #25510 : fileinput.FileInput.readline() now returns b'' instead of ''
...
at the end if the FileInput was opened with binary mode.
Patch by Ryosuke Ito.
2015-11-01 16:43:58 +02:00
Serhiy Storchaka
9b69491901
Issue #25395 : Fixed crash when highly nested OrderedDict structures were
...
garbage collected.
2015-11-01 16:13:45 +02:00
Serhiy Storchaka
14eefe353e
Issue #25395 : Fixed crash when highly nested OrderedDict structures were
...
garbage collected.
2015-11-01 16:12:34 +02:00
Steve Dower
bfb03a470c
Merge from 3.5
2015-10-31 13:07:44 -07:00
Steve Dower
04a4316acc
Issue #25450 : Updates shortcuts to start Python in installation directory.
2015-10-31 12:41:46 -07:00
Martin Panter
ff99988397
Merge typo fixes from 3.5
2015-10-31 12:23:03 +00:00
Martin Panter
4827e488a4
Merge spelling fixes from 3.4 into 3.5
2015-10-31 12:16:18 +00:00
Martin Panter
1f1177d69a
Fix some spelling errors in documentation and code comments
2015-10-31 11:48:53 +00:00
Benjamin Peterson
4b24d63407
merge 3.5 ( #25515 )
2015-10-29 20:40:34 -07:00
Benjamin Peterson
788cb52905
always use os.urandom for the uuid4 algorithm ( closes #25515 )
2015-10-29 20:38:04 -07:00
Serhiy Storchaka
6230235e83
Issue #25503 : Fixed inspect.getdoc() for inherited docstrings of properties.
...
Original patch by John Mark Vandenberg.
2015-10-29 08:17:10 +02:00
Serhiy Storchaka
ac4bdcc80e
Issue #25503 : Fixed inspect.getdoc() for inherited docstrings of properties.
...
Original patch by John Mark Vandenberg.
2015-10-29 08:15:50 +02:00
Serhiy Storchaka
2e0e18ba57
Issue #21827 : Fixed textwrap.dedent() for the case when largest common
...
whitespace is a substring of smallest leading whitespace.
Based on patch by Robert Li.
2015-10-28 21:45:01 +02:00
Serhiy Storchaka
f8152c67f5
Issue #21827 : Fixed textwrap.dedent() for the case when largest common
...
whitespace is a substring of smallest leading whitespace.
Based on patch by Robert Li.
2015-10-28 21:43:12 +02:00
Serhiy Storchaka
ea4cb63e68
Issue #21827 : Fixed textwrap.dedent() for the case when largest common
...
whitespace is a substring of smallest leading whitespace.
Based on patch by Robert Li.
2015-10-28 21:39:36 +02:00
Benjamin Peterson
2374ad7dd9
merge 3.5 ( #25471 )
2015-10-24 20:07:28 -07:00
Benjamin Peterson
2775d85d55
merge 3.4 ( #25471 )
2015-10-24 20:07:08 -07:00
Benjamin Peterson
d9dbf49383
accepted sockets shouldn't inherit the SOCK_NONBLOCK flag ( closes #25471 )
2015-10-24 20:06:04 -07:00
Serhiy Storchaka
dcd1a0309f
Issue #25447 : The lru_cache() wrapper objects now can be copied and pickled
...
(by returning the original object unchanged).
2015-10-24 09:50:19 +03:00
Serhiy Storchaka
45120f272b
Issue #25447 : The lru_cache() wrapper objects now can be copied and pickled
...
(by returning the original object unchanged).
2015-10-24 09:49:56 +03:00
Victor Stinner
4487a46727
Merge 3.4 (Issue #25461 )
2015-10-23 12:39:20 +02:00
Victor Stinner
de6e800f45
Merge 3.4 (Issue #25461 )
2015-10-23 12:39:01 +02:00
Victor Stinner
0e316f688e
Issue #25461 : Rephrase os.walk() doc
...
Patch written by Bernt Røskar Brenna.
2015-10-23 12:38:11 +02:00
Berker Peksag
4da71055e1
Fix merge conflict artifacts and move the entry to correct place
2015-10-21 16:38:36 +03:00
Guido van Rossum
59136ccad2
Issue #25390 : typing: Don't crash on Union[str, Pattern]. (Merge 3.5->3.6)
2015-10-19 14:56:25 -07:00
Guido van Rossum
ca636eac88
Issue #25390 : typing: Don't crash on Union[str, Pattern].
2015-10-19 14:55:47 -07:00