Simple tuple question
Richard Brodie
R.Brodie at rl.ac.uk
Mon Mar 20 12:10:28 EST 2000
"Matthew Hirsch" <meh9 at cornell.edu> wrote in message
news:meh9-01021C.12021120032000 at news.cit.cornell.edu...
> type(a) returns <type 'tuple'>, but I can't really seem to do anything
> with this statement.
The FM says:
'Type objects represent the various object types. An object's type is accessed by the built-in
function type(). There are no special operations on types. The standard module types defines names
for all standard built-in types. '
So what you need to do is import the types module and compare with the reference type
objects there.
More information about the Python-list
mailing list