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 avdd
Recipients avdd
Date 2011-01-16.15:49:46
SpamBayes Score 5.9946964e-05
Marked as misclassified No
Message-id <1295192992.12.0.880697566702.issue10918@psf.upfronthosting.co.za>
In-reply-to
Content
An API such as in, e.g. futures:

   def submit(self, fn, *args, **kwargs):
       pass

cannot be used thus:

submit(foo, 1, 2, fn=bar)

I can see two options: either mangle the named parameters:

    def submit(__self, __fn, *args, **kwargs):
        pass

Or fiddle with *args:

    def submit(*args, **kwargs):
        self, fn = args[:2]
        args = args[2:]
History
Date User Action Args
2011-01-16 15:49:52avddsetrecipients: + avdd
2011-01-16 15:49:52avddsetmessageid: <1295192992.12.0.880697566702.issue10918@psf.upfronthosting.co.za>
2011-01-16 15:49:46avddlinkissue10918 messages
2011-01-16 15:49:46avddcreate