Function __defaults__

Daniel Kluev dan.kluev at gmail.com
Sun Apr 24 13:18:09 EDT 2011


http://docs.python.org/dev/reference/datamodel.html
Callable types
...
Special attributes:
...
__defaults__ 	A tuple containing default argument values for those
arguments that have defaults, or None if no arguments have a default
value 	Writable

I don't see any 'implementation detail' mark there, and 'Writable'
IMHO means it can be used.

On Mon, Apr 25, 2011 at 4:02 AM, Benjamin Kaplan
<benjamin.kaplan at case.edu> wrote:
> Jython 2.5.1 (Release_2_5_1:6813, Sep 26 2009, 13:47:54)

In 2.x it was func_defaults (http://docs.python.org/reference/datamodel.html)
__defaults__ is 3.x feature

-- 
With best regards,
Daniel Kluev



More information about the Python-list mailing list