Domain Name Forum

Domain Name Forum (http://www.domainnameforum.org/index.php)
-   Python (http://www.domainnameforum.org/forumdisplay.php?f=138)
-   -   Naming a method using a variable (http://www.domainnameforum.org/showthread.php?t=149718)

Python 03-14-2011 10:13 AM

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.