Inheritance and name clashes

MRAB python at mrabarnett.plus.com
Sun Oct 3 20:17:45 EDT 2010


On 04/10/2010 00:06, Steve Howell wrote:
> On Oct 3, 3:57 pm, Gregory Ewing<greg.ew... at canterbury.ac.nz>  wrote:
>> Rock wrote:
>>> What if the
>>> library I'm using doesn't realase the source, or what if I just can't
>>> get my hands on it for some reason or another?
>>
>> You can always use dir() on an instance of the class to
>> find out what names it's using.
>>
>
> Indeed but the OP should be aware that dir() only reflects the current
> state of the object.
>
Could something like pyflakes tell you what private attributes there
are, basically looking for self._foo or whatever?



More information about the Python-list mailing list