8000 Array append broken · Issue #159 · PythonJS/PythonJS · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
< 8E1D div class="gh-header-show ">

Array append broken #159

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
youtux opened this issue Jun 7, 2015 · 1 comment
Open

Array append broken #159

youtux opened this issue Jun 7, 2015 · 1 comment
Labels

Comments

@youtux
Copy link
youtux commented Jun 7, 2015

The following Python code

a = ["hello"]
a += ["world"]
print(a) # ['hello', 'world']

gets compiled into:

a = ["hello"];
// ...
a += ["world"];
console.log(a); // "helloworld"

which is wrong, since a now is the helloworld string, while it should be the ['hello', 'world'] array.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants
@youtux and others
0