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


Groups > comp.lang.python > #19189

Re: while True or while 1

Date 2012-01-21 14:29 +0000
From Andrea Crotti <andrea.crotti.0@gmail.com>
Subject Re: while True or while 1
References <4F1AC1D4.2080402@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.4908.1327156157.27778.python-list@python.org> (permalink)

Show all headers | View raw


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.

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

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

csiph-web