Hello World

Chris Angelico rosuav at gmail.com
Sun Dec 21 00:31:09 EST 2014


On Sun, Dec 21, 2014 at 4:14 PM, CM <cmpython at gmail.com> wrote:
> I ran it in IDLE with Python 2.7.8 and got:
>
> Traceback (most recent call last):
>   File "C:/Python27/helloworld.py", line 39, in <module>
>     lambda _, __, ___, ____, _____, ______, _______, ________: _
>   File "C:/Python27/helloworld.py", line 21, in <lambda>
>     _))) + (_____ << ______) + (_ << ___)
> OSError: [Errno 9] Bad file descriptor

Yes, because - like most "Hello world" programs - it attempts to write
to stdout. This interferes with IDLE and the way it captures output
for the graphical environment.

ChrisA



More information about the Python-list mailing list