[issue18047] Descriptors get invoked in old-style objects and classes

2013-05-28 Thread Raymond Hettinger
Raymond Hettinger added the comment: We document what we're willing to guarantee. The exposure of descriptors in old-style classes was an incidental implementation detail. Sorry, I'm going to close this one. Besides, it's time to start forgetting Python 2 and move along :-) -- reso

[issue18047] Descriptors get invoked in old-style objects and classes

2013-05-28 Thread Arnaud Porterie
Arnaud Porterie added the comment: Sorry if I am missing something, but it seems that the documentation doesn't match the behavior: the doc says that descriptors are invoked only for new styles objects and classes, while the attached code seems to prove the contrary. If my understanding is cor

[issue18047] Descriptors get invoked in old-style objects and classes

2013-05-27 Thread Raymond Hettinger
Raymond Hettinger added the comment: IMO nothing should change here (either the docs or the implementation). The OP has observed an implementation detail of old-style classes (which were reimplemented in Python 2.2 using descriptor logic instead of their former hard-wired behaviors).

[issue18047] Descriptors get invoked in old-style objects and classes

2013-05-26 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti stage: -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue18047] Descriptors get invoked in old-style objects and classes

2013-05-25 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue18047] Descriptors get invoked in old-style objects and classes

2013-05-25 Thread Phil Connell
Changes by Phil Connell : -- nosy: +pconnell ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue18047] Descriptors get invoked in old-style objects and classes

2013-05-23 Thread Arnaud Porterie
New submission from Arnaud Porterie: In the Data Model section of the documentation regarding descriptors invokations (http://docs.python.org/2/reference/datamodel.html#invoking-descriptors), it is said: Note that descriptors are only invoked for new style objects or classes (ones that s