#NEWLINE# @ loader_option ( ) #NEWLINE# def load_only( loadopt , * attrs ) : #NEWLINE# #INDENT# 'Indicate that for a particular entity, only the given list\n    of column-based attribute names should be loaded; all others will be\n    deferred.\n\n    This function is part of the :class:`.Load` interface and supports\n    both method-chained and standalone operation.\n\n    Example - given a class ``User``, load only the ``name`` and ``fullname``\n    attributes::\n\n        session.query(User).options(load_only("name", "fullname"))\n\n    Example - given a relationship ``User.addresses -> Address``, specify\n    subquery loading for the ``User.addresses`` collection, but on each\n    ``Address`` object load only the ``email_address`` attribute::\n\n        session.query(User).options(\n                subqueryload("addreses").load_only("email_address")\n        )\n\n    For a :class:`.Query` that has multiple entities, the lead entity can be\n    specifically referred to using the :class:`.Load` constructor::\n\n        session.query(User, Address).join(User.addresses).options(\n                    Load(User).load_only("name", "fullname"),\n                    Load(Address).load_only("email_addres")\n                )\n\n\n    .. versionadded:: 0.9.0\n\n    ' #NEWLINE# cloned = loadopt . set_column_strategy ( attrs , { #NEWLINE# #INDENT# 'deferred' : False , #NEWLINE# 'instrument' : True , #NEWLINE# #UNINDENT# } ) #NEWLINE# cloned . set_column_strategy ( '*' , { #NEWLINE# #INDENT# 'deferred' : True , #NEWLINE# 'instrument' : True , #NEWLINE# #UNINDENT# } , { #NEWLINE# #INDENT# 'undefer_pks' : True , #NEWLINE# #UNINDENT# } ) #NEWLINE# return cloned