# sqlalchemy 2.1.9 (MIT), harvested by tools/harvest_corpus.py
=== input
True if this :class:`.Session` not in "partial rollback" state.

        .. container:: class_bases

            Proxied for the :class:`_orm.Session` class
            on behalf of the :class:`_orm.scoping.scoped_session` class.

        .. versionchanged:: 1.4 The :class:`_orm.Session` no longer begins
           a new transaction immediately, so this attribute will be False
           when the :class:`_orm.Session` is first instantiated.

        "partial rollback" state typically indicates that the flush process
        of the :class:`_orm.Session` has failed, and that the
        :meth:`_orm.Session.rollback` method must be emitted in order to
        fully roll back the transaction.

        If this :class:`_orm.Session` is not in a transaction at all, the
        :class:`_orm.Session` will autobegin when it is first used, so in this
        case :attr:`_orm.Session.is_active` will return True.

        Otherwise, if this :class:`_orm.Session` is within a transaction,
        and that transaction has not been rolled back internally, the
        :attr:`_orm.Session.is_active` will also return True.

        .. seealso::

            :ref:`faq_session_rollback`

            :meth:`_orm.Session.in_transaction`


        
=== parse rest
short_description: 'True if this :class:`.Session` not in "partial rollback" state.'
long_description: |
  .. container:: class_bases
  
      Proxied for the :class:`_orm.Session` class
      on behalf of the :class:`_orm.scoping.scoped_session` class.
  
  .. versionchanged:: 1.4 The :class:`_orm.Session` no longer begins
     a new transaction immediately, so this attribute will be False
     when the :class:`_orm.Session` is first instantiated.
  
  "partial rollback" state typically indicates that the flush process
  of the :class:`_orm.Session` has failed, and that the
  :meth:`_orm.Session.rollback` method must be emitted in order to
  fully roll back the transaction.
  
  If this :class:`_orm.Session` is not in a transaction at all, the
  :class:`_orm.Session` will autobegin when it is first used, so in this
  case :attr:`_orm.Session.is_active` will return True.
  
  Otherwise, if this :class:`_orm.Session` is within a transaction,
  and that transaction has not been rolled back internally, the
  :attr:`_orm.Session.is_active` will also return True.
  
  .. seealso::
  
      :ref:`faq_session_rollback`
  
      :meth:`_orm.Session.in_transaction`
blank_after_short_description: True
blank_after_long_description: False
style: rest
=== detect
rest
=== compose rest
True if this :class:`.Session` not in "partial rollback" state.

.. container:: class_bases

    Proxied for the :class:`_orm.Session` class
    on behalf of the :class:`_orm.scoping.scoped_session` class.

.. versionchanged:: 1.4 The :class:`_orm.Session` no longer begins
   a new transaction immediately, so this attribute will be False
   when the :class:`_orm.Session` is first instantiated.

"partial rollback" state typically indicates that the flush process
of the :class:`_orm.Session` has failed, and that the
:meth:`_orm.Session.rollback` method must be emitted in order to
fully roll back the transaction.

If this :class:`_orm.Session` is not in a transaction at all, the
:class:`_orm.Session` will autobegin when it is first used, so in this
case :attr:`_orm.Session.is_active` will return True.

Otherwise, if this :class:`_orm.Session` is within a transaction,
and that transaction has not been rolled back internally, the
:attr:`_orm.Session.is_active` will also return True.

.. seealso::

    :ref:`faq_session_rollback`

    :meth:`_orm.Session.in_transaction`
