Jeroen Demeyer
9e3e06e582
bpo-36974: document PEP 590 (GH-13450)
2019-06-03 01:43:13 +02:00
Antoine Pitrou
ada319bb6d
bpo-32388: Remove cross-version binary compatibility requirement in tp_flags (GH-4944)
...
It is now allowed to add new fields at the end of the PyTypeObject struct without having to allocate a dedicated compatibility flag in tp_flags.
This will reduce the risk of running out of bits in the 32-bit tp_flags value.
2019-05-29 22:12:38 +02:00
Jeroen Demeyer
eb65e2443a
bpo-36922: implement PEP-590 Py_TPFLAGS_METHOD_DESCRIPTOR (GH-13338)
...
Co-authored-by: Mark Shannon <mark@hotpy.org>
2019-05-28 14:42:53 +02:00
Petr Viktorin
f1e17e9f97
bpo-34626: Document creating heap types from the C-API (GH-9154)
...
bpo-34626: Document creating heap types from the C-API
Add missing descriptions of PEP384's PyType_Spec and PyType_Slot,
along with some introductory prose.
2019-05-24 11:19:42 +02:00
Stéphane Wirtel
cbb6484573
Doc: Replace the deprecated highlightlang directive by highlight. ( #13377 )
...
highlightlang is deprecated since April 2018 in Sphinx.
See https://github.com/sphinx-doc/sphinx/pull/4845
2019-05-17 15:25:34 +05:30
Andre Delfino
f4efa312d1
Correct "inplace" with "in-place" (GH-10480)
2019-04-08 18:14:43 +09:00
Stéphane Wirtel
7c4fcb6b05
Add the meaning of the returned value of PyTypeObject.tp_init (GH-12325)
2019-03-15 09:18:36 -07:00
Eric Snow
9e7c92193c
bpo-17045: Improve C-API doc for PyTypeObject. (gh-7413)
...
The existing doc had a number of info gaps and was a little hard to use. This patch provides several quick-reference tables as well as examples.
2018-06-14 15:46:35 -06:00
Serhiy Storchaka
f5b1183610
bpo-5945: Improve mappings and sequences C API docs. (GH-7029)
2018-05-22 11:02:44 +03:00
stratakis
e8b1965639
bpo-23699: Use a macro to reduce boilerplate code in rich comparison functions (GH-793)
2017-11-02 20:32:54 +10:00
Michael Seifert
da67e0d644
bpo-29916: Include PyGetSetDef in C API extension documentation. ( #831 )
2017-09-15 19:25:27 +03:00
Martin Panter
b5e3959e5f
Issue #28771 : Merge C API doc fix from 3.6
2016-12-10 05:57:49 +00:00
Martin Panter
7a44783b42
Issue #28771 : Update tp_get/setattr signature documentation
2016-12-10 05:56:13 +00:00
Serhiy Storchaka
007d7ff73f
Issue #28761 : The fields name and doc of structures PyMemberDef, PyGetSetDef,
...
PyStructSequence_Field, PyStructSequence_Desc, and wrapperbase are now of
type "const char *" rather of "char *".
2016-11-22 07:58:08 +02:00
Serhiy Storchaka
1ecf7d204d
Issue #28496 : Mark up constants 0, 1 and -1 that denote return values or
...
special input values as literal text.
2016-10-27 21:41:19 +03:00
Serhiy Storchaka
de0574bdab
Issue #18287 : PyType_Ready() now checks that tp_name is not NULL.
...
Original patch by Niklas Koep.
2016-10-07 23:24:35 +03:00
Martin Panter
bae5d81f5d
Issue #24314 : Fix doc links for general attributes like __name__, __dict__
2016-06-18 03:57:31 +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
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
Yury Selivanov
bce294b993
docs.capi: Fix tp_as_async doc
2015-06-23 11:46:09 -04:00
Yury Selivanov
6ef059097c
Issue 24017: Drop getawaitablefunc and friends in favor of unaryfunc.
2015-05-28 11:21:31 -04:00
Yury Selivanov
a18cad543f
Issue 24180: Fixes by Berker Peksag.
2015-05-21 17:02:31 -04:00
Yury Selivanov
f3e40fac10
Issue 24180: Documentation for PEP 492 changes.
2015-05-21 11:50:30 -04:00
Georg Brandl
31e34fe7a3
merge with 3.4
2014-10-05 16:38:25 +02:00
Georg Brandl
340c749a3a
Closes #19477 : remove outdated documentation of tp_print type object slot.
2014-10-05 16:38:02 +02:00
Andrew Svetlov
a6237d822a
Merge 3.4
2014-07-03 16:07:57 +03:00
Andrew Svetlov
0d50af45b6
Update docs about tp_richcompare
2014-07-03 16:07:17 +03:00
Antoine Pitrou
63aeb71909
Issue #9307 : document the various Py_TPFLAGS_*_SUBCLASS flags. Patch by Yury V. Zaytsev.
2014-04-29 01:39:26 +02:00
Antoine Pitrou
f9f54a2f5f
Issue #9307 : document the various Py_TPFLAGS_*_SUBCLASS flags. Patch by Yury V. Zaytsev.
2014-04-29 01:39:03 +02:00
Benjamin Peterson
d51374ed78
PEP 465: a dedicated infix operator for matrix multiplication ( closes #21176 )
2014-04-09 23:55:56 -04:00
Benjamin Peterson
f0f7844f38
the name of the slot of nb_multiply not nb_mul
2014-04-08 10:44:30 -04:00
Larry Hastings
3732ed2414
Merge in all documentation changes since branching 3.4.0rc1.
2014-03-15 21:13:56 -07:00
Serhiy Storchaka
d51f42372b
Issue 19195: Improved cross-references in C API documentation.
2013-10-09 13:26:57 +03:00
Serhiy Storchaka
0b68a2d675
Issue 19195: Improved cross-references in C API documentation.
2013-10-09 13:26:17 +03:00
Serhiy Storchaka
bbbf191707
Issue #18743 : Fix references to non-existant "StringIO" module.
2013-08-17 00:11:54 +03:00
Serhiy Storchaka
e79be877df
Issue #18743 : Fix references to non-existant "StringIO" module.
2013-08-17 00:09:55 +03:00
Antoine Pitrou
a68cbfa556
Issue #18589 : fix hyperlinking of type slots (tp_*)
2013-08-01 21:14:43 +02:00
Antoine Pitrou
39668f57f4
Issue #18589 : fix hyperlinking of type slots (tp_*)
2013-08-01 21:12:45 +02:00
Antoine Pitrou
796564c27b
Issue #18112 : PEP 442 implementation (safe object finalization).
2013-07-30 19:59:21 +02:00
Stefan Krah
abd887d690
Issue #14181 : Improve clarity in the documentation for the multi-purpose
...
Py_buffer.obj field.
2012-03-06 14:55:06 +01:00
Stefan Krah
9a2d99e28a
- Issue #10181 : New memoryview implementation fixes multiple ownership
...
and lifetime issues of dynamically allocated Py_buffer members (#9990 )
as well as crashes (#8305 , #7433 ). Many new features have been added
(See whatsnew/3.3), and the documentation has been updated extensively.
The ndarray test object from _testbuffer.c implements all aspects of
PEP-3118, so further development towards the complete implementation
of the PEP can proceed in a test-driven manner.
Thanks to Nick Coghlan, Antoine Pitrou and Pauli Virtanen for review
and many ideas.
- Issue #12834 : Fix incorrect results of memoryview.tobytes() for
non-contiguous arrays.
- Issue #5231 : Introduce memoryview.cast() method that allows changing
format and shape without making a copy of the underlying memory.
2012-02-25 12:24:21 +01:00
Benjamin Peterson
77c4fd01dd
note mutating tp_dict is bad ( closes #12719 )
2011-08-09 16:07:01 -05:00
Antoine Pitrou
8abc93580d
Better explain the buffer interface (hopefully)
2010-12-12 19:59:47 +00:00
Georg Brandl
fbb56ed8fb
Remove visible XXX comments.
2010-12-06 22:02:48 +00:00
Benjamin Peterson
8f67d0893f
make hashes always the size of pointers; introduce Py_hash_t #9778
2010-10-17 20:54:53 +00:00
Georg Brandl
60203b41b0
Migrate to Sphinx 1.0 C language constructs.
2010-10-06 10:11:56 +00:00
Georg Brandl
93dc9eb2a3
Merged revisions 78760,78771-78773,78802,78922,78952 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r78760 | georg.brandl | 2010-03-07 16:23:59 +0100 (So, 07 Mär 2010) | 1 line
#5341 : more built-in vs builtin fixes.
........
r78771 | georg.brandl | 2010-03-07 21:58:31 +0100 (So, 07 Mär 2010) | 1 line
#8085 : The function is called PyObject_NewVar, not PyObject_VarNew.
........
r78772 | georg.brandl | 2010-03-07 22:12:28 +0100 (So, 07 Mär 2010) | 1 line
#8039 : document conditional expressions better, giving them their own section.
........
r78773 | georg.brandl | 2010-03-07 22:32:06 +0100 (So, 07 Mär 2010) | 1 line
#8044 : document Py_{Enter,Leave}RecursiveCall functions.
........
r78802 | georg.brandl | 2010-03-08 17:28:40 +0100 (Mo, 08 Mär 2010) | 1 line
Fix typo.
........
r78922 | georg.brandl | 2010-03-13 14:41:58 +0100 (Sa, 13 Mär 2010) | 1 line
Update for new download location.
........
r78952 | georg.brandl | 2010-03-14 10:55:08 +0100 (So, 14 Mär 2010) | 1 line
#8137 : add iso-8859-16 to the standard encodings table.
........
2010-03-14 10:56:14 +00:00
Georg Brandl
27277d9d5b
#7577 : fix signature info for getbufferproc.
2009-12-28 07:59:20 +00:00
Georg Brandl
11b6a64ea9
#6754 : remove old struct member nb_inplace_divide.
2009-09-01 08:02:03 +00:00