Terry Jan Reedy
5decb84454
Merge with 3.5
2016-03-20 21:18:54 -04:00
Terry Jan Reedy
370764a824
Merge with 3.5
2016-03-20 21:06:15 -04:00
Berker Peksag
5d7286c05d
Issue #26593 : Fix typo in logging HOWTO
...
Patch by Andrew Szeto.
2016-03-20 12:51:16 +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
Victor Stinner
ee803a8d2c
Issue #26567 : enhance ResourceWarning example
2016-03-19 10:33:25 +01: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
Brett Cannon
81ae89b611
Merge for issue #26095
2016-03-18 13:24:15 -07:00
Brett Cannon
adcb654519
Suggest people use feature detection in porting guide
2016-03-18 13:23:58 -07:00
Brett Cannon
5936313651
Issue #26252 : Add an example on how to register a finder
2016-03-18 11:54:22 -07: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
Victor Stinner
9b46a57302
Doc: fix typos, patch written by Stefan Behnel
2016-03-18 15:10:43 +01:00
Serhiy Storchaka
ee6471ec90
Fixed a typo.
2016-03-18 14:37:53 +02:00
Serhiy Storchaka
774006232a
Fixed a typo.
2016-03-18 14:36:47 +02:00
Berker Peksag
b3fe1c488f
Issue #26580 : Remove outdated reference to ftpmirror
...
Patch by SilentGhost.
2016-03-18 14:26:29 +02:00
Berker Peksag
42f8548c89
Issue #26580 : Remove outdated reference to ftpmirror
...
Patch by SilentGhost.
2016-03-18 14:26:08 +02:00
Victor Stinner
c2fc56836f
Enhance documentation on malloc debug hooks
...
Issue #26564 , #26516 , #26563 .
2016-03-18 11:04:31 +01:00
Martin Panter
ce911c3fed
Issue #26499 : Fixes to HTTPResponse.readline() and read1(), by Silent Ghost
2016-03-17 06:42:48 +00: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
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
8a20851010
Issue #25654 :
...
* multiprocessing: open file with closefd=False to avoid ResourceWarning
* _test_multiprocessing: open file with O_EXCL to detect bugs in tests (if a
previous test forgot to remove TESTFN)
* test_sys_exit(): remove TESTFN after each loop iteration
Initial patch written by Serhiy Storchaka.
2016-03-25 09:29:50 +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
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
Raymond Hettinger
5f6209a3c6
merge
2016-03-13 00:12:49 -08:00
Raymond Hettinger
a503f7092f
Minor recipe edit: convert "while 1" to "while True".
2016-03-13 00:12:31 -08: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
Raymond Hettinger
7dc830e988
merge
2016-03-12 22:58:44 -08:00
Raymond Hettinger
4d02896609
Issue #26548 : Minor fix to awkward wording in docs
2016-03-12 22:58:24 -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
Berker Peksag
eb2e02bed4
Issue #26542 : Fix markup of code example in difflib documentation
...
Patch by Dmitry Shachnev.
2016-03-11 23:19:48 +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
82442b7022
Issue #26542 : Fix markup of code example in difflib documentation
...
Patch by Dmitry Shachnev.
2016-03-11 23:20:09 +02:00
Victor Stinner
f915e0e393
Merge 3.5 (malloc doc)
2016-03-09 15:02:31 +01:00
Victor Stinner
29bf27fe7f
Issue #26516 : Enhance Python mem allocators doc
...
* add link to PYTHONMALLOCSTATS env var
* add parameters to PyMem macros like PyMem_MALLOC()
* fix PyMem_SetupDebugHooks(): add Calloc functions
* add some newlines for readability
2016-03-09 14:49:52 +01: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
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
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
Berker Peksag
f1fc8f953e
Issue #24852 : Remove outdated "HOWTO Use Python in the web" document
2016-03-07 19:01:05 +02:00
Berker Peksag
b4f2f453e7
Issue #24852 : Remove outdated "HOWTO Use Python in the web" document
2016-03-07 19:00:47 +02:00
Berker Peksag
5b96d66ac6
Issue #21034 : Remove outdated paragraph from venv documentation
...
Since Python 3.4, there is no need to install pip and setuptools
into a venv manually.
2016-03-07 18:51:06 +02:00
Berker Peksag
777d639a92
Issue #21034 : Remove outdated paragraph from venv documentation
...
Since Python 3.4, there is no need to install pip and setuptools
into a venv manually.
2016-03-07 18:50:49 +02:00
Raymond Hettinger
20b3e72b8d
Merge
2016-03-06 18:12:08 -08:00
Raymond Hettinger
e525ee3b48
Document another recipe for itertools: all_equal(). Inspired by David Beazley.
2016-03-06 18:11:38 -08:00