2.2 features
Guido van Rossum
guido at python.org
Fri Jul 27 16:01:04 EDT 2001
John Schmitt <jschmitt at vmlabs.com> writes:
> Why do we have to wait for 2.2? You can do this already.
> >>> import types
> >>> types.IntType
> <type 'int'>
> >>> assert isinstance(0,types.IntType)
[me, earlier]
> > assert isinstance(num, int)
> > assert isinstance(msg, str)
In 2.2 you don't have to import types.
--Guido van Rossum (home page: http://www.python.org/~guido/)
More information about the Python-list
mailing list