![]() |
Naming a method using a variable
Hi, I am new to python and am wondering is it possible to name a method after a variable. I know I can name a variable after another variable using test = "temp" vars()[test] = 123 print temp this will print 123. so I was thinking something like this for a method:
|
| All times are GMT -4. The time now is 05:57 AM. |
Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.