(original) (raw)
On 16 November 2017 at 07:56, Nick Coghlan <ncoghlan@gmail.com> wrote:
On 16 November 2017 at 04:39, Ivan Levkivskyi <levkivskyi@gmail.com> wrote:Nick is exactly right here. Jim, if you want to propose alternative wording, then we could consider it.Jim also raised an important point that needs clarification at the spec level: given multiple entries in "orig\_bases" with \_\_mro\_entries\_\_ methods, do all such methods get passed the \*same\* orig\_bases tuple? Or do they receive partially resolved ones, such that bases listed before them have already been resolved to their MRO entries by the time they run.
Yes, they all get the same initial bases tuple as an argument. Passing updated ones will cost a bit more and I don't think it will be needed (in the worst case a base can resolve another base by calling its \_\_mro\_entries\_\_ manually).
I will clarify this in the PEP.
--
Ivan