diff options
| author | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2011-12-15 23:58:22 +0000 |
|---|---|---|
| committer | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2011-12-15 23:58:22 +0000 |
| commit | b7214216330c4d5b77b2e3389893a3c66b88d218 (patch) | |
| tree | 53c192af5c8a898ccc1b0a56a0e0857347a928f7 /examples/threads.py | |
| parent | c3914b8aa28d9de9834091bf509f5bb1d6f47781 (diff) | |
| download | psycopg2-b7214216330c4d5b77b2e3389893a3c66b88d218.tar.gz | |
A bunch of typos fixed in the examples by Josh Kupershmidt
Diffstat (limited to 'examples/threads.py')
| -rw-r--r-- | examples/threads.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/threads.py b/examples/threads.py index 3c2ef0b..3f2c05f 100644 --- a/examples/threads.py +++ b/examples/threads.py @@ -29,12 +29,12 @@ SELECT_STEP = 500 SELECT_DIV = 250 # the available modes are: -# 0 - one connection for all insert and one for all select threads +# 0 - one connection for all inserts and one for all select threads # 1 - connections generated using the connection pool MODE = 1 -## don't modify anything below tis line (except for experimenting) +## don't modify anything below this line (except for experimenting) import sys, psycopg2, threading from psycopg2.pool import ThreadedConnectionPool @@ -90,7 +90,7 @@ def insert_func(conn_or_pool, rows): conn.commit() ## a nice select function that prints the current number of rows in the -## database (and transefer them, putting some pressure on the network) +## database (and transfer them, putting some pressure on the network) def select_func(conn_or_pool, z): name = threading.currentThread().getName() |
