scoping assertion

Andrew Dalke dalke at bioreason.com
Thu Jul 8 21:41:49 EDT 1999


Robin Becker <robin at jessikat.demon.co.uk> said:
> I use
> try:
>         raise None
> except:
>         ....

Just hope you don't get a ^C inside the try-block because it
will be ignored.  (I know, the odds are low, but still present.)

How about

try:
	raise ""
except "":
	....


It's exactly the same number of keystrokes, if you count
pressing the shift key as one of them :)

						Andrew
						dalke at acm.org




More information about the Python-list mailing list