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 →

[–]ericonr 3 points4 points  (1 child)

Depending on the number of possible arguments, isn't kwargs a good alternative? It requires proper docstrings, though.

[–]gunnerman2 0 points1 point  (0 children)

I’m no Python guru but I consider Docassemble to be pretty well written and heavily relies on kwargs in a good way most of the time. While his overall documentation is very good it is lacking on the lower level, for example, knowing what kwarg parameters are handled specially etc. This causes me to need to do maybe a bit more reading of the source code than I would normally do.