determining file type

Diez B. Roggisch deets at
Wed Jun 14 13:15:17 CEST 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:


More information about the Python-list mailing list