summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2010-08-25 11:01:46 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2010-08-25 11:01:46 -0400
commit1402a608ebc28031ce11dec9ed6a90785f09294d (patch)
treeeae462b30a47046e445aac8401e8b2b20860a64d /lib/sqlalchemy
parente104dfff86f03b440e4fe1f48022d2d4ac18ebce (diff)
parent49827cffd3c2d9b5e0229760b0d8e0966a58a369 (diff)
downloadsqlalchemy-1402a608ebc28031ce11dec9ed6a90785f09294d.tar.gz
merge changes from alternate branch
Diffstat (limited to 'lib/sqlalchemy')
-rw-r--r--lib/sqlalchemy/orm/__init__.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/sqlalchemy/orm/__init__.py b/lib/sqlalchemy/orm/__init__.py
index c74fabacd..50ea4c283 100644
--- a/lib/sqlalchemy/orm/__init__.py
+++ b/lib/sqlalchemy/orm/__init__.py
@@ -115,8 +115,7 @@ def scoped_session(session_factory, scopefunc=None):
:class:`~sqlalchemy.orm.scoping.ScopedSession`.
:param session_factory: a callable function that produces
- :class:`Session` instances, such as :func:`sessionmaker` or
- :func:`create_session`.
+ :class:`Session` instances, such as :func:`sessionmaker`.
:param scopefunc: optional, TODO
@@ -141,7 +140,12 @@ def scoped_session(session_factory, scopefunc=None):
return ScopedSession(session_factory, scopefunc=scopefunc)
def create_session(bind=None, **kwargs):
- """Create a new :class:`~sqlalchemy.orm.session.Session`.
+ """Create a new :class:`.Session`
+ with no automation enabled by default.
+
+ This function is used primarily for testing. The usual
+ route to :class:`.Session` creation is via its constructor
+ or the :func:`.sessionmaker` function.
:param bind: optional, a single Connectable to use for all
database access in the created