def __call__(self, named_arg=None, *args, **kwargs):
    session.begin()
    post = Post(title='the title', body='das bothy')
    session.commit()
    # dir(Post) ['__class__', '__delattr__', '__dict__', '__doc__', '__getattribute__', '__hash__', '__init__', '__metaclass__', '__module__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__str__', '__weakref__', '_caller', '_class_state', '_descriptor', '_global_session', '_setup_done', 'body', 'c', 'count', 'count_by', 'delete', 'expire', 'expunge', 'filter', 'filter_by', 'flush', 'get', 'get_by', 'id', 'instances', 'join_to', 'join_via', 'mapper', 'merge', 'options', 'query', 'refresh', 'save', 'save_or_update', 'select', 'select_by', 'selectfirst', 'selectfirst_by', 'selectone', 'selectone_by', 'set', 'table', 'title', 'update']
    # dir(session) ['__call__', '__class__', '__contains__', '__delattr__', '__dict__', '__doc__', '__getattribute__', '__hash__', '__init__', '__iter__', '__module__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__str__', '__weakref__', 'begin', 'begin_nested', 'bind', 'clear', 'close', 'close_all', 'commit', 'configure', 'connection', 'delete', 'deleted', 'dirty', 'execute', 'expire', 'expunge', 'extension', 'flush', 'get', 'get_bind', 'identity_key', 'identity_map', 'is_modified', 'load', 'mapper', 'merge', 'new', 'object_session', 'query', 'query_property', 'refresh', 'registry', 'remove', 'rollback', 'save', 'save_or_update', 'scalar', 'session_factory', 'update']
    response.headers.append('Content-Type: text/xml')
    return [
      post % "newly created post = %s\n",
      "Post.query.all() = %s\n" % repr(Post.query.all()),
      "from root > %s.__call__()\n" % repr(self),
      "  named_arg = %s\n" % repr(named_arg),
      "  args      = %s\n" % repr(args),
      "  kwargs    = %s\n" % repr(kwargs)
    ]
dataset/ETHPy150Open rsms/smisk/admin/old_examples/modload/app/controllers.py/posts.__call__/swapped operands of `%`