![]() |
Available news archives:
comp.lang.tcl
-
comp.lang.python
-
comp.security.firewalls
-
sci.crypt -
comp.lang.php -
comp.lang.javascript
|
|
comp.lang.python archiveRe: [Beginner] Calling a function by its name in a string
From: Paul Rubin <//phr.cx@NOSPAM.invalid>
Date: Wed Jul 27 2005 - 21:02:41 CEST
Tito <titogarcia_borra_esto@gmail.com> writes:
Yes, use the getattr function:
for elem in collection:
|