tiddlylisp icon indicating copy to clipboard operation
tiddlylisp copied to clipboard

Python 3 support

Open robstolarz opened this issue 4 years ago • 1 comments

I realize this repository is "bugfix only", but the article's future use will be limited if only those with a working python2 interpreter can play along with the examples in the article.

I ran 2to3 on tiddlylisp and then patched up the remaining change by hand. It seems to work:

[rob@Abigail tiddlylisp]$ python3 tiddlylisp.py
tiddlylisp> (/ 4 3)
1.3333333333333333

along with the more interesting features:

tiddlylisp> (define square (lambda (x) (* x x)))
tiddlylisp> (square 7)
49

robstolarz avatar Aug 21 '20 05:08 robstolarz

You beat me to it, @robstolarz . I was going to work my way through the article and then submit a PR for this myself!

Thank you for this!

StephenTanksley avatar Apr 10 '21 03:04 StephenTanksley

@robstolarz thanks for doing this.

I hope @mnielsen will merge this PR since Python 2.7 is out of support and users don't need more reasons to install potential security vulnerabilities on their systems. Especially those who are potentially just getting into programming and might not understand the implications of installing Python 2. Thanks for the great article and creating this repo.

shombando avatar May 20 '23 20:05 shombando

Many thanks all! If there are any further changes needed for Python3, let me know - it seems to be fine, but I haven't done a thorough test

mnielsen avatar Jun 03 '23 21:06 mnielsen