diff options
Diffstat (limited to 'Doc/includes/sqlite3/executemany_1.py')
-rw-r--r-- | Doc/includes/sqlite3/executemany_1.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Doc/includes/sqlite3/executemany_1.py b/Doc/includes/sqlite3/executemany_1.py index edf6f8b..24357c5 100644 --- a/Doc/includes/sqlite3/executemany_1.py +++ b/Doc/includes/sqlite3/executemany_1.py @@ -7,7 +7,7 @@ class IterChars: def __iter__(self): return self - def __next__(self): + def next(self): if self.count > ord('z'): raise StopIteration self.count += 1 @@ -21,6 +21,4 @@ theIter = IterChars() cur.executemany("insert into characters(c) values (?)", theIter) cur.execute("select c from characters") -print(cur.fetchall()) - -con.close() +print cur.fetchall() |