PYTHON-967 - Call print as a function in README
This commit is contained in:
parent
f62dbc15bd
commit
8b986a4f2c
@ -134,7 +134,7 @@ Here's a basic example (for more see the *examples* section of the docs):
|
||||
>>> db.my_collection.find_one()
|
||||
{u'x': 10, u'_id': ObjectId('4aba15ebe23f6b53b0000000')}
|
||||
>>> for item in db.my_collection.find():
|
||||
... print item["x"]
|
||||
... print(item["x"])
|
||||
...
|
||||
10
|
||||
8
|
||||
@ -142,7 +142,7 @@ Here's a basic example (for more see the *examples* section of the docs):
|
||||
>>> db.my_collection.create_index("x")
|
||||
u'x_1'
|
||||
>>> for item in db.my_collection.find().sort("x", pymongo.ASCENDING):
|
||||
... print item["x"]
|
||||
... print(item["x"])
|
||||
...
|
||||
8
|
||||
10
|
||||
|
||||
Loading…
Reference in New Issue
Block a user