type conversion

Hamish McKenzie hamish at valvesoftware.com
Thu Jan 1 17:46:54 EST 2009


>>  You could also use a dict with type:method key/value pairings. This is closer to a switch/case than an if...elif chain is.

of course, that's a great idea...

thanks.









-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20090101/99c780c4/attachment-0001.html>


More information about the Python-list mailing list