PYTHON-967 - Call print as a function in README

This commit is contained in:
Bernie Hackett 2015-08-05 18:25:29 -07:00
parent f62dbc15bd
commit 8b986a4f2c

View File

@ -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