On Wed, Dec 13, 2017 at 2:03 PM, vitalije <vitali...@gmail.com> wrote:

> You can start by studying the resolve methods.
>>
>
> Ok, I am studying it and have a question. In resolve_ivar method if
> ivar=='self' it returns ('class', class_name). Shouldn't it return
> ('instance', class_name)?
>

​Yes.  Thank you.​

>
> Little bit further in same method it checks if ivar is among special_names
> ('c', 'p', 'g', 'v', ...) and if it is it returns spec_obj which is
> ('instance', class...). It seems to me that return values for self and c,
> p, g, v ... are not consistent. Either in both cases it should return
> ('instance', ....) or in both cases ('class', ...).​
>

> Am I missing something?
>

​No.  You are right.  The present code should use 'instance' everywhere.

Edward​

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.

Reply via email to