Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #19189 > unrolled thread

Re: while True or while 1

Started byAndrea Crotti <andrea.crotti.0@gmail.com>
First post2012-01-21 14:29 +0000
Last post2012-01-21 14:29 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: while True or while 1 Andrea Crotti <andrea.crotti.0@gmail.com> - 2012-01-21 14:29 +0000

#19189 — Re: while True or while 1

FromAndrea Crotti <andrea.crotti.0@gmail.com>
Date2012-01-21 14:29 +0000
SubjectRe: while True or while 1
Message-ID<mailman.4908.1327156157.27778.python-list@python.org>
Actually there was the same question here (sorry should have looked before)
http://stackoverflow.com/questions/3815359/while-1-vs-for-whiletrue-why-is-there-a-difference

And I think the main reason is that 1 is a constant while True is not
such and can be reassigned.

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web