]> granicus.if.org Git - python/commit
Added some try-excepts so that it can be imported in restricted mode
authorGuido van Rossum <guido@python.org>
Thu, 4 Sep 1997 22:12:34 +0000 (22:12 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 4 Sep 1997 22:12:34 +0000 (22:12 +0000)
commit898c915a31633b9df3294382c0499d2ebca4fb2f
tree07ddee24c621f45ecdbcfe2c14eb313ccc5b97b1
parentd807b7589b6dc26057e9754358335183ce9f7a7a
Added some try-excepts so that it can be imported in restricted mode
(though some type names are undefined in that case, e.g. CodeType
(inaccessible), FileType (not always accessible), and TracebackType
and FrameType (inaccessible).
Lib/types.py