@_built_in_directive
def session(context_name='session', request=None, **kwargs):
 return (request and request.context.get(context_name, None))

@ _built_in_directive def session ( context_name = 'session' , request = None , ** kwargs ) : return ( request and request . context . get ( context_name , None ) )
returns a :class:session for context-management .