Using with CSV library in Python 2.2!!!

mohan mohan.us2010 at gmail.com
Tue Jan 9 09:15:08 EST 2007


skip at pobox.com wrote:
> mohan> 1. Does Python 2.2 come with CSV library module or not? If yes,
>     mohan>    have I lost it somewhere??
>
> As the docs for the csv module indicate, it was new in 2.3.
>
>     mohan> 2. If Python 2.2 does not come with CSV module, is it possible to
>     mohan>    add the csv module to the Python root and start working??
>
> You might find that it will work with 2.2, though you might have to make
> some source code changes to _csv.c to get it to compile.
>
>     mohan> 3. If yes, where do I get this module from??
>
> You can get both csv.py and _csv.c via ViewCVS:
>
>     http://svn.python.org/view/*checkout*/python/tags/r236/Modules/_csv.c?content-type=text%2Fplain&rev=52574
>     http://svn.python.org/view/*checkout*/python/tags/r236/Lib/csv.py?content-type=text%2Fplain&rev=52574
>
> Skip

Hi Skip,

Thanks man. What kind of source code changes should I do to "_csv.c"
file , have you any idea on that too??

Otherwise upgrading to Python 2.4 would be the easiest choice.

Thanks again.

cheers,
Mohan.




More information about the Python-list mailing list