#NEWLINE# def _current_obj( self ) : #NEWLINE# #INDENT# 'Returns the current active object being proxied to\n\n        In the event that no object was pushed, the default object if\n        provided will be used. Otherwise, a TypeError will be raised.\n\n        ' #NEWLINE# try : #NEWLINE# #INDENT# objects = self . ____local__ . objects #NEWLINE# #UNINDENT# except AttributeError : #NEWLINE# #INDENT# objects = None #NEWLINE# #UNINDENT# if objects : #NEWLINE# #INDENT# return objects [ ( - 1 ) ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# obj = self . __dict__ . get ( '____default_object__' , NoDefault ) #NEWLINE# if ( obj is not NoDefault ) : #NEWLINE# #INDENT# return obj #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise TypeError ( ( 'No object (name: %s) has been registered for this thread' % self . ____name__ ) )