Simple tuple question
R.Brodie at rl.ac.uk
Mon Mar 20 18:10:28 CET 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
More information about the Python-list