Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #105737 > unrolled thread
| Started by | Nick Sarbicki <nick.a.sarbicki@gmail.com> |
|---|---|
| First post | 2016-03-26 10:02 +0000 |
| Last post | 2016-03-26 10:02 +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: How to make Python interpreter a little more strict? Nick Sarbicki <nick.a.sarbicki@gmail.com> - 2016-03-26 10:02 +0000
| From | Nick Sarbicki <nick.a.sarbicki@gmail.com> |
|---|---|
| Date | 2016-03-26 10:02 +0000 |
| Subject | Re: How to make Python interpreter a little more strict? |
| Message-ID | <mailman.27.1458986580.28225.python-list@python.org> |
On Sat, Mar 26, 2016 at 9:59 AM Aleksander Alekseev <afiskon@devzen.ru> wrote: > Hello > > Recently I spend half an hour looking for a bug in code like this: > > eax@fujitsu:~/temp$ cat ./t.py > #!/usr/bin/env python3 > > for x in range(0,5): > if x % 2 == 0: > next > print(str(x)) > > eax@fujitsu:~/temp$ ./t.py > 0 > 1 > 2 > 3 > 4 > > Is it possible to make python complain in this case? Or maybe solve > such an issue somehow else? > > -- > Best regards, > Aleksander Alekseev > http://eax.me/ > -- > https://mail.python.org/mailman/listinfo/python-list What would it be complaining about? I don't see any issues, it does what I would expect.
Back to top | Article view | comp.lang.python
csiph-web