Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Python
Why does dynamic doc string do not work?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Ian Kelly, post: 5043713"] Also, if it did allow arbitrary expressions, then the syntax would be ambiguous. def a(): foo() do_stuff() Is "foo()" intended to return a doc string? If so, then it should be called when the function object is built, not when the function is called. On the other hand, maybe it's intended to be part of the function's code, in which case it should be called only when the function itself is called. [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Python
Why does dynamic doc string do not work?
Top