Re: descriptor object for an attribute?

2007-04-14 Thread Eric Mahurin
On Apr 11, 3:07 pm, Bruno Desthuilliers [EMAIL PROTECTED] wrote: Eric Mahurin a écrit : Is there a standard way to get a descriptor object for an arbitrary object attribute - independent of whether it uses the descriptor/ property protocol or not. I want some kind of handle/reference

descriptor object for an attribute?

2007-04-11 Thread Eric Mahurin
Is there a standard way to get a descriptor object for an arbitrary object attribute - independent of whether it uses the descriptor/ property protocol or not. I want some kind of handle/reference/ pointer to an attribute. I know I could make my own class to do this (using the __dict__ of the

Debugging doctest failures

2007-04-08 Thread Eric Mahurin
Noob here. Just got into python a little over a week ago... One of the (unique?) things I really like about python is the concept of doctesting. But, now I want more! Here's what I'd like to see: * easy debugging. As soon as there is a failure (unexpected exception or mismatch), drop down