Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Issue 10221: Improve error message for dict.pop(). | Raymond Hettinger | 2010-10-30 | 1 | -2/+1 |
| | |||||
* | Issue #5437: A preallocated MemoryError instance should not hold traceback | Antoine Pitrou | 2010-10-28 | 1 | -10/+87 |
| | | | | data (including local variables caught in the stack trace) alive infinitely. | ||||
* | Simplify PyUnicode_Encode/DecodeFSDefault on Windows/Mac OS X | Victor Stinner | 2010-10-27 | 1 | -16/+18 |
| | | | | | * Windows always uses mbcs * Mac OS X always uses utf-8 | ||||
* | Add a new warning gategory, ResourceWarning, as discussed on python-dev. It ↵ | Georg Brandl | 2010-10-24 | 1 | -0/+10 |
| | | | | | | | | is silent by default, except when configured --with-pydebug. Emit this warning from the GC shutdown procedure, rather than just printing to stderr. | ||||
* | Follow up to #9778: fix regressions on 64-bit Windows builds | Antoine Pitrou | 2010-10-23 | 2 | -16/+7 |
| | |||||
* | follow up to #9778: define and use an unsigned hash type | Benjamin Peterson | 2010-10-23 | 5 | -18/+18 |
| | |||||
* | Revert r85797 (and r85798): it broke the Windows buildbots because of | Antoine Pitrou | 2010-10-22 | 1 | -48/+30 |
| | | | | test_multiprocessing's misbehaviour. | ||||
* | Issue #9935: Speed up pickling of instances of user-defined classes. | Antoine Pitrou | 2010-10-22 | 1 | -30/+48 |
| | |||||
* | Issue #4388: On Mac OS X, decode command line arguments from UTF-8, instead of | Victor Stinner | 2010-10-20 | 1 | -0/+114 |
| | | | | | | | the locale encoding. If the LANG (and LC_ALL and LC_CTYPE) environment variable is not set, the locale encoding is ISO-8859-1, whereas most programs (including Python) expect UTF-8. Python already uses UTF-8 for the filesystem encoding and to encode command line arguments on this OS. | ||||
* | PyUnicode_FromFormatV(): Fix %A format | Victor Stinner | 2010-10-18 | 1 | -0/+1 |
| | | | | It was not completly implemented. Add a test. | ||||
* | Remove unneeded casts to hashfunc. | Georg Brandl | 2010-10-18 | 3 | -5/+5 |
| | |||||
* | -1 is reserved for errors | Benjamin Peterson | 2010-10-17 | 1 | -0/+3 |
| | |||||
* | fix prototype | Benjamin Peterson | 2010-10-17 | 1 | -1/+1 |
| | |||||
* | make hashes always the size of pointers; introduce Py_hash_t #9778 | Benjamin Peterson | 2010-10-17 | 15 | -86/+84 |
| | |||||
* | use helper hash unimplemented function | Benjamin Peterson | 2010-10-17 | 1 | -8/+1 |
| | |||||
* | Add an optional size argument to _Py_char2wchar() | Victor Stinner | 2010-10-16 | 1 | -2/+3 |
| | | | | | | _Py_char2wchar() callers usually need the result size in characters. Since it's trivial to compute it in _Py_char2wchar() (O(1) whereas wcslen() is O(n)), add an option to get it. | ||||
* | Remove unused label. | Georg Brandl | 2010-10-15 | 1 | -4/+0 |
| | |||||
* | Use locale encoding if Py_FileSystemDefaultEncoding is not set | Victor Stinner | 2010-10-15 | 3 | -25/+32 |
| | | | | | | | | * PyUnicode_EncodeFSDefault(), PyUnicode_DecodeFSDefaultAndSize() and PyUnicode_DecodeFSDefault() use the locale encoding instead of UTF-8 if Py_FileSystemDefaultEncoding is NULL * redecode_filenames() functions and _Py_code_object_list (issue #9630) are no more needed: remove them | ||||
* | #9418: first step of moving private string methods to _string module. | Georg Brandl | 2010-10-14 | 2 | -4/+32 |
| | |||||
* | prefer clearing global objects to obscure module.__dict__ bugs #10068 | Benjamin Peterson | 2010-10-12 | 1 | -4/+1 |
| | |||||
* | Upgrade to Unicode 6.0.0. | Martin v. Löwis | 2010-10-11 | 1 | -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 Stinner | 2010-10-07 | 1 | -3/+3 |
| | | | | | All unicode functions uses PyObject* except PyUnicode_AsWideChar(). Fix the prototype for the new function PyUnicode_AsWideCharString(). | ||||
* | typo | Benjamin Peterson | 2010-10-03 | 1 | -2/+2 |
| | |||||
* | Issue #8670: PyUnicode_AsWideChar() and PyUnicode_AsWideCharString() replace | Victor Stinner | 2010-10-02 | 1 | -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 Stinner | 2010-10-02 | 1 | -1/+1 |
| | | | | | | character And write unit tests for PyUnicode_AsWideChar() and PyUnicode_AsWideCharString(). | ||||
* | type.__abstractmethods__ should raise an AttributeError #10006 | Benjamin Peterson | 2010-10-02 | 1 | -2/+5 |
| | |||||
* | Fix PyUnicode_AsWideCharString(): set *size if size is not NULL | Victor Stinner | 2010-09-29 | 1 | -0/+2 |
| | |||||
* | Issue #9630: Redecode filenames when setting the filesystem encoding | Victor Stinner | 2010-09-29 | 3 | -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 Stinner | 2010-09-29 | 1 | -14/+48 |
| | |||||
* | Issue #9930: Remove an unnecessary type check in wrap_binaryfunc_r; | Mark Dickinson | 2010-09-23 | 1 | -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 to | Daniel Stutzbach | 2010-09-13 | 1 | -49/+132 |
| | | | | meet the API of the collections.Sequence ABC. | ||||
* | Issue 7994: Make object.__format__() raise a PendingDeprecationWarning | Eric Smith | 2010-09-13 | 1 | -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'Arc | 2010-09-12 | 2 | -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 correct | Benjamin Peterson | 2010-09-12 | 1 | -1/+1 |
| | |||||
* | Issue #9738, #9836: Fix refleak introduced by r84704 | Victor Stinner | 2010-09-12 | 1 | -2/+2 |
| | |||||
* | detect non-ascii characters much earlier (plugs ref leak) | Benjamin Peterson | 2010-09-12 | 1 | -7/+7 |
| | |||||
* | fix formatting | Benjamin Peterson | 2010-09-11 | 1 | -6/+6 |
| | |||||
* | check for NULL tp_as_mapping in PySequence_(Get/Set/Del)Slice #9834 | Benjamin Peterson | 2010-09-11 | 1 | -3/+3 |
| | |||||
* | Issue #9738: PyUnicode_FromFormat() and PyErr_Format() raise an error on | Victor Stinner | 2010-09-11 | 1 | -1/+9 |
| | | | | | | a non-ASCII byte in the format string. Document also the encoding. | ||||
* | Issue #9757: memoryview objects get a release() method to release the | Antoine Pitrou | 2010-09-09 | 1 | -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 Kumaran | 2010-09-08 | 1 | -2/+1 |
| | | | | is not a feature. | ||||
* | Rename PyUnicode_strdup() to PyUnicode_AsUnicodeCopy() | Victor Stinner | 2010-09-03 | 1 | -1/+1 |
| | |||||
* | Reindent. | Georg Brandl | 2010-09-03 | 1 | -2/+2 |
| | |||||
* | Issue 8420: Fix obscure set crashers. | Raymond Hettinger | 2010-09-03 | 1 | -10/+20 |
| | |||||
* | Issue #9212: Added the missing isdisjoint method to the dict_keys and | Daniel Stutzbach | 2010-09-02 | 1 | -0/+58 |
| | | | | | dict_items views. The method is required by the collections.Set ABC, which the views register as supporting. | ||||
* | Removed an extraneous semicolon | Daniel Stutzbach | 2010-09-02 | 1 | -1/+1 |
| | |||||
* | Create PyUnicode_strdup() function | Victor Stinner | 2010-09-01 | 1 | -0/+22 |
| | |||||
* | Create Py_UNICODE_strcat() function | Victor Stinner | 2010-09-01 | 1 | -0/+9 |
| | |||||
* | Fix a compilation warning | Antoine Pitrou | 2010-09-01 | 1 | -1/+1 |
| | |||||
* | Issue #9737: Fix a crash when trying to delete a slice or an item from | Antoine Pitrou | 2010-09-01 | 1 | -0/+5 |
| | | | | a memoryview object. |