Created
April 21, 2011 06:24
-
-
Save sergray/933846 to your computer and use it in GitHub Desktop.
Django 1.2.5 db.connection.cursor classes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Python 2.6.6 (r266:84292, Sep 15 2010, 16:22:56) | |
IPython 0.10 -- An enhanced Interactive Python. | |
In [1]: from django.conf import settings | |
In [2]: settings.DEBUG | |
Out[2]: False | |
In [3]: from django.db import connection | |
In [4]: cur = connection.cursor() | |
In [5]: cur.execute? | |
Type: instancemethod | |
Base Class: <type 'instancemethod'> | |
String Form: <bound method CursorWrapper.execute of <django.db.backends.postgresql_psycopg2.base.CursorWrapper object at 0x2924810>> | |
Namespace: Interactive | |
File: .../ve/lib/python2.6/site-packages/django/db/backends/postgresql_psycopg2/base.py | |
Definition: cur.execute(self, query, args=None) | |
Docstring: | |
<no docstring> | |
Python 2.6.6 (r266:84292, Sep 15 2010, 16:22:56) | |
IPython 0.10 -- An enhanced Interactive Python. | |
In [1]: from django.conf import settings | |
In [2]: settings.DEBUG | |
Out[2]: True | |
In [3]: from django.db import connection | |
In [4]: cur = connection.cursor() | |
In [5]: cur.execute? | |
Type: instancemethod | |
Base Class: <type 'instancemethod'> | |
String Form: <bound method CursorDebugWrapper.execute of <django.db.backends.util.CursorDebugWrapper object at 0x2e12810>> | |
Namespace: Interactive | |
File: ...ve/lib/python2.6/site-packages/django/db/backends/util.py | |
Definition: cur.execute(self, sql, params=()) | |
Docstring: | |
<no docstring> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment