[Python-Dev] csv module TODO list (original) (raw)

Andrew McNamara andrewm at object-craft.com.au
Wed Jan 5 08:06:43 CET 2005


There's a bunch of jobs we (CSV module maintainers) have been putting off - attached is a list (in no particular order):

Also, review comments from Neal Norwitz, 22 Mar 2003 (some of these should already have been addressed):

Also, review comments from Jeremy Hylton, 10 Apr 2003:

I've been reviewing extension modules looking for C types that should
participate in garbage collection.  I think the csv ReaderObj and
WriterObj should participate.  The ReaderObj it contains a reference to
input_iter that could be an arbitrary Python object.  The iterator
object could well participate in a cycle that refers to the ReaderObj.
The WriterObj has a reference to a writeline callable, which could well
be a method of an object that also points to the WriterObj.

The Dialect object appears to be safe, because the only PyObject * it
refers should be a string.  Safe until someone creates an insane string
subclass <0.4 wink>.

Also, an unrelated comment about the code, the lineterminator of the
Dialect is managed by a collection of little helper functions like
get_string, set_string, etc.  This code appears to be excessively
general; since they're called only once, it seems clearer to inline the
logic directly in the get/set methods for the lineterminator.

-- Andrew McNamara, Senior Developer, Object Craft http://www.object-craft.com.au/



More information about the Python-Dev mailing list