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
Function __defaults__
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
Reply to thread
Message
[QUOTE="Ken Seehart, post: 4204919"] This is documented in python 3, so I would expect it to be stable (until python 4, that is) [URL]http://docs.python.org/py3k/whatsnew/3.0.html#operators-and-special-methods[/URL] [URL]http://docs.python.org/py3k/library/inspect.html#types-and-members[/URL] The f.__defaults__ attribute was previously known as f.func_defaults (in python 2.x), which has been around, documented and stable for quite a while. So it's probably just as safe as any other monkey patching technique. :) Best of luck, Ken [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Python
Function __defaults__
Top