En Thu, 24 May 2007 05:08:57 -0300, rohit <[EMAIL PROTECTED]>  
escribió:

> ohh i think i forgot to include intricate details
> in dictionary i use the following:
> value: name of a file existing on disk
> Key : a unique number assigned to each file ,with no. assigned in
> increasing order to file appearing earlier in the "english dictionary"

So you don't have to read any file at all - just scan all file names.
dict(enumerate(os.listdir(".")))

-- 
Gabriel Genellina

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to