Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix | Michael W. Hudson | 2005-01-31 | 1 | -0/+4 |
| | | | | | | | [ 1077106 ] Negative numbers to os.read() cause segfault Sorry for sitting on this for so long! Is there a chance it could make 2.3.5? | ||||
* | Put docstring for getspall into same #ifdef block as function definition | Neal Norwitz | 2005-01-24 | 1 | -6/+4 |
| | | | | Remove C++ (C99) style comments | ||||
* | Patch #579435: Shadow Password Support Module | Martin v. Löwis | 2005-01-23 | 2 | -0/+180 |
| | |||||
* | Default stat_float_times to true. | Martin v. Löwis | 2005-01-16 | 1 | -1/+1 |
| | |||||
* | Moved reader \r and \n processing from the iterator to the state machine - | Andrew McNamara | 2005-01-13 | 1 | -97/+75 |
| | | | | | this allows for better handling of newline characters in quoted fields (and hopefully resolves Bug 967934). | ||||
* | Add strptime() constructor to datetime class. Thanks to Josh Spoerri for | Skip Montanaro | 2005-01-13 | 1 | -0/+45 |
| | | | | the changes. | ||||
* | Improve wording of parser error message. | Andrew McNamara | 2005-01-12 | 1 | -2/+2 |
| | |||||
* | Add counting of source iterator lines to the reader object - handy for | Andrew McNamara | 2005-01-12 | 1 | -0/+4 |
| | | | | | user error messages (otherwise difficult to do without instrumenting the source). | ||||
* | When quoting=QUOTE_NONNUMERIC, the reader now casts unquoted fields | Andrew McNamara | 2005-01-12 | 1 | -30/+59 |
| | | | | to floats. | ||||
* | Fix logic problem in quoting=csv.QUOTE_ALL, quotechar=None check, add test. | Andrew McNamara | 2005-01-12 | 1 | -1/+1 |
| | |||||
* | When using QUOTE_NONNUMERIC, we now test for "numericness" with | Andrew McNamara | 2005-01-12 | 1 | -82/+58 |
| | | | | | | | | PyNumber_Check, rather than trying to convert to a float. Reimplemented writer - now raises exceptions when it sees a quotechar but neither doublequote or escapechar are set. Doublequote results are now more consistent (eg, single quote should generate """", rather than "", which is ambiguous). | ||||
* | Rename csv.set_field_limit to csv.field_size_limit (since it both sets and | Andrew McNamara | 2005-01-12 | 1 | -6/+6 |
| | | | | gets). | ||||
* | Add belt and braces check of PyString_AsString return. | Andrew McNamara | 2005-01-12 | 1 | -4/+5 |
| | |||||
* | Set an upper limit on the size of the field buffer, raise an exception | Andrew McNamara | 2005-01-11 | 1 | -30/+77 |
| | | | | | | | when this limit is reached. Limit defaults to 128k, and is changed by module set_field_limit() method. Previously, an unmatched quote character could result in the entire file being read into the field buffer, potentially exhausting virtual memory. | ||||
* | Now that internal dialect type is immutable, and the dialect registry | Andrew McNamara | 2005-01-11 | 1 | -29/+40 |
| | | | | | | | only contains instances of the dialect type, we can refer directly to the dialect instances rather than creating new ones. In other words, if the dialect comes from the registry, and we apply no further modifications, the reader/writer can use the dialect object directly. | ||||
* | No longer attempt to instantiate python classes describing dialects. This | Andrew McNamara | 2005-01-11 | 1 | -37/+6 |
| | | | | | | was done because we were previously performing validation of the dialect from python, but this is now down within the C module. Also, the method we were using to detect classes did not work with new-style classes. | ||||
* | Allow dialect-describing keywords to be supplied to register_dialect, | Andrew McNamara | 2005-01-11 | 1 | -27/+11 |
| | | | | | record objects of internal dialect type, rather than instances of python objects. | ||||
* | Factor out the code for making a dialect instance. | Andrew McNamara | 2005-01-11 | 1 | -18/+22 |
| | |||||
* | Only set error string when dict lookup found no matching key (was setting | Andrew McNamara | 2005-01-10 | 1 | -3/+6 |
| | | | | it for all failures, potentially masking other exceptions). | ||||
* | When parsing args that return a single character, treat null string the | Andrew McNamara | 2005-01-10 | 1 | -1/+1 |
| | | | | same as None. | ||||
* | Where a string is desired, test for PyBaseString_Type derived type, | Andrew McNamara | 2005-01-10 | 1 | -15/+6 |
| | | | | rather than using PyString_Check/PyUnicode_Check. | ||||
* | Add missing PyObject_GC_Track and PyObject_GC_UnTrack calls to csv reader and | Andrew McNamara | 2005-01-10 | 1 | -0/+4 |
| | | | | writer objects (other GC infrastructure already in place). | ||||
* | Fix parsing of csv files with escapes (escape character previously would be | Andrew McNamara | 2005-01-10 | 1 | -8/+0 |
| | | | | left in stream). | ||||
* | Fix to use PEP7 brace style. | Andrew McNamara | 2005-01-07 | 1 | -2/+4 |
| | |||||
* | Improved the implementation of the internal "dialect" type. The new | Andrew McNamara | 2005-01-07 | 1 | -187/+239 |
| | | | | | implementation features better error reporting, and better compliance with the PEP. | ||||
* | Delete Reader_getiter and replace with PyObject_SelfIter. | Andrew McNamara | 2005-01-06 | 1 | -8/+1 |
| | |||||
* | [Bug #1083110] calling .flush() on decompress objects causes a segfault due ↵ | Andrew M. Kuchling | 2004-12-28 | 1 | -1/+5 |
| | | | | to an uninitialized pointer: fixes the problem and adds a test case | ||||
* | Bug #1087216: datetime module documentation missing critical detail | Raymond Hettinger | 2004-12-19 | 1 | -3/+9 |
| | |||||
* | fix unterminated comment | Andrew MacIntyre | 2004-12-18 | 1 | -1/+1 |
| | |||||
* | SF bug #1086555: refcount problem in syslog | Raymond Hettinger | 2004-12-16 | 1 | -3/+4 |
| | |||||
* | SF #1085304: Make array.array pickle-able | Raymond Hettinger | 2004-12-16 | 1 | -0/+25 |
| | |||||
* | fixed compilation against BerkeleyDB 3.2.9 (sf bug # 1077040) | Gregory P. Smith | 2004-12-16 | 1 | -0/+8 |
| | |||||
* | * Adds support for building against BerkeleyDB 4.3.21 | Gregory P. Smith | 2004-12-13 | 1 | -21/+74 |
| | | | | * bumped the module version number up to 4.3.0 | ||||
* | OS/2 specific fixes related to SF bug # 1003471. | Andrew MacIntyre | 2004-12-12 | 1 | -68/+67 |
| | | | | | Also revise a related function to minimise file handle/pipe leakage and improve reliability. | ||||
* | Eliminate the deprecated option to return None instead of a tuple of ↵ | Raymond Hettinger | 2004-12-07 | 1 | -11/+6 |
| | | | | arguments in __reduce__(). | ||||
* | Added optional None arguments to itertools.islice(). | Raymond Hettinger | 2004-12-05 | 1 | -14/+16 |
| | |||||
* | Fixing bug #1072259 in SRE. | Gustavo Niemeyer | 2004-12-02 | 1 | -7/+10 |
| | |||||
* | Hear the #error: change the default value of the mutable_arg argument | Michael W. Hudson | 2004-11-30 | 1 | -11/+1 |
| | | | | to ioctl() and remove the warning when it is not supplied. | ||||
* | Rename a static variable "history_length" to "_history_length". | Hye-Shik Chang | 2004-11-25 | 1 | -6/+6 |
| | | | | | GNU readline exports a global variable that has such a name already and the collision makes gcc4 doesn't compile the source. | ||||
* | Correct the handling of 0-termination of PyUnicode_AsWideChar() | Marc-André Lemburg | 2004-11-22 | 1 | -1/+3 |
| | | | | | | | | and its usage in PyLocale_strcoll(). Clarify the documentation on this. Thanks to Andreas Degert for pointing this out. | ||||
* | Patch #1050475: Fix various x86_64 build issues | Martin v. Löwis | 2004-11-13 | 1 | -2/+2 |
| | | | | | | regrtest.py: skip rgbimg and imageop as they are not built on 64-bit systems. _tkinter.c: replace %.8x with %p for printing pointers. setup.py: add lib64 into the library directories. | ||||
* | SF patch 1062495: Modules/zipimport.c does not compile on solaris | Raymond Hettinger | 2004-11-10 | 1 | -5/+5 |
| | | | | | | (Contributed by Niki W. Waibel.) Simple renaming to avoid a conflict that prevented compilation on Solaris. | ||||
* | SF patch #1062279: deque pickling problems | Raymond Hettinger | 2004-11-09 | 1 | -10/+12 |
| | | | | | | | (Contributed by Dima Dorfman.) * Support pickling of dictionaries in instances of deque subclasses. * Support pickling of recursive deques. | ||||
* | Fix apparently trivial buffer overflow (SF bug 1060396). | Jeremy Hylton | 2004-11-07 | 1 | -1/+1 |
| | | | | memset() wrote one past the end of the buffer, which was likely to be unused padding or a yet-to-be-initialized local variable. This routine is already tested by test_socket. | ||||
* | Bump-up block size. | Raymond Hettinger | 2004-11-02 | 1 | -1/+1 |
| | |||||
* | Add error checks for the bz2, cStringIO and operator modules. | Walter Dörwald | 2004-11-01 | 1 | -4/+4 |
| | | | | Add function names to various PyArg_ParseTuple calls in bz2module.c. | ||||
* | gc_list_move(): Make this truly equivalent to remove+append. While | Tim Peters | 2004-11-01 | 1 | -3/+5 |
| | | | | | | nothing in gc currently cares, the original coding could screw up if, e.g., you tried to move a node to the list it's already in, and the node was already the last in its list. | ||||
* | gc list function cleanup. | Tim Peters | 2004-11-01 | 1 | -15/+31 |
| | | | | | | | | | | | Introduced gc_list_move(), which captures the common gc_list_remove() + gc_list_append() sequence. In fact, no uses of gc_list_append() remained (they were all in a gc_list_move() sequence), so commented that one out. gc_list_merge(): assert that `from` != `to`; that was an implicit precondition, now verified in a debug build. Others: added comments about their purpose. | ||||
* | handle_weakrefs(): Simplification -- there's no need to make a second | Tim Peters | 2004-10-31 | 1 | -58/+28 |
| | | | | pass over the unreachable weakrefs-with-callbacks to unreachable objects. | ||||
* | SF 1055820: weakref callback vs gc vs threads | Tim Peters | 2004-10-30 | 2 | -107/+296 |
| | | | | | | | | In cyclic gc, clear weakrefs to unreachable objects before allowing any Python code (weakref callbacks or __del__ methods) to run. This is a critical bugfix, affecting all versions of Python since weakrefs were introduced. I'll backport to 2.3. |