Skip to content

pass 'self' var in eval call for py310 & py311#37

Merged
headmeister merged 1 commit into
isi-nmr:masterfrom
VKarlaftis:bf/eval-self
Jul 2, 2026
Merged

pass 'self' var in eval call for py310 & py311#37
headmeister merged 1 commit into
isi-nmr:masterfrom
VKarlaftis:bf/eval-self

Conversation

@VKarlaftis

Copy link
Copy Markdown
Contributor

In Python 3.10 and 3.11, the comprehension inside eval() does not reliably see self from the surrounding scope. So changed to pass it not explicitly along with the globals.

@VKarlaftis

Copy link
Copy Markdown
Contributor Author

@headmeister could you please have a look at this?

@headmeister

Copy link
Copy Markdown
Contributor

Looks legit!

@headmeister headmeister merged commit 7aea29c into isi-nmr:master Jul 2, 2026
8 checks passed
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