simon-git: spigot (master): Simon Tatham
Commits to Tartarus hosted VCS
tartarus-commits at lists.tartarus.org
Sun Oct 15 15:08:47 BST 2017
TL;DR:
b1dafb1 Python: extend .format() syntax with rounding mode spec.
Repository: https://git.tartarus.org/simon/spigot.git
On the web: https://git.tartarus.org/?p=simon/spigot.git
Branch updated: master
Committer: Simon Tatham <anakin at pobox.com>
Date: 2017-10-15 15:08:47
commit b1dafb1213db62514e1c97333fd8b2983977956d
web diff https://git.tartarus.org/?p=simon/spigot.git;a=commitdiff;h=b1dafb1213db62514e1c97333fd8b2983977956d;hp=599a8f39f01b14626e502d13dbf4d0a33f43ebe0
Author: Simon Tatham <anakin at pobox.com>
Date: Sun Oct 15 15:02:29 2017 +0100
Python: extend .format() syntax with rounding mode spec.
Since spigot _can_ format with all those rounding modes, it seems
silly not to provide a way of doing it in the printf-style output,
without being hidebound by the fact that ordinary Python float
formatting doesn't have the same feature.
python/spig/__init__.py | 31 +++++++++++++++++++++++++++++--
python/testsuite.py | 21 +++++++++++++++++++++
2 files changed, 50 insertions(+), 2 deletions(-)
More information about the tartarus-commits
mailing list