summaryrefslogtreecommitdiffstats
path: root/Objects
Commit message (Collapse)AuthorAgeFilesLines
* #9418: first step of moving private string methods to _string module.Georg Brandl2010-10-142-4/+32
|
* prefer clearing global objects to obscure module.__dict__ bugs #10068Benjamin Peterson2010-10-121-4/+1
|
* Upgrade to Unicode 6.0.0.Martin v. Löwis2010-10-111-702/+804
| | | | | | | | makeunicodedata.py: download all data files from unicode.org, switch to extracting Unihan data from zip file. Read linebreakprops and derivednormalizationprops even for old versions, even though they are not used in delta records. test:unicode.py: U+11000 is now assigned, use U+14000 instead.
* PyUnicode_AsWideCharString() takes a PyObject*, not a PyUnicodeObject*Victor Stinner2010-10-071-3/+3
| | | | | All unicode functions uses PyObject* except PyUnicode_AsWideChar(). Fix the prototype for the new function PyUnicode_AsWideCharString().
* typoBenjamin Peterson2010-10-031-2/+2
|
* Issue #8670: PyUnicode_AsWideChar() and PyUnicode_AsWideCharString() replaceVictor Stinner2010-10-021-22/+105
| | | | | UTF-16 surrogate pairs by single non-BMP characters for 16 bits Py_UNICODE and 32 bits wchar_t (eg. Linux in narrow build).
* Issue #8870: PyUnicode_AsWideCharString() doesn't count the trailing nul ↵Victor Stinner2010-10-021-1/+1
| | | | | | character And write unit tests for PyUnicode_AsWideChar() and PyUnicode_AsWideCharString().
* type.__abstractmethods__ should raise an AttributeError #10006Benjamin Peterson2010-10-021-2/+5
|
* Fix PyUnicode_AsWideCharString(): set *size if size is not NULLVictor Stinner2010-09-291-0/+2
|
* Issue #9630: Redecode filenames when setting the filesystem encodingVictor Stinner2010-09-293-1/+28
| | | | | | | | | | | | | | Redecode the filenames of: - all modules: __file__ and __path__ attributes - all code objects: co_filename attribute - sys.path - sys.meta_path - sys.executable - sys.path_importer_cache (keys) Keep weak references to all code objects until initfsencoding() is called, to be able to redecode co_filename attribute of all code objects.
* Issue #9979: Create function PyUnicode_AsWideCharString().Victor Stinner2010-09-291-14/+48
|
* Issue #9930: Remove an unnecessary type check in wrap_binaryfunc_r;Mark Dickinson2010-09-231-4/+0
| | | | | this was causing reversed method calls like float.__radd__(3.0, 1) to return NotImplemented instead of the expected numeric value.
* Issue #9213: Add index and count methods to range objects, needed toDaniel Stutzbach2010-09-131-49/+132
| | | | meet the API of the collections.Sequence ABC.
* Issue 7994: Make object.__format__() raise a PendingDeprecationWarningEric Smith2010-09-131-3/+20
| | | | | | | | | if the format string is not empty. Manually merge r79596 and r84772 from 2.x. Also, apparently test_format() from test_builtin never made it into 3.x. I've added it as well. It tests the basic format() infrastructure.
* #9210: remove --with-wctype-functions configure option.Amaury Forgeot d'Arc2010-09-122-37/+0
| | | | | | | | The internal unicode database is now always used. (after 5 years: see http://mail.python.org/pipermail/python-dev/2004-December/050193.html )
* use return NULL; it's just as correctBenjamin Peterson2010-09-121-1/+1
|
* Issue #9738, #9836: Fix refleak introduced by r84704Victor Stinner2010-09-121-2/+2
|
* detect non-ascii characters much earlier (plugs ref leak)Benjamin Peterson2010-09-121-7/+7
|
* fix formattingBenjamin Peterson2010-09-111-6/+6
|
* check for NULL tp_as_mapping in PySequence_(Get/Set/Del)Slice #9834Benjamin Peterson2010-09-111-3/+3
|
* Issue #9738: PyUnicode_FromFormat() and PyErr_Format() raise an error onVictor Stinner2010-09-111-1/+9
| | | | | | a non-ASCII byte in the format string. Document also the encoding.
* Issue #9757: memoryview objects get a release() method to release theAntoine Pitrou2010-09-091-10/+75
| | | | | underlying buffer (previously this was only done when deallocating the memoryview), and gain support for the context management protocol.
* Revert the doc change done in r83880. str.replace with negative count value ↵Senthil Kumaran2010-09-081-2/+1
| | | | is not a feature.
* Rename PyUnicode_strdup() to PyUnicode_AsUnicodeCopy()Victor Stinner2010-09-031-1/+1
|
* Reindent.Georg Brandl2010-09-031-2/+2
|
* Issue 8420: Fix obscure set crashers.Raymond Hettinger2010-09-031-10/+20
|
* Issue #9212: Added the missing isdisjoint method to the dict_keys andDaniel Stutzbach2010-09-021-0/+58
| | | | | dict_items views. The method is required by the collections.Set ABC, which the views register as supporting.
* Removed an extraneous semicolonDaniel Stutzbach2010-09-021-1/+1
|
* Create PyUnicode_strdup() functionVictor Stinner2010-09-011-0/+22
|
* Create Py_UNICODE_strcat() functionVictor Stinner2010-09-011-0/+9
|
* Fix a compilation warningAntoine Pitrou2010-09-011-1/+1
|
* Issue #9737: Fix a crash when trying to delete a slice or an item fromAntoine Pitrou2010-09-011-0/+5
| | | | a memoryview object.
* Remove unicode_default_encoding constantVictor Stinner2010-09-011-10/+1
| | | | | Inline its value in PyUnicode_GetDefaultEncoding(). The comment is now outdated (we will not change its value anymore).
* Issue #9549: sys.setdefaultencoding() and PyUnicode_SetDefaultEncoding()Antoine Pitrou2010-09-011-11/+0
| | | | | are now removed, since their effect was inexistent in 3.x (the default encoding is hardcoded to utf-8 and cannot be changed).
* Issue #7415: PyUnicode_FromEncodedObject() now uses the new buffer APIAntoine Pitrou2010-09-011-27/+26
| | | | properly. Patch by Stefan Behnel.
* Issue #3101: Helper functions _add_one_to_C() and _add_one_to_F() becomeAntoine Pitrou2010-09-012-14/+11
| | | | _Py_add_one_to_C() and _Py_add_one_to_F(), respectively.
* Issue #1868: Eliminate subtle timing issues in thread-local objects byAntoine Pitrou2010-08-281-48/+65
| | | | getting rid of the cached copy of thread-local attribute dictionary.
* basicsize and itemsize are Py_ssize_t #9688Benjamin Peterson2010-08-251-2/+2
|
* Issue 8781: On systems a signed 4-byte wchar_t and a 4-byte Py_UNICODE, use ↵Daniel Stutzbach2010-08-241-2/+2
| | | | memcpy to convert between the two (as already done when wchar_t is unsigned)
* reorder and save a comparisonBenjamin Peterson2010-08-231-5/+5
|
* Fix PyUnicode_EncodeFSDefault() indentationVictor Stinner2010-08-181-2/+2
|
* #5127: Even on narrow unicode builds, the C functions that access the UnicodeAmaury Forgeot d'Arc2010-08-182-137/+27
| | | | | | | | | | Database (Py_UNICODE_TOLOWER, Py_UNICODE_ISDECIMAL, and others) now accept and return characters from the full Unicode range (Py_UCS4). The differences from Python code are few: - unicodedata.numeric(), unicodedata.decimal() and unicodedata.digit() now return the correct value for large code points - repr() may consider more characters as printable.
* Issue #9425: Create PyModule_GetFilenameObject() functionVictor Stinner2010-08-171-7/+13
| | | | | | ... to get the filename as a unicode object, instead of a byte string. Function needed to support unencodable filenames. Deprecate PyModule_GetFilename() in favor on the new function.
* Issue #9612: The set object is now 64-bit clean under Windows.Antoine Pitrou2010-08-171-10/+10
|
* Issue #9425: Create Py_UNICODE_strncmp() functionVictor Stinner2010-08-161-0/+17
| | | | | The code is based on strncmp() of the libiberty library, function in the public domain.
* Issue #8983: Corrected docstrings.Alexander Belopolsky2010-08-161-2/+2
|
* Fix (harmless) warning with MSVC.Antoine Pitrou2010-08-151-1/+1
|
* Fix indentation and remove dead code.Antoine Pitrou2010-08-151-132/+98
|
* Fix some compilation warnings under 64-bit Windows (issue #9566).Antoine Pitrou2010-08-152-8/+8
| | | | | Some of these are genuine bugs with objects bigger than 2GB, but my system doesn't allow me to write tests for it.
* Issue #9542: Create PyUnicode_FSDecoder() functionVictor Stinner2010-08-131-3/+41
| | | | | | | | | | | | It's a ParseTuple converter: decode bytes objects to unicode using PyUnicode_DecodeFSDefaultAndSize(); str objects are output as-is. * Don't specify surrogateescape error handler in the comments nor the documentation, but PyUnicode_DecodeFSDefaultAndSize() and PyUnicode_EncodeFSDefault() because these functions use strict error handler for the mbcs encoding (on Windows). * Remove PyUnicode_FSConverter() comment in unicodeobject.c to avoid inconsistency with unicodeobject.h.