determining file type

Diez B. Roggisch deets at nospam.web.de
Wed Jun 14 07:15:17 EDT 2006


Ritesh Raj Sarraf schrieb:
> Also,
> f = file ('some_file.jpg')
> 
> throws an error.
> "str object is not callable"

I bet you have rebound "file" to a string, like this:

file = "some name"


And PLEASE don't top-quote:

http://www.redballoon.net/~snorwood/quote-rant.shtml


Diez



More information about the Python-list mailing list