Re: [pygccxml-development] Patch to add a little syntactic sugar
Brought to you by:
mbaas,
roman_yakovenko
From: Roman Y. <rom...@gm...> - 2006-05-17 18:51:59
|
On 5/17/06, Allen Bierbaum <al...@vr...> wrote: > Yes, I don't see anyway around this. That is why this syntax is a > little dangerous. It is nice when it works but there are certain > reserved words that it is not going to work with. My main problem with this part, is that user can run into the problem. I try to explain my self. When he misspelled some reserved word, he don't h= ave to know that there is __getattr__ function that does some work. > Personally I don't think this is enough reason to not use the API, but > it does mean that users need to be careful when they do (or atleast they > need to be warned about the potential problems in the documentation). In most cases, this part of documentation will be skiped. > It would have to be considered an advanced feature unless someone can > think of a way around this problem. The bottom line: if you don't mind I would like to exclude __getattr__ part of the patch. If you feel, that this part is so good, then I will insert it, but user will have to turn this feature on. I will try to find how to do this. > -Allen > > --=20 Roman Yakovenko C++ Python language binding http://www.language-binding.net/ |