-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
Feature request: with function()-Feature #41
Comments
@kantel Thank you for the suggestion! I understand what you are asking for: I recall @villares mentioned this feature a while back. I agree, it would be nice syntactic sugar to have in py5. I'll work on adding it for the next release. I don't think I can make it exactly as it is in processing.py, but I will do what I can to make it as close as possible. |
@kantel I started working on this today and have a working prototype. The following code works, demonstrating that the
Later this week I'll expand it to work for |
Cool. Thanks! |
I was feeling inspired and now have
|
I finished this a few days ago. Next release will be in October sometime. |
Processing.py has some syntatic sugar with the
with function()
-Feature (I documented it here – sorry in German only). With its indents it feels more pythonic thepush_matrix()
…pop_matrix()
. I missed these feature in Py5 and I would like to have it.But it's not a show stopper and not very urgent. I only want to say that there is something missing. And pls excuse my bad (d)english.
BTW: I'm working with Py5 on macOS X (Catalina 10.15.7) with Thonny and Tristan Bunn's Thonny-Plugin for Py5.
The text was updated successfully, but these errors were encountered: