summaryrefslogtreecommitdiffstats
path: root/Python
Commit message (Collapse)AuthorAgeFilesLines
* Fix find_module_path(): make the string readyVictor Stinner2011-10-061-0/+3
|
* Fix _warnings.c: make the filename string readyVictor Stinner2011-10-061-3/+10
|
* Don't check for the maximum character when copying from unicodeobject.cVictor Stinner2011-10-051-9/+7
| | | | | | | | * Create copy_characters() function which doesn't check for the maximum character in release mode * _PyUnicode_CheckConsistency() is no more static to be able to use it in _PyUnicode_FormatAdvanced() (in formatter_unicode.c) * _PyUnicode_CheckConsistency() checks the string hash
* traceback: fix dump_ascii() for string with kind=PyUnicode_WCHAR_KINDVictor Stinner2011-10-051-3/+13
|
* Add asciilib: similar to ucs1, ucs2 and ucs4 library, but specialized to ASCIIVictor Stinner2011-10-051-2/+2
| | | | | | ucs1, ucs2 and ucs4 libraries have to scan created substring to find the maximum character, whereas it is not need to ASCII strings. Because ASCII strings are common, it is useful to optimize ASCII.
* Fix usage og PyUnicode_READY()Victor Stinner2011-10-041-7/+14
|
* ceval.c: restore str+=str optimizationVictor Stinner2011-10-021-3/+73
|
* Check error when calling PyUnicode_AppendAndDel()Victor Stinner2011-10-021-3/+5
|
* PyCodec_ReplaceErrors() uses "C" format instead of "u#" to build resultVictor Stinner2011-10-021-2/+3
|
* remove unused labelBenjamin Peterson2011-10-021-1/+0
|
* Issue 13085: Fix some memory leaks. Patch by Stefan Krah.Martin v. Löwis2011-10-011-11/+19
|
* remove "fast-path" for (i)adding stringsBenjamin Peterson2011-10-011-8/+2
| | | | | | These were just an artifact of the old unicode concatenation hack and likely just penalized other kinds of adding. Also, this fixes __(i)add__ on string subclasses.
* Remove commented code: str+=str is no more super-optimizedVictor Stinner2011-09-301-112/+6
|
* modsupport.c reuses Py_UNICODE_strlen()Victor Stinner2011-09-291-10/+1
|
* Use the new Py_ARRAY_LENGTH macroVictor Stinner2011-09-283-4/+3
|
* #13054: sys.maxunicode is now always 0x10FFFF.Ezio Melotti2011-09-281-2/+2
|
* fill_number() and format_string_internal() check for ↵Victor Stinner2011-09-281-3/+8
| | | | PyUnicode_CopyCharacters() failure
* fill_number() ensures that the 'digits' string is readyVictor Stinner2011-09-281-1/+4
|
* fill_char() can now propagate an errorVictor Stinner2011-09-281-25/+47
|
* Check for PyUnicode_CopyCharacters() failureVictor Stinner2011-09-281-2/+8
|
* Rename new macros to conform to naming rules (function macros have "Py" ↵Georg Brandl2011-09-281-3/+3
| | | | prefix, not "PY").
* Implement PEP 393.Martin v. Löwis2011-09-2814-350/+1824
|
* Merge 3.2: Issue #7732: Don't open a directory as a file anymore whileVictor Stinner2011-09-231-0/+9
|\ | | | | | | | | importing a module. Ignore the direcotry if its name matchs the module name (e.g. "__init__.py") and raise a ImportError instead.
| * Issue #7732: Don't open a directory as a file anymore while importing aVictor Stinner2011-09-231-1/+8
| | | | | | | | | | module. Ignore the direcotry if its name matchs the module name (e.g. "__init__.py") and raise a ImportError instead.
* | Issue #13002: Fix Visual Studio warning (not enough actual parameters).Stefan Krah2011-09-211-1/+1
| |
* | - Issue #13021: Missing decref on an error path. Thanks to Suman Saha forBarry Warsaw2011-09-201-1/+3
|\ \ | |/ | | | | finding the bug and providing a patch.
| * - Issue #13021: Missing decref on an error path. Thanks to Suman Saha forBarry Warsaw2011-09-201-1/+3
| | | | | | | | finding the bug and providing a patch.
* | import.c: remove now useless arbitrary limitVictor Stinner2011-09-151-6/+0
| |
* | Merge 3.2: Fix the import machinery if there is an error on sys.path or ↵Victor Stinner2011-09-151-4/+4
|\ \ | |/ | | | | | | | | | | | | sys.meta_path find_module() now raises a RuntimeError, instead of ImportError, on an error on sys.path or sys.meta_path because load_package() and import_submodule() returns None and clear the exception if a ImportError occurred.
| * Fix the import machinery if there is an error on sys.path or sys.meta_pathVictor Stinner2011-09-151-4/+4
| | | | | | | | | | | | find_module() now raises a RuntimeError, instead of ImportError, on an error on sys.path or sys.meta_path because load_package() and import_submodule() returns None and clear the exception if a ImportError occurred.
* | Merge 3.2Éric Araujo2011-09-021-1/+1
|\ \ | |/
* | Merge 3.2: Remove unused variable if Python is build without threadsVictor Stinner2011-09-011-0/+2
|\ \ | |/
| * Remove unused variable if Python is build without threadsVictor Stinner2011-09-011-0/+2
| |
| * accept bytes for the AST 'string' typeBenjamin Peterson2011-09-011-1/+1
| | | | | | | | This is a temporary kludge and all is well in 3.3.
* | include header with PyAST_ValidateBenjamin Peterson2011-08-131-0/+3
| |
* | add a AST validator (closes #12575)Benjamin Peterson2011-08-092-4/+486
| |
* | add a asdl bytes type, so Bytes.s be properly typecheckedBenjamin Peterson2011-08-091-4/+14
| |
* | plug refleakBenjamin Peterson2011-07-301-0/+1
| |
* | bytes -> bytearrayBenjamin Peterson2011-07-291-1/+1
| |
* | bytes should be verboten in sum() (fixes #12654)Benjamin Peterson2011-07-291-0/+5
| |
* | Branch mergeÉric Araujo2011-07-291-3/+3
|\ \
| * \ Merge from 3.2 (#10318, #12255, #12043, #12417 and other fixes)Éric Araujo2011-07-291-3/+3
| |\ \ | | |/
| | * Fix style in code added by edba722f3b02Éric Araujo2011-07-261-3/+3
| | |
* | | Issue #12380: PyArg_ParseTuple now accepts a bytearray for the 'c' format.Eli Bendersky2011-07-291-0/+2
|/ / | | | | | | | | | | | | As a side effect, this now allows the rjust, ljust and center methods of bytes and bytearray to accept a bytearray argument. Patch by Petri Lehtinen
* | Add a test for issue #1813: getlocale() failing under a Turkish localeAntoine Pitrou2011-07-241-1/+1
|\ \ | |/ | | | | (not a problem under 3.x)
| * Issue #1813: Fix codec lookup under Turkish locales.Antoine Pitrou2011-07-241-1/+1
| |
* | Issue 12620: Make pendingbusy flag static to Py_MakePendingCalls().Charles-François Natali2011-07-231-4/+4
| |
* | merge 3.2Benjamin Peterson2011-07-221-10/+8
|\ \ | |/
| * None is ok for identifiers but not stringsBenjamin Peterson2011-07-221-10/+8
| |
| * hardcode the old svn __version__Benjamin Peterson2011-07-221-2/+2
| |