[Python-Dev] open() mode is lax (original) (raw)
Greg Ewing greg.ewing at canterbury.ac.nz
Thu Mar 16 03:53:24 CET 2006
- Previous message: [Python-Dev] Py3k: Except clause syntax
- Next message: [Python-Dev] open() mode is lax
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I've just noticed that (in 2.3.4) open() seems to accept just about anything after the first character of the mode argument:
Python 2.3.4 (#1, Jun 30 2004, 16:47:37) [GCC 3.2 20020903 (Red Hat Linux 8.0 3.2-7)] on linux2 Type "help", "copyright", "credits" or "license" for more information.
f = open("DU", "rqwerty")
-- Greg Ewing, Computer Science Dept, +--------------------------------------+ University of Canterbury, | Carpe post meridiam! | Christchurch, New Zealand | (I'm not a morning person.) | greg.ewing at canterbury.ac.nz +--------------------------------------+
- Previous message: [Python-Dev] Py3k: Except clause syntax
- Next message: [Python-Dev] open() mode is lax
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]