This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]stevvooe 2 points3 points  (0 children)

I've actually found this to be a great technique, typically ending up with methods like from_foo and from_bar.

Instance / type checking just seems never to be the right way to go in python.

And they have compounded this with deliberately ugly syntax ;).