Closed
Labels
docsDocumentation in the Doc dirDocumentation in the Doc dir
Description
Documentation
https://docs.python.org/3/howto/logging-cookbook.html#use-of-contextvars
The argument count should be converted to integer type if user passes value to main.py.
$ python3 main.py --count 100
Traceback (most recent call last):
File "/home/tom/main.py", line 138, in <module>
main()
File "/home/tom/main.py", line 117, in main
for i in range(options.count):
TypeError: 'str' object cannot be interpreted as an integerLinked PRs
Metadata
Metadata
Assignees
Labels
docsDocumentation in the Doc dirDocumentation in the Doc dir
Activity
gh-100916: Convert argument to appropriate type (GH-100917)
pythongh-100916: Convert argument to appropriate type (pythonGH-100917)
pythongh-100916: Convert argument to appropriate type (pythonGH-100917)
[3.11] gh-100916: Convert argument to appropriate type (GH-100917) (G…
[3.10] gh-100916: Convert argument to appropriate type (GH-100917) (G…