Commit graph

93761 commits

Author SHA1 Message Date
Victor Stinner
f5c4b99034 PyMem_Malloc() now uses the fast pymalloc allocator
Issue #26249: PyMem_Malloc() allocator family now uses the pymalloc allocator
rather than system malloc(). Applications calling PyMem_Malloc() without
holding the GIL can now crash: use PYTHONMALLOC=debug environment variable to
validate the usage of memory allocators in your application.
2016-04-22 16:26:23 +02:00
Senthil Kumaran
5439fc4901 [minor] Doc fix in old python doc. 2016-04-21 00:23:08 -07:00
Victor Stinner
af1baabfce Merge 3.5 2016-04-20 18:26:40 +02:00
Victor Stinner
19620c57d7 gdb/libpython.py: inline _type_void_ptr()
The function was only called in _sizeof_void_p()
2016-04-20 18:26:12 +02:00
Victor Stinner
b4faa8ef93 Merge 3.5 2016-04-20 18:23:59 +02:00
Victor Stinner
d7a71224d8 Issue #26799: Fix typo in Misc/NEWS 2016-04-20 18:23:49 +02:00
Victor Stinner
c88390f02d Merge 3.5: Issue #26799 2016-04-20 18:12:38 +02:00
Victor Stinner
4e75ca87e3 python-gdb.py: get C types at runtime
Issue #26799: Fix python-gdb.py: don't get once C types when the Python code
is loaded, but get C types on demande. The C types can change if
python-gdb.py is loaded before the Python executable.

Patch written by Thomas Ilsche.
2016-04-20 18:07:21 +02:00
Victor Stinner
a2bf3060d0 Issue #21668: Add also Chi Hsuan Yen to Misc/ACKS 2016-04-20 10:02:04 +02:00
Victor Stinner
61f68dbd17 Issue #21668: Fix author of the patch.
Sorry, it was hard to retrieve the original author of the patch in this issue
with a long history and many authors.
2016-04-20 09:58:12 +02:00
Martin Panter
614827c149 Additional grammar fix 2016-04-19 04:05:59 +00:00
Martin Panter
abe4d52a1a Merge doc and comment fixes from 3.5 2016-04-19 23:23:16 +00:00
Victor Stinner
f8d6f73f26 Null merge 3.5 (changes already applied to test_gdb) 2016-04-20 00:31:04 +02:00
Victor Stinner
0d88c65231 Backport test_gdb fix for s390x buildbots 2016-04-20 00:30:14 +02:00
Victor Stinner
0b2e98d53d Optimize func(*tuple) function call
Issue #26802: Optimize function calls only using unpacking like "func(*tuple)"
(no other positional argument, no keyword): avoid copying the tuple.

Patch written by Joe Jevnik.
2016-04-19 22:54:37 +02:00
Paul Moore
201c4ecf18 Merge with 3.5 2016-04-19 22:59:48 +01:00
Serhiy Storchaka
79d6e8de9e Issue #26802: Optimized calling a function with *args only positional arguments.
Patch by Joe Jevnik.
2016-04-19 23:37:17 +03:00
Victor Stinner
5bfe0da808 Merge 3.5: issue #26801 2016-04-19 22:29:11 +02:00
Victor Stinner
119ebb70e9 Fix shutil.get_terminal_size() error handling
Issue #26801: Fix error handling in shutil.get_terminal_size(), catch
AttributeError instead of NameError. Patch written by Emanuel Barry.

