On 10/17/2013 08:26 AM, Nick Coghlan wrote:
# Arbitrarily nested search loop
with exit_label() as found:
for i in range(x):
for j in range(y):
if matches(i, j):
found.exit((i, j))
if found:
print(found.value)
+1 !
@property
def exc(self):
if self._exc is self._exc:
typo
Thanks for this, I like it! :)
--
~Ethan~
_______________________________________________
Python-Dev mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com