[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] Functions in config files



compufreak wrote:

Yes, using a dictionary is the best way to do this, because it offers a direct translation from a string to the function, and is very extensible.

You could also consider using globals()[name] or some
variation on that.

--
Greg