< BACKMake Note | BookmarkCONTINUE >
156135250194107072078175030179198180025031194137176049106218111004226049070147064241166160

Python Operator Summary

TableC.1 represents the complete set of Python operators and to which standard types they apply. The operators are sorted from highest-to-lowest precedence, with those sharing the same shaded group having the same priority.

Table c.1. Python Operators († - unary)
Operator Int long float complex string list tuple dictionary
[]         • • •  
[:]         • • •  
** • • • •        
• • • •        
• • • •        
• •            
* • • • • • • •  
/ • • • •        
% • • • • •      
+ • • • • • • •  
- • • • •        
<< • •            
>> • •            
& • •            
^ • •            
| • •            
< • • • • • • • •
> • • • • • • • •
<= • • • • • • • •
>= • • • • • • • •
== • • • • • • • •
!= • • • • • • • •
<> • • • • • • • •
is • • • • • • • •
is not • • • • • • • •
in         • • •  
not in         • • •  
not† • • • • • • • •
and • • • • • • • •
or • • • • • • • •


Last updated on 9/14/2001
Core Python Programming, © 2002 Prentice Hall PTR

< BACKMake Note | BookmarkCONTINUE >

© 2002, O'Reilly & Associates, Inc.