Get classes from "self.MyClass" to improve subclassability

Chris Angelico rosuav at gmail.com
Fri Jun 12 07:28:31 EDT 2015


On Fri, Jun 12, 2015 at 9:12 PM, Thomas Güttler <hv at tbz-pariv.de> wrote:
> I prefer "self.Namespace()" to namespace kwargs.
>
> What do you think?

Given that the namespace argument already exists, and you're proposing
a change, you'll need a much stronger justification than mere
preference. What's the downside of providing your own instance, rather
than injecting a class?

ChrisA



More information about the Python-list mailing list