On 08/25/2015 10:17 AM, Joshua Harlow wrote:
Oh, discard everything I say then :)

My brain must still be partially functioning due to vacation, haha.

import functools

def work(vacation=False):
    if not vacation:
        get_lots_done()

back_from_vacation = functools.partial(work, vacation=True)

There you go, Josh. There's your partial function.

Best,
-jay

__________________________________________________________________________
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: [email protected]?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

Reply via email to