should "self" be changed?

Marko Rauhamaa marko at pacujo.net
Tue May 26 16:36:37 EDT 2015


Ned Batchelder <ned at nedbatchelder.com>:

> I would find it much clearer to not use a nested class at all, and
> instead to pass the object into the constructor:

Nested classes are excellent and expressing the state pattern <URL:
http://en.wikipedia.org/wiki/State_pattern>.


Marko



More information about the Python-list mailing list