Checking whether type is None

Stephan Houben stephanh42 at gmail.com.invalid
Thu Jul 26 09:35:29 EDT 2018


Op 2018-07-25, Ian Kelly schreef <ian.g.kelly at gmail.com>:

> Is there a reason for using singledispatch here rather than a simpler and
> more readable "if color is None" check?

Yes, the other 20 cases I didn't show.
And extensibility.

Stephan



More information about the Python-list mailing list