Operators and Types

Most Python operations fall into one of these categories

  • Numbers
  • Sequences
  • Mappings

And these are closely related to the built-in types

  • Numbers (integers, floats, long integers, complex)
  • Sequences (strings, lists, tuples)
  • Mappings (dictionaries, classes, modules)

User-defined classes can also emulate built-in types

  • Operator overloading (later)
<<< O'Reilly OSCON 2000, Introduction to Python, Slide 51
July 17, 2000, beazley@cs.uchicago.edu
>>>