[Python-Dev] inspect() and dir()

Ethan Furman ethan at stoneleaf.us
Wed Oct 9 18:50:04 CEST 2013


On 10/09/2013 09:40 AM, Brett Cannon wrote:
> On Tue, Oct 8, 2013 at 5:29 PM, Ethan Furman wrote:
>>
>> Currently, inspect() is dependent on dir().
>
> What's inspect()? I don't know of any global with that name and you are obviously not talking about the module.

My apologies.  I am actually talking about the module.  I meant inspect.get_members() and 
inspect.classify_class_attrs(), which, as near as I can tell, are the only two functions in inspect that attempt to 
retrieve/look at all of an object's attributes.

--
~Ethan~


More information about the Python-Dev mailing list