[Tutor] Standard library modules not installed

Rex chidorex-pytutor at yahoo.com
Thu Apr 22 16:45:23 EDT 2004


--- Danny Yoo <dyoo at hkn.eecs.berkeley.edu> wrote:
> 
> 
> > > > However, I am going to run this program in a RedHat 9
> > machine, and for some strange reason some libraries are not
> included in
> > this python installation (ver. 2.2.2). I have looked at several
> library
> > locations
> 
> [some text cut]
> 
> > Well, I am looking for the libraries that are in the Python web
> site
> > under the Standard libraries. In particular the comma-separated
> values
> > one named simply 'csv'. It is described under:
> >
> > http://docs.python.org/lib/module-csv.html
> 
> 
> Hi Rex,
> 
> 
> Yes, 'csv' was added in Python 2.3, so it's not present in older
> versions
> of Python.  But the PEP that introduced the CSV module:
> 
>     http://www.python.org/peps/pep-0305.html
> 
> mentions other third-party implementations of a CVS parser that you
> can
> use.  Here are links to them:
> 
>     http://www.object-craft.com.au/projects/csv/
>     http://sourceforge.net/projects/python-dsv/
>     http://tratt.net/laurie/python/asv/
> 
> If you need to maintain compatibility with other version of Python,
> using
> one of those third-party modules may be a good choice.
> 
> 
> Good luck!
> 

Hi Danny,

Thanks for the advice. No wonder the on-line reference has this module
and not my previous version. Gentoo Linux is always "bleeding-edge
stable" so that is always an advantage other other distros.

I'll look up these other library options for my "older" Python :)

Thanks again to all.

Rex




More information about the Tutor mailing list