This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients methane, ncoghlan, rhettinger, serhiy.storchaka, vstinner, yselivanov
Date 2017-03-06.14:58:01
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1488812282.01.0.703462624401.issue29735@psf.upfronthosting.co.za>
In-reply-to
Content
What about C stack consumption? Is not this increase it?

Since nested partial()`s are collapsed, you need to interlace them with other wrapper for testing.

def decorator(f):
    def wrapper(*args):
        return f(*args)
    return wrapper

def f(*args): pass

for i in range(n):
    f = partial(f)
    f = decorator(f)

f(1, 2)
History
Date User Action Args
2017-03-06 14:58:02serhiy.storchakasetrecipients: + serhiy.storchaka, rhettinger, ncoghlan, vstinner, methane, yselivanov
2017-03-06 14:58:02serhiy.storchakasetmessageid: <1488812282.01.0.703462624401.issue29735@psf.upfronthosting.co.za>
2017-03-06 14:58:01serhiy.storchakalinkissue29735 messages
2017-03-06 14:58:01serhiy.storchakacreate