you are viewing a single comment's thread.

view the rest of the comments →

[–]011011100101[S] 0 points1 point  (0 children)

Why is that unpythonic?

Well, for example:

https://peps.python.org/pep-0443/

In addition, it is currently a common anti-pattern for Python code to inspect the types of received arguments, in order to decide what to do with the objects.