- 16 Feb, 2006 27 commits
-
-
Tim Peters authored
debug-build test_struct on a box where plain "char" is signed.
-
Thomas Wouters authored
buffer_new(). Probably fixes a bug in 'buffer("", 10, 10)' on platforms where sizeof(Py_ssize_t) != sizeof(long) (Win64?)
-
Thomas Wouters authored
Fixes: >>> u"".center(10) Traceback (most recent call last): File "<stdin>", line 1, in <module> MemoryError on 64-bit systems.
-
Thomas Wouters authored
lists and call Py_ssize_t-using helpers. All other code in this module was already adapted to Py_ssize_t.
-
Thomas Wouters authored
has been applied fairly arbitrarily in this module (nsmallest uses Py_ssize_t, nlargest does not) and it probably deserves a more complete review. Fixes heapq.nsmallest() always returning the empty list (on platforms with 64-bit ssize_t/long)
-
Thomas Wouters authored
-
Thomas Wouters authored
-
Thomas Wouters authored
EUC-CN.TXT CP936.TXT BIG5HKSCS.TXT CP932.TXT EUC-JP.TXT SHIFTJIS.TXT EUC-JISX0213.TXT SHIFT_JISX0213.TXT CP949.TXT EUC-KR.TXT JOHAB.TXT BIG5.TXT CP950.TXT NormalizationTest-3.2.0.txt
-
Martin v. Löwis authored
-
Thomas Wouters authored
indexable) by using the same 'for' construct as all other examples. (Also emphasizes that reading from a random iterable is no different than reading from a file.)
-
Martin v. Löwis authored
-
Martin v. Löwis authored
-
Martin v. Löwis authored
-
Martin v. Löwis authored
-
Martin v. Löwis authored
-
Martin v. Löwis authored
Convert Py_ssize_t using PyInt_FromSsize_t
-
Martin v. Löwis authored
-
Martin v. Löwis authored
-
Martin v. Löwis authored
-
Neal Norwitz authored
-
Neal Norwitz authored
-
Martin v. Löwis authored
-
Martin v. Löwis authored
-
Martin v. Löwis authored
-
Neal Norwitz authored
-
Tim Peters authored
Py_SAFE_DOWNCAST can evaluate its first argument multiple times in a debug build. This caused two distinct assert- failures in test_unicode run under a debug build. Rewrote the code in trivial ways so that multiple evaluation of the first argument doesn't hurt.
-
Tim Peters authored
mixing signed and unsigned types in comparison. Relatedly, `dataSize` is declared as DWORD, not as int, so change relevant cast from (int) to (DWORD).
-
- 15 Feb, 2006 9 commits
-
-
Thomas Wouters authored
-
Thomas Wouters authored
whitespace.
-
Vinay Sajip authored
-
Martin v. Löwis authored
-
Martin v. Löwis authored
-
Martin v. Löwis authored
-
Fred Drake authored
-
Neal Norwitz authored
-
Tim Peters authored
signed with unsigned types in comparison.
-
- 14 Feb, 2006 4 commits
-
-
Martin v. Löwis authored
-
Martin v. Löwis authored
-
Tim Peters authored
test_file to fail on Windows in reality (can't delete a still-open file), but a new bare "except:" hid that test_file failed on Windows, and leaving behind the still-open TESTFN caused a cascade of bogus failures in later tests. So, close the file, and stop hiding failure to unlink.
-
Armin Rigo authored
* Allow the 3rd argument to generator.throw() to be None. The 'raise' statement does the same, and anyway it follows the general policy that optional arguments of built-ins should, when reasonable, have a default value specifiable from Python.
-