Visitar URL original
bpo-23952: Document cgi module's maxlen variable by hugovk · Pull Request #30338 · python/cpython · GitHub
Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
bpo-23952: maxlen is a global variable
  • Loading branch information
hugovk committed Jan 2, 2022
commit 90442ca1d640fe127c4d1f96678fd6a7022ee8a9
4 changes: 2 additions & 2 deletions Doc/library/cgi.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ Support module for Common Gateway Interface (CGI) scripts.
This module defines a number of utilities for use by CGI scripts written in
Python.

The ``maxlen`` variable can be set to an integer indicating the maximum size
of a POST request. POST requests larger than this size will result in a
The global variable ``maxlen`` can be set to an integer indicating the maximum
size of a POST request. POST requests larger than this size will result in a
:exc:`ValueError` being raised during parsing. The default value of this
variable is ``0``, meaning the request size is unlimited.

Expand Down
8 changes: 4 additions & 4 deletions Lib/cgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
This module defines a number of utilities for use by CGI scripts
written in Python.

The maxlen variable can be set to an integer indicating the maximum size of a
POST request. POST requests larger than this size will result in a ValueError
being raised during parsing. The default value of this variable is 0, meaning
the request size is unlimited.
The global variable maxlen can be set to an integer indicating the maximum size
of a POST request. POST requests larger than this size will result in a
ValueError being raised during parsing. The default value of this variable is 0,
meaning the request size is unlimited.
"""

# History
Expand Down