Skip to content

Conversation

blink1073
Copy link
Member

No description provided.

Copy link
Contributor

@juliusgeo juliusgeo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The diff weirdly shows the entire block being changed--not sure what's up with that. Otherwise looks good!

@blink1073 blink1073 merged commit 7299dff into mongodb:master Jan 5, 2023
@blink1073 blink1073 deleted the PYTHON-3546 branch January 5, 2023 19:55
Copy link
Member

@ShaneHarvey ShaneHarvey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The diff weirdly shows the entire block being changed--not sure what's up with that

In diffs like this it's helpful to use the "ignore whitespace changes" setting (w=1): https://github.com/mongodb/mongo-python-driver/pull/1131/files?diff=split&w=1

retrieved from the server will be modified in the client application
and stored back to the server.
"""
return super().__init__()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't we have to pass *args, **kwargs here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, no, now I remember. namedtuple.__init__() "takes exactly one argument (the instance to initialize))". The args and kwargs are handled in __new__().

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah okay. That's not intuitive at all :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants