getrecursiondepth
Manlio Perillo
NOmanlio_perilloSPAM at libero.it
Sat Oct 2 09:54:07 EDT 2004
On Fri, 01 Oct 2004 17:30:05 GMT, Manlio Perillo
<NOmanlio_perilloSPAM at libero.it> wrote:
>>> Sorry, I don't understand.
>>> Here is my_function:
>>>
>>>
>>> def my_function(a, b, *args, **kwargs):
>>> print 'a, b, args, kwargs:', a, b, args, kwargs
>>
>>That's not recursive, so I don't know how to
>>interpret your question.
>
>This is only the function signature!
>The problem is that I can't do:
>
>def my_function(a, b, *args, **kwargs, __max_depth = 4): ...
>
>The only way is to do:
>def my_function(a, b, max_depth = 4, *args, **kwargs): ...
>
>But in this way max_depth is 'exposed' to public.
>In the first example it is private.
>
Sorry, forget about this post!
Regards Manlio Perillo
More information about the Python-list
mailing list