Skip to content

Conversation

@matthewbelisle-wf
Copy link
Contributor

@matthewbelisle-wf matthewbelisle-wf commented Oct 30, 2018

@matthewbelisle-wf
Copy link
Contributor Author

For your review @vstinner from your comment in #9969 (comment).

Add *encoding* and *errors* parameters.

.. versionchanged:: 3.8
Added *max_num_fields* param.
Copy link
Member

Choose a reason for hiding this comment

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

Please replace "param" with "parameter.

Add *encoding* and *errors* parameters.

.. versionchanged:: 3.8
Added *max_num_fields* param.
Copy link
Member

Choose a reason for hiding this comment

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

Ditto.

@matthewbelisle-wf
Copy link
Contributor Author

Ditto, fixed in 1c3f2f0 @vstinner

percent-encoded sequences into Unicode characters, as accepted by the
:meth:`bytes.decode` method.

The optional argument *max_num_fields* is a flag for the maximum number of
Copy link
Member

Choose a reason for hiding this comment

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

I would just say "The optional argument max_num_fields is the maximum number of ..."

Note: wait until this PR is merged before updating the 3 other PRs :-)


The optional argument *max_num_fields* is a flag for the maximum number of
fields to read. If set, then throws a :exc:`ValueError` if there are more
than *max_num_fields* fields read. Default is *None*.
Copy link
Member

Choose a reason for hiding this comment

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

"Default is None." IMHO it's redundant with the function prototype and can be removed.


The optional argument *max_num_fields* is a flag for the maximum number of
fields to read. If set, then throws a :exc:`ValueError` if there are more
than *max_num_fields* fields read. Default is *None*.
Copy link
Member

Choose a reason for hiding this comment

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

Ditto.

@matthewbelisle-wf
Copy link
Contributor Author

Sure thing @vstinner fixed in 51d6fb3.

Copy link
Member

@vstinner vstinner left a comment

Choose a reason for hiding this comment

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

LGTM.

@vstinner
Copy link
Member

You can now update the 3 other PRs :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation in the Doc dir skip news

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants