simon-git: polyhedra (master): Simon Tatham
Commits to Tartarus hosted VCS
tartarus-commits at lists.tartarus.org
Thu May 9 08:50:54 BST 2019
TL;DR:
99cc469 Update all my polyhedra scripts to run in Python 3.
Repository: https://git.tartarus.org/simon/polyhedra.git
On the web: https://git.tartarus.org/?p=simon/polyhedra.git
Branch updated: master
Committer: Simon Tatham <anakin at pobox.com>
Date: 2019-05-09 08:50:54
commit 99cc469a719677ce08d4f32535782dad5fc1ae63
web diff https://git.tartarus.org/?p=simon/polyhedra.git;a=commitdiff;h=99cc469a719677ce08d4f32535782dad5fc1ae63;hp=9ed1bc70fa1ad742d244796198211b711f650103
Author: Simon Tatham <anakin at pobox.com>
Date: Thu May 9 07:58:51 2019 +0100
Update all my polyhedra scripts to run in Python 3.
A user complained yesterday, so someone actually wants to use them!
And they are written in pretty out-of-date Python these days - not
even idiomatic for up-to-date P2, let alone compatible with P3.
Now they run in both, and while I'm here, I've updated all uses of the
old printf-style % operator to new .format(), and removed ugly
backslash-continuations of source lines. But I'm sure they're still
falling short of modern idiom in places this hasty update pass didn't
reach.
canvas.py | 40 +++++++++---------
cleanpoly.py | 32 +++++++-------
crosspoint.py | 4 +-
describe.py | 24 +++++------
drawnet.py | 117 +++++++++++++++++++++++----------------------------
drawpoints.py | 9 ++--
drawpoly.py | 32 +++++++-------
dual.py | 24 +++++------
flashpoly.py | 47 ++++++++++-----------
isometry.py | 22 +++++-----
misc/dihedral.py | 55 ++++++++++++------------
mkpoints.py | 2 +-
nfaces.py | 22 +++++-----
nvertices.py | 21 ++++-----
povpoly.py | 63 +++++++++++++++------------
regular/mkregular.py | 18 ++++----
untangle.py | 43 +++++++++----------
17 files changed, 281 insertions(+), 294 deletions(-)
More information about the tartarus-commits
mailing list