[issue45217] ConfigParser does not accept "No value" reversely to the doc

2021-09-16 Thread sbougnoux


New submission from sbougnoux :

Just the simple following config crashes

"""
[Bug]
Here
"""

Hopefully using "Here=" solves the issue, but the doc claims it shall work.
https://docs.python.org/3.8/library/configparser.html?highlight=configparser#supported-ini-file-structure

Save the config in "bug.ini", then write (it will raise an exception)
"""
from configparser import ConfigParser
ConfigParser().read('bug.ini')
"""

--
assignee: docs@python
components: Demos and Tools, Documentation, Library (Lib)
messages: 401932
nosy: docs@python, sbougnoux
priority: normal
severity: normal
status: open
title: ConfigParser does not accept "No value" reversely to the doc
type: behavior
versions: Python 3.8, Python 3.9

___
Python tracker 
<https://bugs.python.org/issue45217>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45217] ConfigParser does not accept "No value" reversely to the doc

2021-09-17 Thread sbougnoux


sbougnoux  added the comment:

Thanks for your prompt answer. Don't you think it should be the default? It 
seems like unneeded precision. Just if you want to check one don't miss a 
value, but in that case, one can use 'allow_no_value=False'.

--

___
Python tracker 
<https://bugs.python.org/issue45217>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com