summaryrefslogtreecommitdiffstats
path: root/Objects
Commit message (Collapse)AuthorAgeFilesLines
* Issue 9856: Change object.__format__ with a non-empty format string from a ↵Eric V. Smith2011-03-121-13/+13
| | | | PendingDeprecationWarning to a DeprecationWarning.
* Issue #9935: Speed up pickling of instances of user-defined classes.Antoine Pitrou2011-03-111-30/+48
|
* avoid casting with this nice macroBenjamin Peterson2011-03-061-2/+1
|
* Issue #3080: Add PyModule_NewObject() functionVictor Stinner2011-03-041-7/+16
|
* Issue #11386: Fixed the exception thrown by bytearray.pop() for empty bytearraysEli Bendersky2011-03-041-2/+2
|
* Issue #10516: added copy() and clear() methods to bytearrays as wellEli Bendersky2011-03-031-0/+26
|
* #11335: Fix memory leak when a sort key function throws an exceptionDaniel Stutzbach2011-03-021-0/+2
|
* Fix my previous commit (r88709) for str.encode(errors=...)Victor Stinner2011-03-021-5/+10
|
* Issue #8923: cache str.encode() resultVictor Stinner2011-03-021-9/+16
| | | | | | When a string is encoded to UTF-8 in strict mode, the result is cached into the object. Examples: str.encode(), str.encode('utf-8'), PyUnicode_AsUTF8String() and PyUnicode_AsEncodedString(unicode, "utf-8", NULL).
* Remove useless argument of _PyUnicode_AsDefaultEncodedString()Victor Stinner2011-03-022-6/+3
|
* Issue #10831: PyUnicode_FromFormat() supports %li, %lli and %zi formatsVictor Stinner2011-03-021-9/+5
|
* Fix my previous commit (r88702): initialize size_tflag in parse_format_flags()Victor Stinner2011-03-021-0/+1
|
* Issue #10829: Refactor PyUnicode_FromFormat()Victor Stinner2011-03-011-69/+82
| | | | | * Use the same function to parse the format string in the 3 steps * Fix crashs on invalid format strings
* Issue #11246: Fix PyUnicode_FromFormat("%V")Victor Stinner2011-03-011-7/+19
| | | | | Decode the byte string from UTF-8 (with replace error handler) instead of ISO-8859-1 (in strict mode). Patch written by Ray Allen.
* PEP 7 conformance changes (whitespace only).Alexander Belopolsky2011-02-261-284/+350
|
* Issue #11303: Added shortcuts for utf8 and latin1 encodings.Alexander Belopolsky2011-02-251-4/+10
| | | | | Documented the list of optimized encodings as CPython implementation detail.
* Issue #10516: adding list.clear() and list.copy() methodsEli Bendersky2011-02-251-1/+20
|
* Issue #11286: Raise a ValueError from calling PyMemoryView_FromBuffer withAntoine Pitrou2011-02-241-0/+5
| | | | a buffer struct having a NULL data pointer.
* Issue #3080: Add PyModule_GetNameObject()Victor Stinner2011-02-231-14/+29
| | | | | repr(module) uses %R to format module name and filenames, instead of '%s' and '%U', so surrogates from undecodable bytes in a filename (PEP 383) are escaped.
* Issue #8914: fix various warnings from the Clang static analyzer v254.Brett Cannon2011-02-228-21/+22
|
* Fix PyUnicode_FromFormatV("%c") for non-BMP charVictor Stinner2011-02-211-2/+23
| | | | | Issue #10830: Fix PyUnicode_FromFormatV("%c") for non-BMP characters on narrow build.
* Remove bootstrap code of PyUnicode_AsEncodedString()Victor Stinner2011-02-211-15/+0
| | | | | | | | Issue #11187: Remove bootstrap code (use ASCII) of PyUnicode_AsEncodedString(), it was replaced by a better fallback (use the locale encoding) in PyUnicode_EncodeFSDefault(). Prepare also empty sections in NEWS.
* - Check for NULL result in PyType_FromSpec.Martin v. Löwis2011-02-211-0/+2
|
* #11249: in PyType_FromSpec, copy tp_doc slot since it usually will point to ↵Georg Brandl2011-02-191-0/+11
| | | | a static string literal which should not be deallocated together with the type.
* Issue #11134: Add missing fields to typeslots.h.Martin v. Löwis2011-02-111-0/+3
| | | | Reviewed by Georg Brandl.
* Issue #11067: Add PyType_GetFlags, to support PyUnicode_CheckMartin v. Löwis2011-02-051-0/+6
| | | | in the limited ABI
* Issue #11302: missing type check on _string.formatter_field_name_split and ↵Eric Smith2011-01-291-0/+10
| | | | | | _string.formatter_parser caused crash. Originial patch by haypo, reviewed by me, okayed by Georg.
* Issue #10451: memoryview objects could allow to mutate a readable buffer.Antoine Pitrou2011-01-181-3/+0
| | | | Initial patch by Ross Lagerwall.
* remove unneeded assertionBenjamin Peterson2011-01-171-1/+0
|
* correct assertionBenjamin Peterson2011-01-171-1/+1
|
* turn some checks into assertions, since they are implied by the callerBenjamin Peterson2011-01-171-4/+2
| | | | Reviewed by Georg.
* rangeobject.c (compute_slice_indices): Make function static.Matthias Klose2011-01-161-1/+1
|
* plug reference leakBenjamin Peterson2011-01-131-2/+4
|
* use PyErr_SetString instead of PyErr_FormatBenjamin Peterson2011-01-121-2/+2
|
* don't segfault on deleting __abstractmethods__ #10892Benjamin Peterson2011-01-121-2/+11
|
* Issue 10889: Support slicing and indexing of large ranges (no docs changes, ↵Nick Coghlan2011-01-121-67/+306
| | | | since, as far as I know, we never said anywhere that this *didn't* work)
* Issue #8020: Avoid a crash where the small objects allocator would readAntoine Pitrou2011-01-071-6/+22
| | | | | non-Python managed memory while it is being modified by another thread. Patch by Matt Bandy.
* Drop bf_getbuffer/bf_releasebuffer from stable ABI,Martin v. Löwis2011-01-061-3/+3
| | | | see #10181.
* Support comment lines and missing indices in typeslots.h.Martin v. Löwis2011-01-061-1/+6
|
* Remove arbitrary string length limitsVictor Stinner2011-01-051-2/+2
| | | | | PyUnicode_FromFormat() and PyErr_Format() allocates a buffer of the needed size, it is no more a fixed-buffer of 500 bytes.
* Issue #9015, #9611: stdprinter.write() clamps the length to 2^31-1 on WindowsVictor Stinner2011-01-041-2/+8
|
* Issue #9566: use Py_ssize_t instead of intVictor Stinner2011-01-043-6/+7
|
* Removed unneeded #includeAlexander Belopolsky2010-12-221-2/+0
|
* #5587: add a repr to dict_proxy objects. Patch by David Stanek and Daniel ↵Ezio Melotti2010-12-181-1/+7
| | | | Urban.
* #4236: avoid possible Fatal Error when import is called from __del__R. David Murray2010-12-141-2/+3
| | | | Patch by Simon Cross, crasher test code by Martin von Löwis.
* remove (un)transform methodsBenjamin Peterson2010-12-123-181/+1
|
* Reverted accidental commit (from r87159)Alexander Belopolsky2010-12-101-17/+3
|
* Updated UCD version and unicode.org links to Unicode 6.0.0Alexander Belopolsky2010-12-101-3/+17
|
* use the more direct APIBenjamin Peterson2010-12-071-3/+3
|
* return views from dict proxy items/values/keys #10630Benjamin Peterson2010-12-071-3/+3
|