how to get the ordinal number in list
Marko Rauhamaa
marko at pacujo.net
Sun Aug 10 15:14:16 EDT 2014
Chris Angelico <rosuav at gmail.com>:
> In computing, assignment and reassignment aren't at all problematic,
> and neither is printing to the console, so please stop telling people
> off for using them.
Printing to the console is somewhat problematic:
>>> with open("/dev/console", "w") as console: console.write("hello\n")
...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
IOError: [Errno 13] Permission denied: '/dev/console'
Marko
More information about the Python-list
mailing list