Closed GoogleCodeExporter closed 9 years ago
thanks for cleaning up! I committed everything, except for the addition of
AttributeError and ImportError. the reasoning is similar to the comment I gave
on
your import patch: we can support these partially, but never completely (as in
Python), so it seems better not to support them at all. an example:
try:
import psyco
psyco.full()
except ImportError:
pass
we could check for the ImportError at compile-time, but what if it says 'except
Exception'? this typically leads to a series of hacks, after which the feature
is
dropped in the end.. :)
similarly, in C++ an AttributeError just cannot occur, so it can never be
supported
fully..
Original comment by mark.duf...@gmail.com
on 24 Aug 2009 at 3:26
Original issue reported on code.google.com by
thomas.s...@gmail.com
on 23 Aug 2009 at 5:13Attachments: