Python language suggestion

Moshe Zadka moshez at zadka.site.co.il
Sat Jan 13 10:48:13 EST 2001


On Thu, 11 Jan 2001 20:27:39 GMT, Chris Ryland <cpr at emsoftware.com> wrote:
> This migh sound radical, but has anyone ever entertained the idea that
> foo.'bar bletch' might be a useful and logical extension of Python's
> current attribute selection machinery?
> 
> I realize that foo['bar bletch'] is just as good for dictionary-like
> objects, but foo.'bar bletch' 

getattr(foo, 'bar bletch') works in Python.

-- 
Moshe Zadka <sig at zadka.site.co.il>
This is a signature anti-virus. 
Please stop the spread of signature viruses!




More information about the Python-list mailing list