Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Python
Inline Calculation of Dictionary Values
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Chris Rebert, post: 4061987"] Based on what I can find about "bare blocks", Nope. And we like it that way :-) FWIW, I don't see what's wrong with this. You could probably refactor f2() to use the `with` statement and a context manager, but that's getting tangential. However, the question arises: Why do you have global state in the first place? Cheers, Chris [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Python
Inline Calculation of Dictionary Values
Top