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
Left to right #34910
Comments
The Ref Man doesn't explicitly say anything about The docs should get fleshed out. There's also a bug: >>> counter = 0
>>> def i():
... global counter
... counter += 1
... return counter
...
>>> {i(): i()}
{2: 1}
>>> {i(): i(), i(): i()}
{4: 3, 6: 5}
>>> That is, key:value *pairs* are evaluated left to |
Logged In: YES With the patch attached, this behaviour is cast into stone |
Logged In: YES I'm attaching a suggested solution for the problem, |
Logged In: YES Martin, could you please review the proposed solution? |
Logged In: YES The patch looks fine, please apply it. It would be good to check that Jython meets all your This change should *not* be backported to 2.2 IMO. |
Logged In: YES Martin, I've checked with Jython and the examples are ok as I have applied as: Doc/ref/ref5.tex: 1.71 Thank you! |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: