Benjamin Peterson
ed4aa83ff7
require a long long data type ( closes #27961 )
2016-09-05 17:44:18 -07:00
Nick Coghlan
cbcd221de4
Merge #27782 fix from 3.5
2016-08-21 17:43:58 +10:00
Nick Coghlan
8682f578c1
Issue #27782 : Fix m_methods handling in multiphase init
...
Multi-phase extension module import now correctly allows the
``m_methods`` field to be used to add module level functions
to instances of non-module types returned from ``Py_create_mod``.
Patch by Xiang Zhang.
2016-08-21 17:41:56 +10:00
Berker Peksag
7a01508bbe
Issue #12946 : Merge from 3.5
2016-08-19 11:52:08 +03:00
Berker Peksag
c01e766b54
Issue #12946 : Document that PyModule_GetDict can fail in some cases
2016-08-19 11:51:39 +03:00
Berker Peksag
0b9e64122b
Issue #24637 : Merge from 3.5
2016-08-13 05:38:18 +03:00
Berker Peksag
bd664357f1
Issue #24637 : Document that locals can be any mapping object
...
This behavior is already tested in test_general_eval in
Lib/test/test_builtin.py
Patch by Matthew Keeter.
2016-08-13 05:37:49 +03:00
Martin Panter
0de01c4b30
Issue #24278 : Merge argument parsing docs from 3.5
2016-08-04 01:51:32 +00:00
Martin Panter
6c7d5a2553
Issue #24278 : Explain how argument parsing output buffers are managed
2016-08-03 14:35:05 +00:00
Serhiy Storchaka
b133bb4977
Issue #27481 : Docummented that ValueError is now raised instead of TypeError
...
in case of embedded null characters/bytes. Patch by Xiang Zhang.
2016-07-12 09:15:00 +03:00
Serhiy Storchaka
6f379f4886
Issue #27481 : Docummented that ValueError is now raised instead of TypeError
...
in case of embedded null characters/bytes. Patch by Xiang Zhang.
2016-07-12 09:14:15 +03:00
Brett Cannon
fdcdd9ed80
Issue #26896 : Disambiguate uses of "importer" with "finder".
...
Thanks to Oren Milman for the patch.
2016-07-08 11:00:00 -07:00
Berker Peksag
e3c1d34c65
Merge from 3.5
2016-07-05 17:08:52 +03:00
Berker Peksag
e75ffa965b
Add versionadded to PyDict_SetDefault documentation
...
It was added for Python 3.4 in a0b750ea3397.
2016-07-05 17:08:29 +03:00
Brett Cannon
c78ca1e044
Issue #27186 : Update os.fspath()/PyOS_FSPath() to check the return
...
type of __fspath__().
As part of this change, also make sure that the pure Python
implementation of os.fspath() is tested.
2016-06-24 12:03:43 -07:00
Martin Panter
2fec611a70
Issue #24314 : Merge doc links from 3.5
2016-06-18 08:20:22 +00:00
Martin Panter
bae5d81f5d
Issue #24314 : Fix doc links for general attributes like __name__, __dict__
2016-06-18 03:57:31 +00:00
Berker Peksag
8f95e65e5d
Issue #15657 : Delete incorrect statement from PyMethodDef documentation
2016-06-12 16:34:38 +03:00
Serhiy Storchaka
f41b82fb19
Issue #26282 : PyArg_ParseTupleAndKeywords() and Argument Clinic now support
...
positional-only and keyword parameters in the same function.
2016-06-09 16:30:29 +03:00
Brett Cannon
a0053bebc2
Merge
2016-06-09 16:59:13 -07:00
Brett Cannon
746102bd23
Issue #27186 : Document PyOS_FSPath().
2016-06-09 16:58:38 -07:00
Martin Panter
5848ac2df0
Issue #15476 : Merge index entries from 3.5
2016-06-09 23:36:40 +00:00
Tommy Beadle
e9b8403a1f
[Issue 15476] Make "code object" its own entry in the index
2016-06-02 19:26:51 -04:00
Benjamin Peterson
010bb99432
merge 3.5
2016-06-02 11:36:16 -07:00
Benjamin Peterson
a49ccf2113
note that Py_VISIT handles NULL ( closes #27183 )
2016-06-02 11:35:59 -07:00
Martin Panter
e514093a2f
Issue #27125 : Merge typo fixes from 3.5
2016-05-30 05:24:49 +00:00
Martin Panter
a90a4a9651
Issue #27125 : Remove duplicated words from documentation and comments
2016-05-30 04:04:50 +00:00
Martin Panter
4dd27f0adc
Issue #25533 : Merge frozen module docs from 3.5
2016-05-15 00:41:40 +00:00
Martin Panter
f47a400347
Issue #25533 : Update documentation regarding the frozen modules table
...
* "ctypes" documentation was using Python 2 bytes-str equivalence.
* PyImport_FrozenModules is a pointer to const as of Python 3.4
2016-05-15 00:13:04 +00:00
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