TranscryptOrg / Transcrypt

Python 3.9 to JavaScript compiler - Lean, fast, open!
https://www.transcrypt.org
Apache License 2.0
2.85k stars 214 forks source link

`enumerate` does not obey the `start=` parameter #804

Closed halloleo closed 3 months ago

halloleo commented 2 years ago

When I run in Transcrypt:

for i, c in enumerate(['a', 'b', 'c'], start=1):
    print(I, c)

I get the output:

0 a
1 b
2 c

while CPython gives me the expected:

1 a
2 b
3 c
JennaSys commented 2 years ago

I just created a PR that adds this argument to the Transcrypt version.

halloleo commented 3 months ago

Wow, cool tht this is done!

I guess it is only in in GitHub and not yet in a release, right?

JennaSys commented 3 months ago

Correct. I finally got some time to start working on this project again. I'm going to start pulling in some existing PRs and probably release a patch update in a week or so.

halloleo commented 3 months ago

Awsome, @JennaSys!