Simple tuple question

Richard Brodie R.Brodie at
Mon Mar 20 18:10:28 CET 2000

"Matthew Hirsch" <meh9 at> wrote in message
news:meh9-01021C.12021120032000 at

> 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