469,644 Members | 1,696 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,644 developers. It's quick & easy.

Re: simple error i hope

Le Saturday 02 August 2008 00:51:50 Clay Hobbs, vous avez écrit*:
It is also a good idea to open files with the open() function and not the
file() function. *They do the exact same thing, and take the exact same
parameters, just open() makes your code a bit more readable (or at least
that's what I think).
The main point with open I think is to easy later evolution. While you could
override "file" name as well as "open" by a custom funcion, it's a bad idea
to override the name of the type because a simple isinstance(file_, file)
won't work anymore if you do so.

Maric Michaud
Aug 2 '08 #1
0 923

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by bob lambert | last post: by
6 posts views Thread by Brian | last post: by
7 posts views Thread by Justin Hoffman | last post: by
1 post views Thread by tomer.ha | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.