On Thursday, February 9, 2017 at 8:29:56 AM UTC-6, Edward K. Ream wrote:
> Leo's TDD design involves imp.reload
<https://docs.python.org/3/library/imp.html>. Alas, *imp.reload affects
super calls!*
...
> This kind of pattern verges on the intolerable. The python 2 part is a
revolting mess.
In fairness to python 2, the problems only arise when using imp.reload.
When imp.reload isn't involved, this works for Python 2 or 3:
super(ChildClass, self).__init__(*args to ctor*)
And if using only Python 3:
super().__init__(*args to ctor*)
However, this is scant comfort. imp.reload is so useful during development.
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.