Function __defaults__

Daniel Kluev dan.kluev at
Sun Apr 24 19:18:09 CEST 2011
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> wrote:
> Jython 2.5.1 (Release_2_5_1:6813, Sep 26 2009, 13:47:54)

In 2.x it was func_defaults (
__defaults__ is 3.x feature

With best regards,
Daniel Kluev

More information about the Python-list mailing list