Closed clach04 closed 1 week ago
Presumably this https://github.com/brython-dev/brython/blob/8ced3ea8006e00eadf69271ca71fcc6805d0addc/www/src/Lib/interpreter.py#L309 is the line where the error occurs
Untested possible code change:
pos = len(last_child.text or '')
Assuming ternary works (it seems to work in https://brython.info/console.html).
Not read how to build/test yet (not sure if I will, I was just playing around today).
Thanks for reporting this @clach04. The issue exists in the current release and on brython.info but is fixed in the current development version. I will publish a new release soon.
Great! I had chance to do some playing around and have a useful to me mini-app https://clach04.github.io/brython_tip_calc/ (that can generate palindrome totals for tipping ) with essentially no code changes to the Python code... it needs some UI/UX work though as this was a quick experiment. Really nice work on Brython implementation and docs/samples!
Test case for https://brython.info/console.html (works fine in https://brython.info/tests/editor.html )
Result:
Seen with Chrome (not tested anything else).