On Mar 23, 2010, at 1:49 PM, Ricardo Aráoz wrote:
> So there is no way a *user* of the framework may know if it's a property
> or an attribute (without learning the inner works of the framework which
> defeats it's purpose), so the upper or lower case makes no difference to
> a user, though good for the developers. Or am I missing something here?
Normally in Python you should never care. Most devs start out making
everything in their classes as simple attributes, and then only when they find
they need some special behavior do they change them to properties. To anyone
using the class, though, the change would be transparent.
We've adopted a different approach in Dabo, mainly due to the need to
wrap wxPython. We generally start out by making anything that a developer would
typically need to set in a class a property instead of an attribute, even if it
doesn't do anything special. So almost always in Dabo you'll be accessing and
setting properties.
-- Ed Leafe
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message:
http://leafe.com/archives/byMID/[email protected]