looking for data on csv files

Bruno Desthuilliers bdesth.quelquechose at free.quelquepart.fr
Mon Aug 28 16:19:27 EDT 2006


flit a écrit :
> Hi!
> I am using the csv modules..
> 
> when I use the command:
> 
> if nome in row[rowcsv]:
>             print "\n"
>             print row[rowcsv] + "\n  ---->   " + row[11] + "\n"
>             print
> "################################################################"

Python 2.4.1 (#1, Jul 23 2005, 00:37:37)
[GCC 3.3.4 20040623 (Gentoo Linux 3.3.4-r1, ssp-3.3.2-2, pie-8.7.6)] on 
linux2
Type "help", "copyright", "credits" or "license" for more information.
 >>> if nome in row[rowcsv]:
...             print "\n"
...             print row[rowcsv] + "\n  ---->   " + row[11] + "\n"
...             print
...
Traceback (most recent call last):
   File "<stdin>", line 1, in ?
NameError: name 'nome' is not defined

Not enough code to reproduce your problem. Please post the minimal 
snippet reproducing your problem.

> there is this case:
> 
> 1- data on file PUItarr
> 
> If the user try to find for puitarr or PUITARR it doesn´t find.
> 
> I tried the string.upper and .lower , but there is a a way to look far
> all possible combinations?

Probably.

> And yes, i am a newbie..

Don't worry - we've all been newbies.



More information about the Python-list mailing list