[issue21195] None float format: incomplete documentation

Eric O. LEBIGOT report at bugs.python.org
Thu Apr 10 14:19:35 CEST 2014


New submission from Eric O. LEBIGOT:

The documentation for a None (empty) format for floats indicates that it is equivalent to the g format. This does not appear to be correct (http://stackoverflow.com/questions/16525924/precise-definition-of-float-string-formatting).

The Python 3.4 documentation (https://docs.python.org/3.4/library/string.html#format-specification-mini-language) seems to be much closer to what Python 2.7 does.

It would be useful to have a more correct documentation for the effect of a None format for floats in Python 2.7 (maybe by copying the Python 3.4 documentation if it applies).

----------
assignee: docs at python
components: Documentation
messages: 215871
nosy: docs at python, lebigot
priority: normal
severity: normal
status: open
title: None float format: incomplete documentation
type: enhancement
versions: Python 2.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21195>
_______________________________________


More information about the Python-bugs-list mailing list