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

2013-10-12 Thread Ethan Furman
On 10/10/2013 02:25 AM, Nick Coghlan wrote: On 10 Oct 2013 14:32, "Ethan Furman" wrote: That makes sense. So what should the new functions be called? get_all_members and classify_all_class_attrs ? Yeah, those work for me. The only way they should miss anything is if attribute lookup is cu

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

2013-10-10 Thread Nick Coghlan
On 10 Oct 2013 14:32, "Ethan Furman" wrote: > > On 10/09/2013 03:36 PM, Nick Coghlan wrote: > >> On 10 Oct 2013 08:07, "Ethan Furman" wrote: >>> >>> On 10/09/2013 02:46 PM, Nick Coghlan wrote: On 10 Oct 2013 03:39, "Ethan Furman" wrote: > > > My apologies. I am actually talk

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

2013-10-09 Thread Ethan Furman
On 10/09/2013 03:36 PM, Nick Coghlan wrote: On 10 Oct 2013 08:07, "Ethan Furman" wrote: On 10/09/2013 02:46 PM, Nick Coghlan wrote: On 10 Oct 2013 03:39, "Ethan Furman" wrote: My apologies. I am actually talking about the module. I meant inspect.get_members() and inspect.classify_class_att

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

2013-10-09 Thread Nick Coghlan
On 10 Oct 2013 08:07, "Ethan Furman" wrote: > > On 10/09/2013 02:46 PM, Nick Coghlan wrote: > >> On 10 Oct 2013 03:39, "Ethan Furman" wrote: >>> >>> >>> My apologies. I am actually talking about the module. I meant >>> inspect.get_members() and inspect.classify_class_attrs(), which, >>> as nea

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

2013-10-09 Thread Ethan Furman
On 10/09/2013 02:46 PM, Nick Coghlan wrote: On 10 Oct 2013 03:39, "Ethan Furman" wrote: 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 t

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

2013-10-09 Thread Nick Coghlan
On 10 Oct 2013 03:39, "Ethan Furman" wrote: > > 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 no

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

2013-10-09 Thread Ethan Furman
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 a

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

2013-10-09 Thread Brett Cannon
On Tue, Oct 8, 2013 at 5:29 PM, Ethan Furman wrote: > Greetings, > > 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. ___ Python-Dev mailing li

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

2013-10-08 Thread Ethan Furman
On 10/08/2013 03:07 PM, Guido van Rossum wrote: I'd say that the effect overriding dir() has on help() is intentional. Not sure about inspect -- it has other uses. However, the last time I used it I was definitely hunting for stuff to document. If want help to be effected that is easy enough

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

2013-10-08 Thread Guido van Rossum
I'd say that the effect overriding dir() has on help() is intentional. Not sure about inspect -- it has other uses. However, the last time I used it I was definitely hunting for stuff to document. On Tue, Oct 8, 2013 at 2:29 PM, Ethan Furman wrote: > Greetings, > > Currently, inspect() is depen

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

2013-10-08 Thread Ethan Furman
Greetings, Currently, inspect() is dependent on dir(). Now that we can override what dir() returns on a class by class basis, we are seeing the side-effect of (possibly) incomplete inspect results, with also leads to (possibly) incomplete help(). I would think we want inspect to be more thoro