
Aug. 5, 2012
12:57 p.m.
Hi everybody, first of all let me thank you for all the work on Python and its community. Regarding the Descriptor Example at http://docs.python.org/howto/descriptor.html I feel like there may be something wrong in the usage of self within setters and getters. According to the following sources: http://stackoverflow.com/questions/1915643/python-descriptors-sharing-values... http://martyalchin.com/2007/nov/23/python-descriptors-part-1-of-2/ http://martyalchin.com/2007/nov/24/python-descriptors-part-2-of-2/ It makes more sense to directly manipulate obj.__dict__ than altering the descriptor. I started studying Python today so I'm definitely a newbie. Sorry if this doesn't make sense. Best regards. Dario D'Amico
4603
Age (days ago)
4603
Last active (days ago)
0 comments
1 participants
participants (1)
-
dario.damicoï¼ damix.it