Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #105731
| From | Aleksander Alekseev <afiskon@devzen.ru> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | How to make Python interpreter a little more strict? |
| Date | 2016-03-25 15:06 +0300 |
| Message-ID | <mailman.21.1458986315.28225.python-list@python.org> (permalink) |
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/
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
How to make Python interpreter a little more strict? Aleksander Alekseev <afiskon@devzen.ru> - 2016-03-25 15:06 +0300 Re: How to make Python interpreter a little more strict? Steven D'Aprano <steve@pearwood.info> - 2016-03-26 23:00 +1100
csiph-web