a couple of newbie questions

Nick Vargish nav at adams.patriot.net
Mon Mar 24 09:07:10 EST 2003


sjmachin at lexicon.net (John Machin) writes:

> Unless you give a damn about data integrity, in which case you might
> like to check things like (1) do lines have the minimum 2 fields and
> the presumably desirable 5 fields [based on the OP's example] (2) are
> there any duplicate keys.

Geez, excuse me for trying to supply an illustrative example. The guy
was _lost_. I wanted to show the way without obscuring the solution to
the problem with a lot of type checking. 

And where's your solution, smart guy?

Nick

-- 
# sigmask.py  ||  version 0.2  ||  2003-01-07  ||  Feed this to your Python.
print reduce(lambda x,y:x+chr(ord(y)-1),'Ojdl!Wbshjti!=obwAqbusjpu/ofu?','')




More information about the Python-list mailing list