Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Trimmed trailing whitespace. | Tim Peters | 2006-02-16 | 1 | -41/+41 |
| | |||||
* | new_mmap_object(), Windows flavor. | Tim Peters | 2006-02-16 | 1 | -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 Wouters | 2006-02-16 | 1 | -1/+1 |
| | |||||
* | struct_pack(): Repair new assert-fail crash in | Tim Peters | 2006-02-16 | 1 | -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', in | Thomas Wouters | 2006-02-16 | 1 | -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 Wouters | 2006-02-16 | 1 | -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 over | Thomas Wouters | 2006-02-16 | 1 | -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_t | Thomas Wouters | 2006-02-16 | 1 | -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 Wouters | 2006-02-16 | 1 | -1/+1 |
| | |||||
* | Use Py_ssize_t in helper function between Py_ssize_t-using functions. | Thomas Wouters | 2006-02-16 | 1 | -2/+2 |
| | |||||
* | Add encoding-test datafiles to svn:ignore: | Thomas Wouters | 2006-02-16 | 0 | -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_verbose | Martin v. Löwis | 2006-02-16 | 1 | -1/+1 |
| | |||||
* | Fix broken example of csv.reader use (it returns an iterator, which isn't | Thomas Wouters | 2006-02-16 | 1 | -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öwis | 2006-02-16 | 2 | -2/+2 |
| | |||||
* | Fix typo | Martin v. Löwis | 2006-02-16 | 1 | -1/+1 |
| | |||||
* | Move cast to suppress warning. | Martin v. Löwis | 2006-02-16 | 1 | -2/+2 |
| | |||||
* | Use Py_ssize_t to count the | Martin v. Löwis | 2006-02-16 | 7 | -22/+24 |
| | |||||
* | Use Py_ssize_t to count the length. | Martin v. Löwis | 2006-02-16 | 1 | -1/+1 |
| | |||||
* | Use Py_ssize_t for counts and sizes. | Martin v. Löwis | 2006-02-16 | 10 | -31/+33 |
| | | | | Convert Py_ssize_t using PyInt_FromSsize_t | ||||
* | Use Py_ssize_t for counts and sizes. | Martin v. Löwis | 2006-02-16 | 12 | -66/+67 |
| | |||||
* | Use Py_ssize_t for field sizes and offsets. | Martin v. Löwis | 2006-02-16 | 1 | -3/+3 |
| | |||||
* | Allow for ssize_t field offsets. | Martin v. Löwis | 2006-02-16 | 1 | -1/+1 |
| | |||||
* | Update comment and make accurate. | Neal Norwitz | 2006-02-16 | 1 | -1/+1 |
| | |||||
* | Oops, this is supposed to be disabled by default. | Neal Norwitz | 2006-02-16 | 1 | -1/+1 |
| | |||||
* | Use PyString_FromFormat for formatting error messages. | Martin v. Löwis | 2006-02-16 | 1 | -42/+36 |
| | |||||
* | Revert 42400. | Martin v. Löwis | 2006-02-16 | 5 | -11/+11 |
| | |||||
* | Support %zd in PyErr_Format and PyString_FromFormat. | Martin v. Löwis | 2006-02-16 | 8 | -19/+35 |
| | |||||
* | Get rid of compiler warnings (gcc 3.3.4 on x86) | Neal Norwitz | 2006-02-16 | 5 | -11/+11 |
| | |||||
* | doubletounicode(), longtounicode(): | Tim Peters | 2006-02-16 | 1 | -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 about | Tim Peters | 2006-02-16 | 1 | -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 Wouters | 2006-02-15 | 1 | -2/+0 |
| | |||||
* | Avoid unused variables when SIZEOF_SIZE_T == SIZEOF_LONG. Also normalize | Thomas Wouters | 2006-02-15 | 1 | -1/+3 |
| | | | | whitespace. | ||||
* | Added some more versionchanged markup. | Vinay Sajip | 2006-02-15 | 1 | -0/+6 |
| | |||||
* | Remove C99ism. | Martin v. Löwis | 2006-02-15 | 1 | -1/+2 |
| | |||||
* | Drop py:lastmerged. | Martin v. Löwis | 2006-02-15 | 0 | -0/+0 |
| | |||||
* | Merge ssize_t branch. | Martin v. Löwis | 2006-02-15 | 102 | -1677/+2659 |
| | |||||
* | use correct function in example | Fred Drake | 2006-02-15 | 1 | -1/+1 |
| | |||||
* | Find test failures consistently | Neal Norwitz | 2006-02-15 | 1 | -2/+2 |
| | |||||
* | randombits(): Stop compiler warning about mixing | Tim Peters | 2006-02-15 | 1 | -1/+1 |
| | | | | signed with unsigned types in comparison. | ||||
* | Add _lsprof. | Martin v. Löwis | 2006-02-14 | 2 | -0/+8 |
| | |||||
* | Add build support for AMD64. | Martin v. Löwis | 2006-02-14 | 21 | -21/+933 |
| | |||||
* | New test code failed to close the file. This caused | Tim Peters | 2006-02-14 | 1 | -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 Rigo | 2006-02-14 | 1 | -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 Norwitz | 2006-02-14 | 1 | -2/+4 |
| | | | | the *. Only some files/dirs were copied, not everything.) | ||||
* | Doc some user visible changes | Neal Norwitz | 2006-02-13 | 1 | -1/+4 |
| | |||||
* | Try to improve name based on discussion on python-checkins with Jim Jewett | Neal Norwitz | 2006-02-13 | 1 | -5/+5 |
| | |||||
* | SF patch #1397960: When mixing file-iteration and | Thomas Wouters | 2006-02-12 | 2 | -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 Rigo | 2006-02-11 | 14 | -32/+41 |
| | | | | http://mail.python.org/pipermail/python-dev/2006-February/060524.html | ||||
* | Whitespace normalization. | Tim Peters | 2006-02-11 | 1 | -1/+1 |
| | |||||
* | Even more copyright year locations! | Georg Brandl | 2006-02-11 | 2 | -2/+2 |
| |