[Python-Dev] file() or open()? (original) (raw)
Greg Ewing greg at cosc.canterbury.ac.nz
Wed Jul 7 05:36:09 CEST 2004
- Previous message: [Python-Dev] file() or open()?
- Next message: [Python-Dev] file() or open()?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Guido:
I'm not sure I agree with this. While open() and file() are currently aliases for the same object, this may not always be the case
If you want to keep this possibility available, it might be a good idea to mention it in the docs. Currently, open() is described as just "an alias for the file() function", suggesting that file() is the one you're meant to use, or at least that there's no particular reason not to use it.
Greg Ewing, Computer Science Dept, +--------------------------------------+ University of Canterbury, | A citizen of NewZealandCorp, a | Christchurch, New Zealand | wholly-owned subsidiary of USA Inc. | greg at cosc.canterbury.ac.nz +--------------------------------------+
- Previous message: [Python-Dev] file() or open()?
- Next message: [Python-Dev] file() or open()?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]