From: Mignon L. <mig...@ya...> - 2006-08-18 12:16:11
|
Hy, In your python abstraction layer (pgsql.py) you directly access the __dict__ . If I understand the code, you use this mechanism in conjunction of the overriding of __setattr__ to control the acces to some attributes that you want readonly. I can understand that that was in the past the only way to control access to some attributes. Today, python allow you to define property and to control access to a variable through getter and setter ... The fact that the code access direclyt to the __dict__ is a problem for me when I use this module in threads running in restricted mode (access is denied!). Can I rewrite the code to use property and avoid the access to the __dict__. Do you think that it is a good thing? Laurent Mignon Software AG Belgium Senior Software Engineer __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |