2.2 open
Just van Rossum
just at xs4all.nl
Mon Mar 25 07:07:11 EST 2002
In article <qxS77UAi$ln8EwGL at jessikat.fsnet.co.uk>,
Robin Becker <robin at jessikat.fsnet.co.uk> wrote:
> yes, but presumably abs is not the same as type(abs(1.2)) so this only
> applies to certain factories rather than all functions.
But of course: type objects are callable, but not every callable is a
type object...
> So the question now is, how do I tell if __import__ is the built in one
> even if the import system is not fully initialized.
In any case not by comparing its type with type(open)... If you really
can't import types.py at that point, comparing it with eg. type(abs)
doesn't seem too bad.
Just
More information about the Python-list
mailing list