[Tutor] 'open' is not defined
Steven D'Aprano
steve at pearwood.info
Fri Jul 31 04:23:14 CEST 2015
On Thu, Jul 30, 2015 at 11:41:56PM +0000, ltc.hotspot at gmail.com wrote:
> Hi Everyone:
>
>
> Why is open not defined in the following code:NameError: name 'open' is not defined
Are you still running your code on the PythonTutor website?
http://pythontutor.com/visualize.html
says in the fine-print at the bottom of the page:
"Online Python Tutor currently supports five languages (despite
its name!):
1. Python 2.7 and 3.3 with limited module imports and no file I/O."
So open() is not defined because the Online Python Tutor website has
removed it.
By the way, I tried working with that website for a little while. It is
*amazingly* slow and clunky and painful to use on my computer. I don't
know how you can bear to use it. Have you considered installing Python
on your computer and working directly on that?
--
Steve
More information about the Tutor
mailing list