determining file type

Maric Michaud maric at aristote.info
Wed Jun 14 13:19:41 CEST 2006


Le Mercredi 14 Juin 2006 12:41, Ritesh Raj Sarraf a écrit :
> Also,
> f = file ('some_file.jpg')
>
> throws an error.
> "str object is not callable"
stange, did you define a function named file ?
You can use open instead.

-- 
_____________

Maric Michaud
_____________

Aristote - www.aristote.info
3 place des tapis
69004 Lyon
Tel: +33 426 880 097



More information about the Python-list mailing list