<s> try : <EOL> print intern ( <NUM_LIT> ) <EOL> except TypeError : <EOL> print "<STR_LIT>" <EOL> print intern ( "<STR_LIT>" ) <EOL> class StringSubclass ( str ) : <EOL> pass <EOL> try : <EOL> print intern ( StringSubclass ( ) ) <EOL> except TypeError : <EOL> print "<STR_LIT>" <EOL> s1 = "<STR_LIT>" <EOL> s2 = "<STR_LIT>" <EOL> print s1 + s2 is s1 + s2 <EOL> print intern ( s1 + s2 ) is intern ( s1 + s2 ) </s>
