[issue16085] Minor config parser doc change

New submission from Mark Lawrence:
From http://docs.python.org/library/configparser.html#examples
float = config.getfloat('Section1', 'float') int = config.getint('Section1', 'int') print float + int It's not a good idea to have float or int used like this in examples. Maybe my_float and my_int or sec1_float and sec_int? ---------- assignee: docs@python components: Documentation messages: 171573 nosy: BreamoreBoy, docs@python priority: normal severity: normal status: open title: Minor config parser doc change type: enhancement _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue16085> _______________________________________

Roundup Robot added the comment: New changeset 178e7183931e by R David Murray in branch '3.2': #16085: Don't promote shadowing builtins in the configparser example. http://hg.python.org/cpython/rev/178e7183931e New changeset 769247e6edbf by R David Murray in branch '3.3': Merge #16085: Don't promote shadowing builtins in the configparser example. http://hg.python.org/cpython/rev/769247e6edbf New changeset 1c9b0b37f097 by R David Murray in branch 'default': Merge #16085: Don't promote shadowing builtins in the configparser example. http://hg.python.org/cpython/rev/1c9b0b37f097 New changeset 1ee270d522f3 by R David Murray in branch '2.7': #16085: Don't promote shadowing builtins in the configparser example. http://hg.python.org/cpython/rev/1ee270d522f3 ---------- nosy: +python-dev _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue16085> _______________________________________

R. David Murray added the comment: Fixed. Thanks, Mark. ---------- nosy: +r.david.murray resolution: -> fixed stage: -> committed/rejected status: open -> closed versions: +Python 2.7, Python 3.2, Python 3.3, Python 3.4 _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue16085> _______________________________________

Roundup Robot added the comment: New changeset 178e7183931e by R David Murray in branch '3.2': #16085: Don't promote shadowing builtins in the configparser example. http://hg.python.org/cpython/rev/178e7183931e New changeset 769247e6edbf by R David Murray in branch '3.3': Merge #16085: Don't promote shadowing builtins in the configparser example. http://hg.python.org/cpython/rev/769247e6edbf New changeset 1c9b0b37f097 by R David Murray in branch 'default': Merge #16085: Don't promote shadowing builtins in the configparser example. http://hg.python.org/cpython/rev/1c9b0b37f097 New changeset 1ee270d522f3 by R David Murray in branch '2.7': #16085: Don't promote shadowing builtins in the configparser example. http://hg.python.org/cpython/rev/1ee270d522f3 ---------- nosy: +python-dev _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue16085> _______________________________________

R. David Murray added the comment: Fixed. Thanks, Mark. ---------- nosy: +r.david.murray resolution: -> fixed stage: -> committed/rejected status: open -> closed versions: +Python 2.7, Python 3.2, Python 3.3, Python 3.4 _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue16085> _______________________________________
participants (3)
-
Mark Lawrence
-
R. David Murray
-
Roundup Robot