This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Wrong description of 'g' conversion type of string formatting operator %
Type: Stage:
Components: Documentation Versions: Python 3.0, Python 2.4, Python 2.3, Python 2.2.3, Python 2.6, Python 2.2.2, Python 2.5, Python 2.2.1, Python 2.2, Python 2.1.2, Python 2.1.1
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: georg.brandl Nosy List: georg.brandl, zybi
Priority: normal Keywords:

Created on 2008-05-06 16:28 by zybi, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (4)
msg66318 - (view) Author: Artur Zaprzała (zybi) Date: 2008-05-06 16:28
Description of 'g' and 'G' conversion types of string formatting
operator at http://www.python.org/doc/2.5.2/lib/typesseq-strings.html is:
  Floating point format. Uses exponential format if exponent is greater
than -4 or less than precision, decimal format otherwise.

Should be:
  Floating point format. Uses exponential format if exponent is less
than -4 or not less than precision, decimal format otherwise.
msg66321 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2008-05-06 17:11
Thanks, fixed in r62774.
msg66322 - (view) Author: Artur Zaprzała (zybi) Date: 2008-05-06 17:18
The fix is wrong. not less == greater than or equal to
msg66323 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2008-05-06 17:21
Argh, fixed in r62775.
History
Date User Action Args
2022-04-11 14:56:34adminsetgithub: 47022
2008-05-06 17:21:10georg.brandlsetmessages: + msg66323
2008-05-06 17:18:38zybisetmessages: + msg66322
2008-05-06 17:11:52georg.brandlsetstatus: open -> closed
resolution: fixed
messages: + msg66321
2008-05-06 16:28:46zybicreate