3 ms·
"did not permit to re-raise exception" BS. >>> try: ... 1/0 ... except ZeroDivisionError: ... print "oops!" ... raise ... o
by dalke 11y ago
"did not permit to re-raise exception"
BS.
>>> try:
... 1/0
... except ZeroDivisionError:
... print "oops!"
... raise
...
oops!
Traceback (most recent call last):
File "<stdin>", line 2, in <module>
ZeroDivisionError: integer division or modulo by zero
"did not allow you to replace the printing function"
More BS.
from __future__ import print_function
Poof! Now I can replace the printing function.
"had a range object which is not memory efficient"
And a range object called 'xrange' which is memory efficient.