[Python-ideas] file(fn).read()

Scott David Daniels Scott.Daniels at Acm.Org
Sat Jun 13 19:57:05 CEST 2009


spir wrote:
> .... Actually, I could have answered my own question, 
 > at least for the current CPython implementation: ....


Warning: experimentation only gets you to the behavior of a
particular implementation on your machine at the time you run
it.  If you don't encounter a bug, it also gives you a _sample_
of _acceptable_ behavior.  It cannot, however get you to the
definition of the the behavior.  For that you _must_ read
the documentation.

If you rely on experimentation, you will come to depend on a lot
of things that might very well change.  At best, your program
will be much less portable, and at worst, the program will work
perfectly until you demo or deliver your program.

--Scott David Daniels
Scott.Daniels at Acm.Org




More information about the Python-ideas mailing list