Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign uphelp(Scene.play) #1204
help(Scene.play) #1204
Conversation
this way, decorated methods - typically Scene.play - have a decent docstring so first-time users can use help()
trying to get help on
Scene.playleads to a dead end, because thehandle_play_like_calldecorator fails to take care of its outcome's docstring (and other special attributes like__name__I would bet)the good practice for writing such decorator is to take advantage of
functools.wraps, this PR exhibits one example; let me know what you think and I could review the code more deeply to account for the other possible places where that change could come in handythis way, decorated methods - typically
Scene.play- have a decent docstringso first-time users can use
help()on themscreenshots, gifs, commands, etc.) This is rather informal at the moment, but
the goal is to show us how you know the pull request works as intended.
well, I'm a first time user, and I've been using this brew of manim for my first steps, and have not met any unexpected result so far, as compared to what the tutorial shows