Skip to content

Do not pollute stack when if-expression condition evaluated to False#1098

Merged
coolreader18 merged 1 commit intoRustPython:masterfrom
mkurnikov:pass-if-expression-to-function
Jul 3, 2019
Merged

Do not pollute stack when if-expression condition evaluated to False#1098
coolreader18 merged 1 commit intoRustPython:masterfrom
mkurnikov:pass-if-expression-to-function

Conversation

@mkurnikov
Copy link
Contributor

@mkurnikov mkurnikov commented Jul 3, 2019

Otherwise provided test snippet fails with Unsupported method __call__ because vm tries to make a __call__on the value returned from expression.

@coolreader18 coolreader18 merged commit 96f6646 into RustPython:master Jul 3, 2019
@mkurnikov mkurnikov deleted the pass-if-expression-to-function branch July 3, 2019 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants