simon-git: spigot (master): Simon Tatham

Commits to Tartarus hosted VCS tartarus-commits at lists.tartarus.org
Mon Oct 9 19:53:07 BST 2017


TL;DR:
  3befda1 Python testenv: support multiple Python versions.
  2124ba9 Python testenv: support '--' for arbitrary Python command line.
  08dcb92 Python bindings: facility to provide a continued fraction as input.

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-09 19:53:07

commit 3befda17c535cfc55cb5eb6d0f21617fbd98ec69
web diff https://git.tartarus.org/?p=simon/spigot.git;a=commitdiff;h=3befda17c535cfc55cb5eb6d0f21617fbd98ec69;hp=28592f103aa60a5e950755aaf332d983a7c9609b
Author: Simon Tatham <anakin at pobox.com>
Date:   Mon Oct 9 19:02:30 2017 +0100

    Python testenv: support multiple Python versions.
    
    Now if there's more than one subdir of 'build' targeting different
    versions of Python (as there is quite often, now that I'm testing all
    this Python stuff against P2 and P3 simultaneously), 'testenv' will
    automatically narrow down to only the one(s) referring to the version
    of Python it was invoked with. Then it'll use sys.executable to launch
    the underlying script. The combined effect is that I can say one of
    'python2 testenv demo.py' and 'python3 testenv demo.py', and it will
    automatically do the right thing, in the sense of running demo.py with
    the version of Python I asked for, and with PYTHONPATH set up
    appropriately for that version too.

 python/testenv | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

commit 2124ba9a7f0b5d43676247d299756649c7bcb2ba
web diff https://git.tartarus.org/?p=simon/spigot.git;a=commitdiff;h=2124ba9a7f0b5d43676247d299756649c7bcb2ba;hp=3befda17c535cfc55cb5eb6d0f21617fbd98ec69
Author: Simon Tatham <anakin at pobox.com>
Date:   Mon Oct 9 19:02:36 2017 +0100

    Python testenv: support '--' for arbitrary Python command line.
    
    Now 'python testenv --' runs the interpreter in interactive mode with
    PYTHONPATH set appropriately. Previously the command-line syntax
    limitations of testenv meant I could only do that by getting my shell
    to permanently change its environment based on the output of testenv.

 python/testenv | 2 ++
 1 file changed, 2 insertions(+)

commit 08dcb92ee88964181628e9b1ff8a3c86728769ee
web diff https://git.tartarus.org/?p=simon/spigot.git;a=commitdiff;h=08dcb92ee88964181628e9b1ff8a3c86728769ee;hp=2124ba9a7f0b5d43676247d299756649c7bcb2ba
Author: Simon Tatham <anakin at pobox.com>
Date:   Mon Oct 9 19:49:16 2017 +0100

    Python bindings: facility to provide a continued fraction as input.
    
    The new function spigot.continued_fraction() can take either an
    integer->integer function, or an iterator delivering integers, and
    will give back a Spigot object describing the real number with those
    continued fraction coefficients.

 python/demo.py          | 24 +++++++++++++
 python/pyspig.cpp       | 95 +++++++++++++++++++++++++++++++++++++++++++++++++
 python/spig/__init__.py | 21 +++++++++++
 python/testsuite.py     | 25 +++++++++++++
 4 files changed, 165 insertions(+)



More information about the tartarus-commits mailing list