Larry Hastings
faf91e75ab
Issue #14705 : Add 'p' format character to PyArg_ParseTuple* for bool support.
14 years ago
Georg Brandl
f4095837a7
Fix location of versionaddeds and empty lines.
14 years ago
Martin v. Löwis
aa2efcb0bc
Issue #14098 : New functions PyErr_GetExcInfo and PyErr_SetExcInfo.
Patch by Stefan Behnel.
14 years ago
Brian Curtin
09b86d1196
Fix #14600 . Correct reference handling and naming of ImportError convenience function
14 years ago
Brian Curtin
bded894499
Add versionadded tags to newly added ImportError convenience functions.
14 years ago
Brian Curtin
bd43974037
Add documentation for the new PyErr_SetFromImport* functions
14 years ago
Victor Stinner
0db176f8f6
Issue #14386 : Expose the dict_proxy internal type as types.MappingProxyType
14 years ago
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.
14 years ago
Stefan Krah
abd887d690
Issue #14181 : Improve clarity in the documentation for the multi-purpose
Py_buffer.obj field.
14 years ago
Stefan Krah
95b1ba6388
Add PyMemoryView_FromMemory() to whatsnew/3.3.
14 years ago
Eli Bendersky
49ac6f4492
Some corrections for the Doc/extending documentation. Closes #14129
14 years ago
Nick Coghlan
ab7bf2143e
Close issue #6210 : Implement PEP 409
14 years ago
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.
14 years ago
Benjamin Peterson
43844351c3
write versionadded
14 years ago
Benjamin Peterson
8eb1269c34
add generic implementation of a __dict__ descriptor for C types
14 years ago
Antoine Pitrou
04707c032e
Fix error handling in examples of C API use.
14 years ago
Meador Inge
a3443d985e
Issue #12949 : Document the kwonlyargcount argument for the PyCode_New C API function.
14 years ago
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.
14 years ago
Sandro Tosi
645a0dd6f7
Py_SetPythonHome() can be called before Py_Initialize(); thanks to Cody Smith from docs@
14 years ago
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.
14 years ago
Victor Stinner
a94a0e92b8
Issue #13522 : Fix _Py_co_pow() documentation
Patch written by Arnaud Calmettes.
14 years ago
Antoine Pitrou
07b1c877b2
Issue #13522 : document error return values of some float and complex C API functions.
14 years ago
Benjamin Peterson
b2bf01d824
use full unicode mappings for upper/lower/title case ( #12736 )
Also broaden the category of characters that count as lowercase/uppercase.
14 years ago
Victor Stinner
606e19dda3
Fix PyUnicode_Fill() doc: return type is Py_ssize_t, not int
14 years ago
Victor Stinner
3fe553160c
Add a new PyUnicode_Fill() function
It is faster than the unicode_fill() function which was implemented in
formatter_unicode.c.
14 years ago
Victor Stinner
b99bb20ae4
Issue #13522 : Fix _Py_co_pow() documentation
Patch written by Arnaud Calmettes.
14 years ago
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
14 years ago
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.
14 years ago
Antoine Pitrou
093ce9cd8c
Issue #6695 : Full garbage collection runs now clear the freelist of set objects.
Initial patch by Matthias Troffaes.
14 years ago
Victor Stinner
bf6e560d0c
Make PyUnicode_Copy() private => _PyUnicode_Copy()
Undocument the function.
Make also decode_utf8_errors() as private (static).
14 years ago
Victor Stinner
b6821013df
Document PyUnicode_Copy() and PyUnicode_EncodeCodePage()
14 years ago
Victor Stinner
3ba82aa765
c-api: Replace PyUnicodeObject* by PyObject* in "U" format doc
14 years ago
Antoine Pitrou
86a36b500a
PEP 3155 / issue #13448 : Qualified name for classes and functions.
14 years ago
Eli Bendersky
5a53f368e6
fix some typos in Doc/c-api/memoryview.rst
14 years ago
Victor Stinner
b4938aaf15
Document PyUnicode_WCHAR_KIND
14 years ago
Antoine Pitrou
9a812cbc89
Issue #13389 : Full garbage collection passes now clear the freelists for
list and dict objects. They already cleared other freelists in the
interpreter.
14 years ago
Ezio Melotti
e130a52d8a
Remove duplication.
15 years ago
Antoine Pitrou
57735a0d6a
Add missing prefixes
15 years ago
Antoine Pitrou
b965b3938a
Elaborate on representations and canonical/legacy unicode objects
15 years ago
Antoine Pitrou
e6b99a1832
Move deprecated functions at the end of their respective sections.
15 years ago
Antoine Pitrou
23a580fd78
Update index entries
15 years ago
Antoine Pitrou
9a4a342b78
Update the C-API docs for exception types
15 years ago
Mark Dickinson
f1ab47ebc4
Issue #13145 . Fix incorrect documentation for PyNumber_ToBase. Thanks Sven Marnach.
15 years ago
Martin v. Löwis
2da16e61f5
Fix indentation.
15 years ago
Martin v. Löwis
c47adb04b3
Change PyUnicode_KIND to 1,2,4. Drop _KIND_SIZE and _CHARACTER_SIZE.
15 years ago
Georg Brandl
db6c7f5c33
Update C API docs for PEP 393.
15 years ago
Georg Brandl
ee12f4429c
Add versionadded directive to new API function.
15 years ago
Martin v. Löwis
d63a3b8beb
Implement PEP 393.
15 years ago
Éric Araujo
37b5f9eebc
Fix some misuses of Sphinx roles and one typo
15 years ago
Ezio Melotti
8c9375bb59
#10542 : Add 4 macros to work with surrogates: Py_UNICODE_IS_SURROGATE, Py_UNICODE_IS_HIGH_SURROGATE, Py_UNICODE_IS_LOW_SURROGATE, Py_UNICODE_JOIN_SURROGATES.
15 years ago