Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Marko Rauhamaa Newsgroups: comp.lang.python Subject: Re: how to get the ordinal number in list Date: Sun, 10 Aug 2014 22:14:16 +0300 Organization: A noiseless patient Spider Lines: 16 Message-ID: <87tx5kf987.fsf@elektro.pacujo.net> References: <53E658CD.5020904@gmail.com> <53e59035$0$29998$c3e8da3$5496439d@news.astraweb.com> <338e8fb0-c9ec-462a-b560-1c1ff77de17e@googlegroups.com> <154cc342-7f85-4d16-b636-a1a953913c98@googlegroups.com> <8c41d779-0c26-430a-a915-08c2b962e0e7@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: mx05.eternal-september.org; posting-host="ff5cf27ef3d5b31f034d3b72bdc27a41"; logging-data="26122"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18jJ8YZfnu5VKLVYu483Bwa" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) Cancel-Lock: sha1:Q+LVtIeLRvAduYeGtDZpD92BDzw= sha1:yC7QRXc/nDXnLPm6HP6aEIYmyTM= Xref: csiph.com comp.lang.python:76000 Chris Angelico : > 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 "", line 1, in IOError: [Errno 13] Permission denied: '/dev/console' Marko