[Python-Dev] csv changed from python 2.4 to 2.5

Christian K ckkart at hoc.net
Thu Jun 28 05:36:48 CEST 2007


skip at pobox.com wrote:
>     Christian> I could not find documentation of the following change in
>     Christian> python2.5. What is the reason for that?
> 
> Without looking through the change history for the module it's unclear to me
> why that would have changed.  The thing that changed is that the get_dialect
> call now returns a _csv.Dialect object instead of an instance of the
> csv.excel class:
> 
>     % python2.4
>     Python 2.4.1 (#3, Jul 28 2005, 22:08:40) 
>     [GCC 3.3 20030304 (Apple Computer, Inc. build 1671)] on darwin
>     Type "help", "copyright", "credits" or "license" for more information.
>     >>> import csv
>     >>> d = csv.get_dialect("excel")
>     >>> d
>     <csv.excel instance at 0x3ae058>
> 
>     % python
>     Python 2.6a0 (trunk:54264M, Mar 10 2007, 15:19:48) 
>     [GCC 4.0.1 (Apple Computer, Inc. build 5367)] on darwin
>     Type "help", "copyright", "credits" or "license" for more information.
>     >>> import csv
>     >>> d = csv.get_dialect("excel")
>     >>> d
>     <_csv.Dialect object at 0x137fac0>
> 
> Please submit a bug report on SourceForge.
> 

Ok. Done.

Christian



More information about the Python-Dev mailing list