Inheritance and name clashes
python at mrabarnett.plus.com
Mon Oct 4 02:17:45 CEST 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