Skip to content

bpo-35116: Adding Doc/library entries for cgi.FieldStorage max_num_fields #10247

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

Merged
merged 3 commits into from
Oct 30, 2018

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).

@@ -166,8 +170,11 @@ or on combining URL components into a URL string.
.. versionchanged:: 3.2
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.

Use the :func:`urllib.parse.urlencode` function to convert such lists of pairs into
query strings.

.. versionchanged:: 3.2
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

@@ -158,6 +158,10 @@ or on combining URL components into a URL string.
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 :-)

@@ -158,6 +158,10 @@ or on combining URL components into a URL string.
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
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.

@@ -187,12 +194,19 @@ or on combining URL components into a URL string.
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
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