-
Code:
```
exec("""
myvar = 1
print(myvar)
def main_func():
nonlocal myvar
myvar = 3
print(myvar)
print("hello")
main_func()
print(myvar)
""")
```
When I run this inside ano…
-
Currently every time you run `brython-cli --modules` the contents of `brython_modules.js` file is updated (even if there were no actual changes).
This has ripple effects in other tooling: git, rsyn…
-
I am using Brython, and I want to use the module psutil. I ran the following command in the command prompt.
```
pip install brython
brython-cli --install
python -m brython --make_package psutil
`…
-
Brython shell:
```
>>> (a := b).c = d
File , line 1
(a := b).c = d
^
SyntaxError: invalid syntax
>>>
```
This syntax works fine on CPython 3.8.1 on Windows. Why does it p…
-
I'm using the asm.js version to play remote OGG files.
The player seems to always request a range of 0-1048575 bytes, and won't request more no matter, what causing the tracks to end early.
I'm …
-
I am trying to call brython function from javascript promise it giving error **ReferenceError: brythonListener is not defined** how to solve this?
python/brython code
```
def execute(*args):
…
-
On Brython, `range[0, 8]` returns:
```
Traceback (most recent call last):
File , line 1, in
Exception: : Cannot read property '$nat' of undefined
```
Also, it doesn't return line number whe…
-
Hi, I was trying to create a custom event to allow an element to communicate up the DOM heirarchy to a parent element.
I tried to use CreateEvent
https://developer.mozilla.org/en-US/docs/Web/Gui…
-
Is there a way to get rid of it?
-
Brython allows python in html with
```html
```
Could you recognise those as Python™ and provide language features?
https://github.com/brython-dev/brython
ghost updated
4 years ago