#NEWLINE# def displayhook( obj ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# stream = _local . stream #NEWLINE# #UNINDENT# except AttributeError : #NEWLINE# #INDENT# return _displayhook ( obj ) #NEWLINE# #UNINDENT# if ( obj is not None ) : #NEWLINE# #INDENT# _local . _current_ipy . locals [ '_' ] = obj #NEWLINE# stream . _write ( debug_repr ( obj ) )