<type 'exceptions.TypeError'>: an integer is required
eckhardt at satorlaser.com
Tue Jun 16 03:08:12 EDT 2009
Dave Angel wrote:
> Ulrich Eckhardt wrote:
>> open() doesn't take a string as second parameter, see 'help(open)'.
>> Instead, it takes one of the integers which are defined as symbols in the
>> os module, see 'dir(os)'.
> [...]The second parameter to the builtin function open() is a string[...]
> Now perhaps you're referring to open() in some other module, such as
True, mixed those up, as perhaps did the OP.
> an unqualified open() can only refer to the one in builltin.
...unless you explicitly imported an 'open' from somewhere else.
Thanks for the correction.
Sator Laser GmbH
Geschäftsführer: Thorsten Föcking, Amtsgericht Hamburg HR B62 932
More information about the Python-list