Python Forum

Full Version: simulate static local varibles with getattr
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Just post YouTube video with how to use getattr builtin method to create function state that presist between calls. This is done more to teach newer python users and is not necessarily how you would solve this problem in general. see: https://youtu.be/yHMqif_FzHY
This is not youtube!
it is youtu.be, but is guess that still works
(Feb-18-2018, 01:43 AM)Larz60+ Wrote: [ -> ]This is not youtube!
it is youtu.be, but is guess that still works
It's the standard short link created when you click on Share button
Quote:It's the standard short link created when you click on Share button
Realized that after original post, that's why the addition of:
Quote:it is youtu.be, but is guess that still works