Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Added SEEK_* constants. Fixes #711830. | Martin v. Löwis | 2005-01-16 | 3 | -1/+19 |
| | |||||
* | Use descriptors. | Guido van Rossum | 2005-01-16 | 5 | -11/+9 |
| | |||||
* | Use decorators. | Guido van Rossum | 2005-01-16 | 1 | -3/+4 |
| | |||||
* | Use decorators. | Guido van Rossum | 2005-01-16 | 3 | -15/+8 |
| | |||||
* | Gave the new datetime.strptime() a versionadded blurb. | Tim Peters | 2005-01-13 | 1 | -0/+2 |
| | |||||
* | Whitespace normalization. | Tim Peters | 2005-01-13 | 2 | -8/+8 |
| | |||||
* | Moved reader \r and \n processing from the iterator to the state machine - | Andrew McNamara | 2005-01-13 | 2 | -99/+78 |
| | | | | | this allows for better handling of newline characters in quoted fields (and hopefully resolves Bug 967934). | ||||
* | Improved SysLogHandler error recovery (patch by Erik Forsberg) | Vinay Sajip | 2005-01-13 | 1 | -9/+16 |
| | |||||
* | Add strptime() constructor to datetime class. Thanks to Josh Spoerri for | Skip Montanaro | 2005-01-13 | 5 | -0/+66 |
| | | | | the changes. | ||||
* | fix typo | Fred Drake | 2005-01-12 | 1 | -1/+1 |
| | |||||
* | remove unused variable | Fred Drake | 2005-01-12 | 1 | -1/+0 |
| | |||||
* | Many updates to csv module doco. | Andrew McNamara | 2005-01-12 | 1 | -32/+110 |
| | |||||
* | 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 | 3 | -1/+21 |
| | | | | | 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 | 3 | -32/+70 |
| | | | | to floats. | ||||
* | Fix logic problem in quoting=csv.QUOTE_ALL, quotechar=None check, add test. | Andrew McNamara | 2005-01-12 | 2 | -1/+3 |
| | |||||
* | When using QUOTE_NONNUMERIC, we now test for "numericness" with | Andrew McNamara | 2005-01-12 | 3 | -92/+81 |
| | | | | | | | | 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 | 4 | -15/+15 |
| | | | | gets). | ||||
* | Add news about csv module updates. | Andrew McNamara | 2005-01-12 | 1 | -0/+28 |
| | |||||
* | Improve test coverage fractionally. | Andrew McNamara | 2005-01-12 | 1 | -9/+23 |
| | |||||
* | Add belt and braces check of PyString_AsString return. | Andrew McNamara | 2005-01-12 | 1 | -4/+5 |
| | |||||
* | Improve error handling when .idlerc can't be created. | Kurt B. Kaiser | 2005-01-11 | 1 | -14/+16 |
| | |||||
* | Add duck-typing to the glossary. | Raymond Hettinger | 2005-01-11 | 1 | -0/+11 |
| | |||||
* | SF bug #1099516: tempfile files not types.FileType | Raymond Hettinger | 2005-01-11 | 1 | -5/+5 |
| | | | | Clarified that the returned object is file-like rather than an actual file. | ||||
* | Set an upper limit on the size of the field buffer, raise an exception | Andrew McNamara | 2005-01-11 | 3 | -32/+87 |
| | | | | | | | 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. | ||||
* | SF 1098985: set objects cannot be marshalled | Raymond Hettinger | 2005-01-11 | 3 | -1/+80 |
| | |||||
* | Replace python-coded validation of csv dialect with a call to the C | Andrew McNamara | 2005-01-11 | 2 | -44/+7 |
| | | | | dialect type (which has a better idea of what is and isn't valid). | ||||
* | No longer attempt to instantiate python classes describing dialects. This | Andrew McNamara | 2005-01-11 | 2 | -55/+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 | 2 | -28/+21 |
| | | | | | 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). | ||||
* | Whitespace normalization. | Tim Peters | 2005-01-10 | 1 | -3/+3 |
| | |||||
* | 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. | ||||
* | Fix and test for SF bug #1098990: codec readline() splits lines apart. | Walter Dörwald | 2005-01-10 | 2 | -2/+32 |
| | |||||
* | Bug #489256: remove out of date and out of place profile.doc, and let | Johannes Gijsbers | 2005-01-10 | 2 | -715/+3 |
| | | | | profile.help() point at the library reference instead of profile.doc. | ||||
* | 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 | 2 | -10/+2 |
| | | | | left in stream). | ||||
* | Patch #712317: In URLs such as http://www.example.com?query=spam, treat '?' as | Johannes Gijsbers | 2005-01-09 | 2 | -41/+63 |
| | | | | | | a delimiter. Previously, the 'network location' (<authority> in RFC 2396) would become 'www.example.com?query=spam', while RFC 2396 does not allow a '?' in <authority>. See bug #548176 for further discussion. | ||||
* | Patch #1095362: replace hardcoded test for POST/GET with call to get_method, | Johannes Gijsbers | 2005-01-09 | 1 | -1/+1 |
| | | | | removing some duplication and gaining some flexibility in the process. | ||||
* | Move code in __name__ == '__main__' block into main() function, rewrite code so | Johannes Gijsbers | 2005-01-09 | 1 | -16/+14 |
| | | | | there's no need to subclass OptionParser. | ||||
* | Patch #1051321 (fixes bugs 1010196, 1013525), by Mike Brown: | Johannes Gijsbers | 2005-01-09 | 1 | -9/+44 |
| | | | | | | | | | | | | | * Document hasFeature(), createDocument(), CreateDocumentType(), hasAttribute(), hasAttributeNS(). * In the documentation for createDocument(), it is now stated that the Python DOM API allows implementations to forego creation of the document element child node, if no namespace and local name arguments are given. (This possibility is left open and unaddressed in the W3C spec). * Addition by me: use 'name' rather than 'attname', for consistency with the DOM specification and the Python DOM API implementation. | ||||
* | Bug #1098497: various small typo's, grammar and markup nits. | Johannes Gijsbers | 2005-01-09 | 1 | -4/+4 |
| | |||||
* | comment tweak | Skip Montanaro | 2005-01-08 | 1 | -1/+1 |
| | |||||
* | Add definitions for "up" and "down" commands that print/display the current | Skip Montanaro | 2005-01-08 | 1 | -2/+52 |
| | | | | | | | | | | Python file/line when the current C execution frame is inside PyEval_EvalFrame. These are commented out by default because GDB sometimes crashes as a result (seems like a GDB bug). Add a pyframe command that displays the current Python stack frame. If the marked lines are uncommented, it will also cause Emacs/XEmacs to display the current file/line. | ||||
* | Patch #936774: unify the display of data descriptors, including slots, | Johannes Gijsbers | 2005-01-08 | 1 | -37/+27 |
| | | | | | | | | | | | | | | | properties, and custom descriptors. * removed special handling of properties * added special handling of data descriptors - All data descriptors are grouped together in a section. For each item, the attribute name and doc string, if present, is displayed. * disabled display of __slots__ attribute - since slots are descriptors, they are listed in the section described above Thanks to John Belmonte for the patch! | ||||
* | Replace rfc822.parseaddr with email.Utils.parseaddr. The implementation is | Johannes Gijsbers | 2005-01-08 | 1 | -2/+2 |
| | | | | still the same, so there should be no backwards-compatibility problems. | ||||
* | Patch #1079734: remove dependencies on (deprecated) rfc822 and mimetools | Johannes Gijsbers | 2005-01-08 | 1 | -7/+9 |
| | | | | modules, replacing with email. Thanks to Josh Hoyt for the patch! | ||||
* | Clean up tests by reusing functions from other modules: | Johannes Gijsbers | 2005-01-08 | 1 | -31/+8 |
| | | | | | | * replace deltree with shutil.rmtree() * replace mkdirs with os.makedirs() * fold touchfile into GlobTests.mktemp() |