[Python-Dev] pyc files, constant folding and borderline portability issues
skip at pobox.com
skip at pobox.com
Tue Apr 7 17:19:25 CEST 2009
Cesare> The only difference at this time is regards invalid operations,
Cesare> which will raise exceptions at compile time, not at running
Cesare> time.
Cesare> So if you write:
Cesare> a = 1 / 0
Cesare> an exception will be raised at compile time.
I think I have to call *bzzzzt* here. This is a common technique used
during debugging. Insert a 1/0 to force an exception (possibly causing the
running program to drop into pdb). I think you have to leave that in.
Skip
More information about the Python-Dev
mailing list