Treat columns as ordered throughout code

The set() does not make anything any easier,
lists are closer to underlying representation.
This commit is contained in:
Stefan Wehrmeyer
2014-01-31 20:42:04 +01:00
parent 89ebd62732
commit 8f4cd59c9a
3 changed files with 8 additions and 6 deletions
+2 -2
View File
@@ -76,8 +76,8 @@ database:
Now, let's list all columns available in the table ``user``:
>>> print db['user'].columns
set([u'id', u'name', u'email', u'pwd', u'country'])
>>> print(db['user'].columns)
[u'id', u'name', u'email', u'pwd', u'country']
Using ``len()`` we can get the total number of rows in a table: