<s> class MyDict ( dict ) : <EOL> pass <EOL> d = MyDict ( ) <EOL> d [ <NUM_LIT:1> ] = <NUM_LIT:2> <EOL> print d . keys ( ) <EOL> print d . values ( ) <EOL> print d . items ( ) <EOL> print list ( d . iterkeys ( ) ) <EOL> print list ( d . itervalues ( ) ) <EOL> print list ( d . iteritems ( ) ) <EOL> class DictWithMissing ( dict ) : <EOL> def __missing__ ( self , key ) : <EOL> print key <EOL> return key <EOL> d = DictWithMissing ( ) <EOL> print d [ <NUM_LIT:5> ] </s>
