[issue12248] __dir__ semantics changed in Python 2.7.2

2011-06-04 Thread Soren Hansen
Soren Hansen added the comment: 2011/6/5 Benjamin Peterson : > 2011/6/4 Soren Hansen : >> ...I end up with a "RuntimeError: maximum recursion depth exceeded". I >> can't say I'm surprised :) > Ah, sorry I should have thought before writing that. :) >

[issue12248] __dir__ semantics changed in Python 2.7.2

2011-06-04 Thread Soren Hansen
Soren Hansen added the comment: 2011/6/4 Benjamin Peterson : > 2011/6/4 Soren Hansen : >> So my question is: If this change stays (which seems clear given that the >> only changes proposed here are ways of relaxing the type requirement of the >> __dir__ method's r

[issue12248] __dir__ semantics changed in Python 2.7.2

2011-06-04 Thread Soren Hansen
Soren Hansen added the comment: When I first investigated this problem (I reported the original bug on Launchpad), my first attempt to address this issue in pymox had me quite stumped. The class in question has a __getattr__ method. Up until now, this hasn't affected the use of dir(), b