Benjamin Peterson
a4dfbe608f
merge 3.5 ( #26986 )
2016-05-09 23:44:30 -07:00
Benjamin Peterson
387235085c
improve PyFunction_New docs ( closes #26986 )
...
Patch from Xiang Zhang.
2016-05-09 23:43:53 -07:00
Serhiy Storchaka
1acbf853c8
Issue #26736 : Used HTTPS for external links in the documentation if possible.
2016-05-07 10:49:58 +03:00
Serhiy Storchaka
6dff0205b7
Issue #26736 : Used HTTPS for external links in the documentation if possible.
2016-05-07 10:49:07 +03:00
Berker Peksag
78de0b1047
Issue #18353 : Remove PyUnicode_WRITE_CHAR macro link from c-api/unicode.rst
...
Patch by Corey Brune.
2016-04-24 03:07:03 +03:00
Berker Peksag
544ae59b8e
Issue #18353 : Remove PyUnicode_WRITE_CHAR macro link from c-api/unicode.rst
...
Patch by Corey Brune.
2016-04-24 03:06:44 +03:00
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
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
Brett Cannon
1f8a1cc0f7
Merge for issue #26760
2016-04-15 12:44:09 -07:00
Brett Cannon
abf797df66
Issue #26760 : Minimally document PyFrameObject
2016-04-15 12:43:50 -07:00
Martin Panter
cda80940ed
Issue #15984 : Merge PyUnicode doc from 3.5
2016-04-15 02:27:11 +00:00
Martin Panter
20d325574e
Issue #15984 : Correct PyUnicode_FromObject() and _FromEncodedObject() docs
2016-04-15 00:56:21 +00:00
Martin Panter
6245cb3c01
Correct “an” → “a” with “Unicode”, “user”, “UTF”, etc
...
This affects documentation, code comments, and a debugging messages.
2016-04-15 02:14:19 +00:00
Victor Stinner
d1700a9360
Fix typo in doc: avoid the french "& cie" :-)
2016-03-23 16:57:51 +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
Victor Stinner
9b46a57302
Doc: fix typos, patch written by Stefan Behnel
2016-03-18 15:10:43 +01:00
Victor Stinner
c2fc56836f
Enhance documentation on malloc debug hooks
...
Issue #26564 , #26516 , #26563 .
2016-03-18 11:04:31 +01: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
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
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
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
Serhiy Storchaka
885bdc4946
Issue #25985 : sys.version_info is now used instead of sys.version
...
to format short Python version.
2016-02-11 13:10:36 +02: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
Serhiy Storchaka
c4b813d05d
Issue #26198 : Fixed error messages for some argument parsing errors.
...
Fixed the documented about buffer overflow error for "es#" and "et#" format
units.
2016-02-08 01:06:11 +02:00
Berker Peksag
68df686954
Add a link to PEP 384 in stable.rst
2016-01-28 12:42:45 +02:00
Berker Peksag
806cb0f2b6
Add a link to PEP 384 in stable.rst
2016-01-28 12:42:26 +02:00
Senthil Kumaran
dce4ae8ffe
merge from 3.5
...
issue25909 - Correct the documentation of PyMapping_Items, PyMapping_Keys and
PyMapping_Values in Include/abstract.h and Doc/c-api/mapping.rst.
Patch contributed by Sonali Gupta.
2016-01-21 09:38:02 -08:00
Senthil Kumaran
1538b3d3df
issue25909 - Correct the documentation of PyMapping_Items, PyMapping_Keys and
...
PyMapping_Values in Include/abstract.h and Doc/c-api/mapping.rst.
Patch contributed by Sonali Gupta.
2016-01-21 09:37:28 -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
Martin Panter
e7ceef66dd
Issue #25701 : Merge set and delete documentation from 3.5
2015-12-08 00:05:06 +00:00
Martin Panter
45be8d67be
Issue #25701 : Document C API functions that both set and delete objects
...
Also document that the separate functions that delete objects are preferred;
using PyObject_SetAttr(), _SetAttrString(), and PySequence_SetItem() to
delete is deprecated.
2015-12-08 00:03:20 +00: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
Serhiy Storchaka
1f847659f3
Issue #25706 : Fixed markup in the documentation.
2015-11-23 16:43:54 +02:00
Serhiy Storchaka
bf7b9ede1a
Issue #25706 : Fixed markup in the documentation.
2015-11-23 16:43:05 +02: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
Martin Panter
84835ab1cb
Issue #25161 : Merge full stops from 3.4 into 3.5
2015-10-10 10:44:25 +00:00
Martin Panter
d21e0b52f1
Issue #25161 : Add full stops in documentation; patch by Takase Arihiro
2015-10-10 10:36:22 +00:00
Martin Panter
36f22a2820
Issue #24808 : Merge 3.4 into 3.5; adjust new tp_as_async field
2015-08-25 05:25:21 +00:00
Martin Panter
78d5033337
Issue #24808 : Update the documentation of some PyTypeObject fields
...
Patch by Joseph Weston.
2015-08-25 05:06:39 +00:00
Benjamin Peterson
8e205f7b4f
merge 3.4 ( #24883 )
2015-08-17 23:38:46 -07:00
Benjamin Peterson
2053aa1193
'Py_Buffer' should be 'Py_buffer' ( closes #24883 )
2015-08-17 23:38:34 -07:00
Stefan Krah
70e543b266
Issue #23756 : Clarify the terms "contiguous" and "bytes-like object".
...
Patch by Martin Panter.
2015-08-08 14:33:28 +02:00
Zachary Ware
4ffc3d4480
Merge 3.4
2015-07-07 00:00:43 -05:00