Serhiy Storchaka
99a196fcfc
Issue 19195: Improved cross-references in C API documentation.
2013-10-09 13:25:21 +03:00
Benjamin Peterson
29f0dc5f77
dict is also allowed ( closes #19163 )
2013-10-04 10:55:15 -04:00
Antoine Pitrou
59db34e4d5
Add a "skull and crossbones" to Py_AddPendingCall.
2013-09-30 21:35:44 +02:00
Serhiy Storchaka
6d5bd5258c
Issue #18743 : Improved cross-references to the StringIO class.
2013-08-29 11:44:44 +03:00
Antoine Pitrou
92fae55bc9
Issue #18589 : fix hyperlinking of type slots (tp_*)
2013-08-01 21:17:24 +02:00
Georg Brandl
10bb21e4f9
Fix refcount leak in the reference counting example section (!).
2013-04-14 11:45:16 +02:00
Georg Brandl
ba58cbe754
Closes #13638 : document PyErr_SetFromErrnoWithFilenameObject,
...
PyErr_SetFromWindowsErrWithFilenameObject, and
PyErr_SetExcFromWindowsErrWithFilenameObject.
Note that PyErr_SetExcFromWindowsErrWithFilenameObjectAndSomeOtherParametersSoThatTheNameGetsSoLongThatNobodyIsEverGonnaUseThisStrangeFunctionForAnything is still undocumented.
2013-04-14 11:12:16 +02:00
Georg Brandl
75da35747e
Backport rev. 3ae74b361f53 to 2.7 branch.
2013-03-28 13:35:18 +01:00
Georg Brandl
44ea77bd81
Closes #4159 : add LaTeX tabular column specifications to tables that otherwise are cut off or have overlapping text.
2013-03-28 13:28:44 +01:00
Gregory P. Smith
bcd2aa6d06
cleanup references to PyString_ APIs from 2.x in the 3.3 docs.
2013-03-22 13:49:26 -07:00
Gregory P. Smith
4b52ae8f97
Clean up references to the no longer existing PyString_ APIs in our docs.
2013-03-22 13:43:30 -07:00
Georg Brandl
1f68a2f27f
Remove row-spanning cell, which the Sphinx text writer does not support.
2013-03-16 08:01:49 +01:00
Terry Jan Reedy
caeb6bea9b
Merge with 3.2: Issue #17047 : removed doubled words in Doc/*,
...
Mac/*, and Tool/* found by Serhiy Storchaka and Matthew Barnett
2013-03-11 17:26:33 -04:00
Terry Jan Reedy
65e69b3718
Issue #17047 : removed doubled words in Doc/*, Mac/*, and Tool/*
...
found by Serhiy Storchaka and Matthew Barnett
2013-03-11 17:23:46 -04:00
Terry Jan Reedy
6bf9b85859
Issue #17047 : removed doubled words in Doc/*, Mac/*, and Tool/*
...
found by Serhiy Storchaka and Matthew Barnett
2013-03-11 17:09:58 -04:00
Nick Coghlan
7d82c8621b
Close #15465 : Document C API version macros
...
Mostly moving the existing macro docs over from the standard
library docs to the C API docs where they belong.
Patch by Kushal Das.
2013-03-07 23:14:44 +10:00
Ezio Melotti
32b0f02034
#17363 : fix arguments in PyState_AddModule and PyState_RemoveModule docs.
2013-03-06 02:57:25 +02:00
Andrew Svetlov
f4c3a187d5
Remove redundant sentence from c-api docs (issue #16323 )
2012-11-29 15:23:15 +02:00
Andrew Svetlov
0fe030bb03
Issue #16323 : Fix wrong C API documentation for locale encoding.
...
Patch by Berker Peksag.
2012-11-28 12:33:58 +02:00
Chris Jerdonek
bb4e941c6d
Add a str class entry to the "Text Sequence Type" section (issue #16209 ).
...
This commit also moves the documentation for the str built-in function to
the new class entry. Links to :class:`str` now go to the class entry with
the string methods immediately afterwards.
2012-11-28 01:38:40 -08:00
Chris Jerdonek
5fae0e5854
Improve str() and object.__str__() documentation (issue #13538 ).
2012-11-20 17:45:51 -08:00
Andrew Svetlov
f9c7c3641b
Merge: Remove already dropped function PySys_GetFile from documentation.
...
Thanks to Daniel Müllner from docs@
2012-10-31 12:03:18 +02:00
Andrew Svetlov
4deb16dd75
Remove already dropped function PySys_GetFile from documentation.
...
Thanks to Daniel Müllner from docs@
2012-10-31 12:02:56 +02:00
Chris Jerdonek
d285029ee8
Merge from 3.2: remove unneeded "Release" and "Date" markers from index pages.
2012-10-28 11:10:24 -07:00
Chris Jerdonek
8b7f9f581d
Remove unneeded "Release" and "Date" markers from doc index pages.
2012-10-28 11:08:26 -07:00
Ezio Melotti
e7f90375b1
#16127 : remove outdated references to narrow builds. Patch by Serhiy Storchaka.
2012-10-05 03:33:31 +03:00
Ezio Melotti
7598e18bf2
Fix rst markup.
2012-09-20 08:33:53 +03:00
Antoine Pitrou
b79be95dac
Issue #15444 : Use proper spelling for non-ASCII contributor names.
...
Patch by Serhiy Storchaka.
2012-08-11 16:54:27 +02:00
Antoine Pitrou
fbd4f80979
Issue #15444 : Use proper spelling for non-ASCII contributor names.
...
Patch by Serhiy Storchaka.
2012-08-11 16:51:50 +02:00
Brett Cannon
522267e784
Issue #15610 : The PyImport_ImportModuleEx macro now calls
...
PyImport_ImportModuleLevel() with a 'level' of 0 instead of -1 as the
latter is no longer a valid value.
Also added a versionchanged note for PyImport_ImportModuleLevel() just
in case people don't make the connection between changes to
__import__() and this C function.
2012-08-10 18:55:08 -04:00
Andrew Svetlov
7dac74a0ca
fix docs for c-api memory functions
2012-08-09 21:29:16 +03:00
Andrew Svetlov
7dbee38564
fix docs for c-api memory functions
2012-08-09 21:26:34 +03:00
Chris Jerdonek
17fc44c9b3
Improve str() and object.__str__() documentation (issue #13538 ).
2012-11-20 17:31:02 -08:00
Chris Jerdonek
64c0b2ca3d
Backport from 3.2: remove "Release" and "Date" markers from index pages.
2012-10-28 11:16:36 -07:00
Andrew Svetlov
774c8a39dc
fix docs for c-api memory functions
2012-08-09 21:32:11 +03:00
Brett Cannon
a6473f9cfd
Issues #15169 , #14599 : Make PyImport_ExecCodeModuleWithPathnames() use
...
Lib/imp.py for imp.source_from_cache() instead of its own C version.
Also change PyImport_ExecCodeModuleObject() to not infer the source
path from the bytecode path like
PyImport_ExecCodeModuleWithPathnames() does. This makes the function
less magical.
This also has the side-effect of removing all uses of MAXPATHLEN in
Python/import.c which can cause failures on really long filenames.
2012-07-13 13:57:03 -04:00
Brett Cannon
77b2abd094
Issue #15167 (as part of #13959 ): imp.get_magic() is no implemented in
...
Lib/imp.py.
2012-07-09 16:09:00 -04:00
Brett Cannon
3adc7b75a5
Issue #15242 : Have PyImport_GetMagicTag() return a const char *
...
defined in sysmodule.c instead of straight out of a Unicode object.
Thanks to Amaury Forgeot d'Arc for noticing the bug and Eric Snow for
writing the patch.
2012-07-09 14:22:12 -04:00
Georg Brandl
61063cca6a
Fix a couple of versionadded/versionchanged related markup errors.
2012-06-24 22:48:30 +02:00
Martin v. Löwis
788306a9ab
Fix whitespace.
2012-06-23 23:21:48 +02:00
Martin v. Löwis
9c56409d33
Issue #15146 : Add PyType_FromSpecWithBases. Patch by Robin Schreiber.
2012-06-23 23:20:45 +02:00
Mark Dickinson
b8dc3ab08b
Issue #12965 : More PyLong_As* clarifications. Thanks Stefan Krah.
2012-06-23 12:12:52 +01:00
Mark Dickinson
f0acfeeccf
Issue #12965 : Clean up C-API docs for PyLong_AsLongLong(AndOverflow); clarify that __int__ will be called for non-PyLongs
2012-06-23 11:14:22 +01:00
Mark Dickinson
c9aa8425c4
Issue #12965 : Merge from 3.2.
2012-06-23 12:13:15 +01:00
Mark Dickinson
93648f033b
Issue #12965 : Merge from 3.2.
2012-06-23 11:14:55 +01:00
Mark Dickinson
766e62266e
Issue #12965 : Merge from 3.2
2012-06-23 10:49:36 +01:00
Mark Dickinson
0a22924d52
Issue #12965 : Clean up C-API docs for PyLong_AsLong(AndOverflow); clarify that __int__ will be called for non-PyLongs
2012-06-23 10:49:12 +01:00
Martin v. Löwis
466bfff9fb
Whitespace normalization
2012-06-22 12:49:59 +02:00
Martin v. Löwis
c06917bf12
Add Stable ABI documentation.
2012-06-22 12:49:08 +02:00
Martin v. Löwis
7800f75827
Issue #15042 : Add PyState_AddModule and PyState_RemoveModule.
...
Add version guard for Py_LIMITED_API additions.
Issue #15081 : Document PyState_FindModule.
Patch by Robin Schreiber.
2012-06-22 12:20:55 +02:00
Eli Bendersky
0813168e94
Issue #14090 : fix some minor C API problems in default branch (3.3)
2012-06-03 08:07:47 +03:00
Eli Bendersky
11cfea9295
Issue #14424 : Document PyType_GenericAlloc, and fix the documentation of PyType_GenericNew
2012-06-03 06:47:53 +03:00
Antoine Pitrou
ea3eb88bca
Issue #9260 : A finer-grained import lock.
...
Most of the import sequence now uses per-module locks rather than the
global import lock, eliminating well-known issues with threads and imports.
2012-05-17 18:55:59 +02:00
Benjamin Peterson
d5a1c44455
PEP 415: Implement suppression of __context__ display with an exception attribute
...
This replaces the original PEP 409 implementation. See #14133 .
2012-05-14 22:09:31 -07:00
Larry Hastings
faf91e75ab
Issue #14705 : Add 'p' format character to PyArg_ParseTuple* for bool support.
2012-05-05 16:54:29 -07:00
Ezio Melotti
510ff54324
Use Python 3 instead of 3.0.
2012-05-03 19:21:40 +03:00
Georg Brandl
f4095837a7
Fix location of versionaddeds and empty lines.
2012-04-24 19:16:24 +02:00
Martin v. Löwis
aa2efcb0bc
Issue #14098 : New functions PyErr_GetExcInfo and PyErr_SetExcInfo.
...
Patch by Stefan Behnel.
2012-04-19 14:33:43 +02:00
Brian Curtin
09b86d1196
Fix #14600 . Correct reference handling and naming of ImportError convenience function
2012-04-17 16:57:09 -05:00
Brian Curtin
bded894499
Add versionadded tags to newly added ImportError convenience functions.
2012-04-16 18:14:09 -05:00
Brian Curtin
bd43974037
Add documentation for the new PyErr_SetFromImport* functions
2012-04-16 15:14:36 -05:00
Victor Stinner
0db176f8f6
Issue #14386 : Expose the dict_proxy internal type as types.MappingProxyType
2012-04-16 00:16:30 +02:00
Larry Hastings
83a9f48699
Issue #14328 : Add keyword-only parameters to PyArg_ParseTupleAndKeywords.
...
They're optional-only for now (unlike in pure Python) but that's all
I needed. The syntax can easily be relaxed if we want to support
required keyword-only arguments for extension types in the future.
2012-03-20 20:06:16 +00: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
95b1ba6388
Add PyMemoryView_FromMemory() to whatsnew/3.3.
2012-02-29 17:27:21 +01:00
Eli Bendersky
49ac6f4492
Some corrections for the Doc/extending documentation. Closes #14129
2012-02-27 19:18:35 +02:00
Nick Coghlan
ab7bf2143e
Close issue #6210 : Implement PEP 409
2012-02-26 17:49:52 +10: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
43844351c3
write versionadded
2012-02-20 08:48:25 -05:00
Benjamin Peterson
8eb1269c34
add generic implementation of a __dict__ descriptor for C types
2012-02-19 19:59:10 -05:00
Antoine Pitrou
b46d4b770d
Fix error handling in examples of C API use.
2012-01-27 14:08:04 +01:00
Antoine Pitrou
04707c032e
Fix error handling in examples of C API use.
2012-01-27 14:07:29 +01:00
Meador Inge
2396c0a28f
Issue #12949 : Document the kwonlyargcount argument for the PyCode_New C API function.
2012-01-19 22:24:55 -06:00
Meador Inge
a3443d985e
Issue #12949 : Document the kwonlyargcount argument for the PyCode_New C API function.
2012-01-19 22:06:31 -06:00
Amaury Forgeot d'Arc
5e8260b09c
Issue #13727 : Add 3 macros to access PyDateTime_Delta members:
...
PyDateTime_DELTA_GET_DAYS, PyDateTime_DELTA_GET_SECONDS,
PyDateTime_DELTA_GET_MICROSECONDS.
Please use them instead of directly accessing PyDateTime_Delta struct members.
2012-01-17 21:31:50 +01:00
Sandro Tosi
9a5606886c
how could I have missed :cmember: in import.rst?
2012-01-14 16:51:16 +01:00
Sandro Tosi
98ed08f24e
update to new C roles and directives
2012-01-14 16:42:02 +01:00
Sandro Tosi
645a0dd6f7
Py_SetPythonHome() can be called before Py_Initialize(); thanks to Cody Smith from docs@
2012-01-07 18:34:07 +01:00
Sandro Tosi
e5f93ef268
Py_SetPythonHome() can be called before Py_Initialize(); thanks to Cody Smith from docs@
2012-01-07 18:32:06 +01:00
Sandro Tosi
8448dfa17d
Issue #13302 : backport part of 3ed28f28466f
2012-01-01 23:41:44 +01:00
Ezio Melotti
2d679a42bf
s/:c:type:/:ctype:/g
2011-12-19 07:17:08 +02:00
Victor Stinner
28a545e234
Issue #13617 : Document that the result PyUnicode_AsUnicode() and
...
PyUnicode_AsWideChar() may contain embedded null characters.
Patch written by Arnaud Calmettes.
2011-12-18 19:39:53 +01:00
Victor Stinner
6fbd525ef5
Issue #13617 : Document that the result of the conversion of a Unicode object to
...
wchar*, Py_UNICODE* and bytes may contain embedded null characters/bytes.
Patch written by Arnaud Calmettes.
2011-12-18 19:22:31 +01:00
Victor Stinner
a94a0e92b8
Issue #13522 : Fix _Py_co_pow() documentation
...
Patch written by Arnaud Calmettes.
2011-12-18 02:56:18 +01:00
Victor Stinner
cc1a0865f1
Issue #13522 : Fix _Py_co_pow() documentation
...
Patch written by Arnaud Calmettes.
2011-12-18 02:56:18 +01:00
Antoine Pitrou
07b1c877b2
Issue #13522 : document error return values of some float and complex C API functions.
2011-12-18 01:25:27 +01:00
Antoine Pitrou
c9e180043c
Issue #13522 : document error return values of some float and complex C API functions.
2011-12-18 01:25:27 +01:00
Benjamin Peterson
b2bf01d824
use full unicode mappings for upper/lower/title case ( #12736 )
...
Also broaden the category of characters that count as lowercase/uppercase.
2012-01-11 18:17:06 -05:00
Sandro Tosi
ac8f78a1a9
merge with 3.2
2012-01-07 18:34:24 +01:00
Victor Stinner
606e19dda3
Fix PyUnicode_Fill() doc: return type is Py_ssize_t, not int
2012-01-04 03:59:16 +01:00
Victor Stinner
3fe553160c
Add a new PyUnicode_Fill() function
...
It is faster than the unicode_fill() function which was implemented in
formatter_unicode.c.
2012-01-04 00:33:50 +01:00
Victor Stinner
0d81c1357d
Issue #13617 : Document that the result of the conversion of a Unicode object to
...
wchar*, Py_UNICODE* and bytes may contain embedded null characters/bytes.
Patch written by Arnaud Calmettes.
2011-12-18 19:30:55 +01:00
Victor Stinner
b99bb20ae4
Issue #13522 : Fix _Py_co_pow() documentation
...
Patch written by Arnaud Calmettes.
2011-12-18 02:56:18 +01:00
Antoine Pitrou
b511aca596
Issue #13522 : document error return values of some float and complex C API functions.
2011-12-18 01:26:05 +01:00
Victor Stinner
f2ea71fcc8
Issue #13560 : Add PyUnicode_EncodeLocale()
...
* Use PyUnicode_EncodeLocale() in time.strftime() if wcsftime() is not
available
* Document my last changes in Misc/NEWS
2011-12-17 04:13:41 +01:00
Victor Stinner
af02e1c85a
Add PyUnicode_DecodeLocaleAndSize() and PyUnicode_DecodeLocale()
...
* PyUnicode_DecodeLocaleAndSize() and PyUnicode_DecodeLocale() decode a string
from the current locale encoding
* _Py_char2wchar() writes an "error code" in the size argument to indicate
if the function failed because of memory allocation failure or because of a
decoding error. The function doesn't write the error message directly to
stderr.
* Fix time.strftime() (if wcsftime() is missing): decode strftime() result
from the current locale encoding, not from the filesystem encoding.
2011-12-16 23:56:01 +01:00
Antoine Pitrou
093ce9cd8c
Issue #6695 : Full garbage collection runs now clear the freelist of set objects.
...
Initial patch by Matthias Troffaes.
2011-12-16 11:24:27 +01:00
Victor Stinner
bf6e560d0c
Make PyUnicode_Copy() private => _PyUnicode_Copy()
...
Undocument the function.
Make also decode_utf8_errors() as private (static).
2011-12-12 01:53:47 +01:00
Victor Stinner
b6821013df
Document PyUnicode_Copy() and PyUnicode_EncodeCodePage()
2011-12-09 00:18:11 +01:00
Victor Stinner
3ba82aa765
c-api: Replace PyUnicodeObject* by PyObject* in "U" format doc
2011-12-01 02:52:55 +01:00