summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Trimmed trailing whitespace.Tim Peters2006-02-161-41/+41
|
* new_mmap_object(), Windows flavor.Tim Peters2006-02-161-2/+16
| | | | | | | | | | | | | | On a box where sizeof(size_t) == 4, C doesn't define what happens when a size_t value is shifted right by 32 bits, and this caused test_mmap to fail on Windows in a debug build. So use different code to break the size apart depending on how large size_t actually is. This looks like an illusion, since lots of code in this module still appears to assume sizes can't be more than 32 bits (e.g., the internal _GetMapSize() still returns an int), but at least test_mmap passes again.
* More Py_ssize_t format characters.Thomas Wouters2006-02-161-1/+1
|
* struct_pack(): Repair new assert-fail crash inTim Peters2006-02-161-1/+1
| | | | | debug-build test_struct on a box where plain "char" is signed.
* Use proper PyArg_Parse format char for Py_ssize_t, instead of 'l', inThomas Wouters2006-02-161-1/+1
| | | | | buffer_new(). Probably fixes a bug in 'buffer("", 10, 10)' on platforms where sizeof(Py_ssize_t) != sizeof(long) (Win64?)
* Use correct PyArg_Parse format char for Py_ssize_t in unicode.center().Thomas Wouters2006-02-161-1/+1
| | | | | | | | | | | Fixes: >>> u"".center(10) Traceback (most recent call last): File "<stdin>", line 1, in <module> MemoryError on 64-bit systems.
* Also make _heapq.nlargest() use Py_ssize_t instead of ints, to iter overThomas Wouters2006-02-161-2/+2
| | | | | lists and call Py_ssize_t-using helpers. All other code in this module was already adapted to Py_ssize_t.
* Use 'n' format for Py_ssize_t variables to PyArg_ParseTuple(). Py_ssize_tThomas Wouters2006-02-161-1/+1
| | | | | | | 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)
* Use correct format specifier for Py_ssize_t variable to PyArg_ParseTuple().Thomas Wouters2006-02-161-1/+1
|
* Use Py_ssize_t in helper function between Py_ssize_t-using functions.Thomas Wouters2006-02-161-2/+2
|
* Add encoding-test datafiles to svn:ignore:Thomas Wouters2006-02-160-0/+0
| | | | | | | | | | | | | | | | | 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
* Drop vsextcomp_verboseMartin v. Löwis2006-02-161-1/+1
|
* Fix broken example of csv.reader use (it returns an iterator, which isn'tThomas Wouters2006-02-161-1/+2
| | | | | | 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.)
* Change _PyObject_GC_Resize to expect Py_ssize_t.Martin v. Löwis2006-02-162-2/+2
|
* Fix typoMartin v. Löwis2006-02-161-1/+1
|
* Move cast to suppress warning.Martin v. Löwis2006-02-161-2/+2
|
* Use Py_ssize_t to count theMartin v. Löwis2006-02-167-22/+24
|
* Use Py_ssize_t to count the length.Martin v. Löwis2006-02-161-1/+1
|
* Use Py_ssize_t for counts and sizes.Martin v. Löwis2006-02-1610-31/+33
| | | | Convert Py_ssize_t using PyInt_FromSsize_t
* Use Py_ssize_t for counts and sizes.Martin v. Löwis2006-02-1612-66/+67
|
* Use Py_ssize_t for field sizes and offsets.Martin v. Löwis2006-02-161-3/+3
|
* Allow for ssize_t field offsets.Martin v. Löwis2006-02-161-1/+1
|
* Update comment and make accurate.Neal Norwitz2006-02-161-1/+1
|
* Oops, this is supposed to be disabled by default.Neal Norwitz2006-02-161-1/+1
|
* Use PyString_FromFormat for formatting error messages.Martin v. Löwis2006-02-161-42/+36
|
* Revert 42400.Martin v. Löwis2006-02-165-11/+11
|
* Support %zd in PyErr_Format and PyString_FromFormat.Martin v. Löwis2006-02-168-19/+35
|
* Get rid of compiler warnings (gcc 3.3.4 on x86)Neal Norwitz2006-02-165-11/+11
|
* doubletounicode(), longtounicode():Tim Peters2006-02-161-4/+8
| | | | | | | | 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.
* getpythonregpath(): Squash compiler warning aboutTim Peters2006-02-161-2/+2
| | | | | | mixing signed and unsigned types in comparison. Relatedly, `dataSize` is declared as DWORD, not as int, so change relevant cast from (int) to (DWORD).
* Remove two unused Py_ssize_t variables (merge glitches, looks like.)Thomas Wouters2006-02-151-2/+0
|
* Avoid unused variables when SIZEOF_SIZE_T == SIZEOF_LONG. Also normalizeThomas Wouters2006-02-151-1/+3
| | | | whitespace.
* Added some more versionchanged markup.Vinay Sajip2006-02-151-0/+6
|
* Remove C99ism.Martin v. Löwis2006-02-151-1/+2
|
* Drop py:lastmerged.Martin v. Löwis2006-02-150-0/+0
|
* Merge ssize_t branch.Martin v. Löwis2006-02-15102-1677/+2659
|
* use correct function in exampleFred Drake2006-02-151-1/+1
|
* Find test failures consistentlyNeal Norwitz2006-02-151-2/+2
|
* randombits(): Stop compiler warning about mixingTim Peters2006-02-151-1/+1
| | | | signed with unsigned types in comparison.
* Add _lsprof.Martin v. Löwis2006-02-142-0/+8
|
* Add build support for AMD64.Martin v. Löwis2006-02-1421-21/+933
|
* New test code failed to close the file. This causedTim Peters2006-02-141-13/+12
| | | | | | | | | | 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.
* * Refcount leak. It was just a reference to Py_None, but still.Armin Rigo2006-02-141-3/+9
| | | | | | | * 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.
* Support 2.4 (released versions) better. (rsync was not working with adding ↵Neal Norwitz2006-02-141-2/+4
| | | | the *. Only some files/dirs were copied, not everything.)
* Doc some user visible changesNeal Norwitz2006-02-131-1/+4
|
* Try to improve name based on discussion on python-checkins with Jim JewettNeal Norwitz2006-02-131-5/+5
|
* SF patch #1397960: When mixing file-iteration andThomas Wouters2006-02-122-3/+150
| | | | | | | readline/readlines/read/readinto, loudly break by raising ValueError, rather than silently deliver data out of order or hitting EOF prematurely. Probably not a bugfix candidate, even though it affects no 'working' code.
* Renamed _length_cue() to __length_hint__(). See:Armin Rigo2006-02-1114-32/+41
| | | | http://mail.python.org/pipermail/python-dev/2006-February/060524.html
* Whitespace normalization.Tim Peters2006-02-111-1/+1
|
* Even more copyright year locations!Georg Brandl2006-02-112-2/+2
|