Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #19189 > unrolled thread
| Started by | Andrea Crotti <andrea.crotti.0@gmail.com> |
|---|---|
| First post | 2012-01-21 14:29 +0000 |
| Last post | 2012-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.
Re: while True or while 1 Andrea Crotti <andrea.crotti.0@gmail.com> - 2012-01-21 14:29 +0000
| From | Andrea Crotti <andrea.crotti.0@gmail.com> |
|---|---|
| Date | 2012-01-21 14:29 +0000 |
| Subject | Re: 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.
Back to top | Article view | comp.lang.python
csiph-web