test_shutil: skip the functional test using "stty size" command if
os.get_terminal_size() is missing.
2016-04-19 22:24:56 +02:00
Jesus Cea
0fea25af48 MERGE: Trivial typo 2016-04-19 21:50:40 +02:00
Jesus Cea
ded4c4967b Trivial typo 2016-04-19 21:50:19 +02:00
Paul Moore
b5d164cc3f Mention types.SimpleNamespace in collections.namedtuple doc
Issue #26805.
2016-04-19 19:17:16 +01:00
Paul Moore
9a8d0d5c7d Mention types.SimpleNamespace in collections.namedtuple doc
Issue #26805.
2016-04-19 19:17:16 +01:00
Zachary Ware
edaf8653c6 Merge with 3.5 2016-04-19 11:49:56 -05:00
Zachary Ware
75b1bdcafa Replace assert statements with self.assertXxx() calls
Sync with upstream, see github.com/python/typing/pull/205
2016-04-19 11:49:37 -05:00
Victor Stinner
0621e0ea86 Don't define _PyMem_PymallocEnabled() if pymalloc is disabled
Isse #26516.
2016-04-19 17:02:55 +02:00
Victor Stinner
1fa5a38e92 Merge 3.5: Issue #21668 2016-04-19 15:58:33 +02:00
Victor Stinner
def8072c34 setup.py: add missing libm dependency
Issue #21668: Link audioop, _datetime, _ctypes_test modules to libm, except on
Mac OS X. Patch written by Xavier de Gaye.
2016-04-19 15:58:11 +02:00
Lars Gustäbel
daac5f9f92 Issue #24838: Merge test_tarfile.py fix from 3.5. 2016-04-19 11:59:39 +02:00
Lars Gustäbel
ddd9917ac3 Issue #24838: Fix test_tarfile.py for non-utf8 filesystem encodings. 2016-04-19 11:58:41 +02:00
Lars Gustäbel
7c3e6848f2 Issue #24838: Merge tarfile fix from 3.5. 2016-04-19 08:53:14 +02:00
Lars Gustäbel
0f450abec4 Issue #24838: tarfile's ustar and gnu formats now correctly calculate name and
link field limits for multibyte character encodings like utf-8.
2016-04-19 08:43:17 +02:00
Martin Panter
8f26565ba9 Fix spelling (inital), grammar (may translates) in documentation, comments 2016-04-19 04:03:41 +00:00
Berker Peksag
1d0489269e Issue #26615: Add missing __qualname__ entry to functools.update_wrapper() docs
Patch by Xiang Zhang.
2016-04-18 21:21:10 +03:00
Berker Peksag
472233ec83 Issue #26615: Add missing __qualname__ entry to functools.update_wrapper() docs
Patch by Xiang Zhang.
2016-04-18 21:20:50 +03:00
Guido van Rossum
49ed08fd0b typing.py: merge 3.5->3.6 (Tuple/ellipsis/equality). 2016-04-18 07:39:54 -07:00
Guido van Rossum
5abcbb3ee5 typing.py: Consider ellipsis in TupleMeta.__eq__. By Kalle Tuure. github.com/python/typing/pull/201. 2016-04-18 07:37:41 -07:00
Victor Stinner
27e1240af5 Merge 3.5 (test_asyncio) 2016-04-18 10:29:19 +02:00
Victor Stinner
c1b578608e Fix test_asyncio.test_timeout_disable()
Issue #26777: Fix random failing of the test on the "AMD64 FreeBSD 9.x 3.5"
buildbot:

    File ".../Lib/test/test_asyncio/test_tasks.py", line 2398, in go
      self.assertTrue(0.09 < dt < 0.11, dt)
    AssertionError: False is not true : 0.11902812402695417

Replace "< 0.11" with "< 0.15".
2016-04-18 10:28:42 +02:00
Martin Panter
791ac54a44 Issue #26657: Merge http.server fix from 3.5 2016-04-18 07:16:17 +00:00
Georg Brandl
d2be07e1fd #25987: add versionadded to Reversible. 2016-04-18 07:25:54 +02:00
Raymond Hettinger
a648339595 Fix spelling error 2016-04-17 21:21:01 -07:00
Martin Panter
d274b3f1f1 Issue #26657: Fix Windows directory traversal vulnerability with http.server
Based on patch by Philipp Hagemeister.  This fixes a regression caused by
revision f4377699fd47.
2016-04-18 03:45:18 +00:00
Guido van Rossum
f0f1d365c8 Sync test_typing.py with upstream git repo (typing.py was already synced). (3.5->3.6) 2016-04-17 17:53:50 -07:00
Guido van Rossum
6aafbd433d Sync test_typing.py with upstream git repo (typing.py was already synced). 2016-04-17 17:52:05 -07:00
Serhiy Storchaka
55c861f637 Issue #26745: Removed redundant code in _PyObject_GenericSetAttrWithDict.
Based on patch by Xiang Zhang.
2016-04-17 20:31:51 +03:00
Victor Stinner
a858bbde03 Avoid fcntl() if possible in set_inheritable()
Issue #26770: set_inheritable() avoids calling fcntl() twice if the FD_CLOEXEC
is already set/cleared. This change only impacts platforms using the fcntl()
implementation of set_inheritable() (not Linux nor Windows).
2016-04-17 16:51:52 +02:00
Serhiy Storchaka
b6a9c9761c Issue #26778: Fixed "a/an/and" typos in code comment, documentation and error
messages.
2016-04-17 09:39:28 +03:00
Serhiy Storchaka
6a7b3a77b4 Issue #26778: Fixed "a/an/and" typos in code comment and documentation. 2016-04-17 08:32:47 +03:00
Steven D'Aprano
5562563dd4 Automated merge with ssh://hg.python.org/cpython 2016-04-17 13:14:48 +10:00