-
Notifications
You must be signed in to change notification settings - Fork 20
DOCSP-46685: BSON #159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DOCSP-46685: BSON #159
Conversation
✅ Deploy Preview for docs-pymongo ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some minor suggestions:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
source/data-formats/bson.txt
Outdated
import bson | ||
|
||
with open("file.bson", "w") as file: | ||
file.write(BSON.encode(document)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use bson.encode(document)
not BSON.encode()
source/data-formats/bson.txt
Outdated
|
||
with open("file.bson", "rb") as file: | ||
data = file.read() | ||
document = BSON(data).decode() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use bson.decode(data)
not BSON.decode()
(cherry picked from commit 11167f1)
(cherry picked from commit 11167f1)
(cherry picked from commit 11167f1)
(cherry picked from commit 11167f1)
(cherry picked from commit 11167f1)
Pull Request Info
PR Reviewing Guidelines
JIRA - https://jira.mongodb.org/browse/DOCSP-46685
Staging Links
Self-Review Checklist