Author: cito
Date: Tue Jan 12 03:08:40 2016
New Revision: 718
Log:
Fixed misleading docstrings
The methods work with dicts, not with tuples,
so speaking of a tuple in this context can be confusing.
Modified:
branches/4.x/pg.py
trunk/pg.py
Modified: branches/4.x/pg.py
==============================================================================
--- branches/4.x/pg.py Mon Jan 11 12:16:46 2016 (r717)
+++ branches/4.x/pg.py Tue Jan 12 03:08:40 2016 (r718)
@@ -726,7 +726,7 @@
return ret
def get(self, cl, arg, keyname=None):
- """Get a tuple from a database table or view.
+ """Get a row from a database table or view.
This method is the basic mechanism to get a single row. The keyname
that the key specifies a unique row. If keyname is not specified
@@ -782,7 +782,7 @@
return arg
def insert(self, cl, d=None, **kw):
- """Insert a tuple into a database table.
+ """Insert a row into a database table.
This method inserts a row into a table. If a dictionary is
supplied it starts with that. Otherwise it uses a blank dictionary.
Modified: trunk/pg.py
==============================================================================
--- trunk/pg.py Mon Jan 11 12:16:46 2016 (r717)
+++ trunk/pg.py Tue Jan 12 03:08:40 2016 (r718)
@@ -730,7 +730,7 @@
return ret
def get(self, cl, arg, keyname=None):
- """Get a tuple from a database table or view.
+ """Get a row from a database table or view.
This method is the basic mechanism to get a single row. The keyname
that the key specifies a unique row. If keyname is not specified
@@ -790,7 +790,7 @@
return arg
def insert(self, cl, d=None, **kw):
- """Insert a tuple into a database table.
+ """Insert a row into a database table.
This method inserts a row into a table. If a dictionary is
supplied it starts with that. Otherwise it uses a blank dictionary.
_______________________________________________
PyGreSQL mailing list
[email protected]
https://mail.vex.net/mailman/listinfo.cgi/pygresql