Character encoding & the copyright symbol

"Martin v. Löwis" martin at v.loewis.de
Thu Aug 6 15:14:41 EDT 2009


> As a side note, you should probably use something other than "file" for
> the parameter name in GetFileContentsAsString() since file() is a Python
> function.

Python 3.1.1a0 (py3k:74094, Jul 19 2009, 13:39:42)
[GCC 4.3.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
py> file
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'file' is not defined

Regards,
Martin




More information about the Python-list mailing list