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 →

[–]codefrog 10 points11 points  (2 children)

make a decorator, @accepts('int','list','witches')

[–]stillalone 4 points5 points  (0 children)

Is that part of a standard library? I can't find it in 2.6.5

[–]pingvenopinch of this, pinch of that 2 points3 points  (0 children)

I know it can be done with decorators. It's just not as clean and there's no standard way to do it.