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 yselivanov
Recipients brett.cannon, larry, ncoghlan, r.david.murray, yselivanov
Date 2014-04-02.21:08:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1396472932.2.0.658335178529.issue21117@psf.upfronthosting.co.za>
In-reply-to
Content
Please review the attached patch.

Here's the new partial signature semantics:

   foo(a, b, /, c, d, *args, e)

   partial(foo, 10) -> (b, /, c, d, *args, e)
   partial(foo, 10, c=11) -> (b, /, *, c=11, d, e)
   partial(foo, 10, 20, 30) -> (d, *args, e)
   partial(foo, 10, 20, 30, 40, 50) -> (*args, e)
   partial(foo, 10, 20, c=20) -> (*, c=20, d, e)

Good news: 

1. no more special attributes and other hidden hacks.

2. only with this patch we properly support functools.partial. So this is definitely something we can classify as a bug fix and push in 3.4.1.
History
Date User Action Args
2014-04-02 21:08:52yselivanovsetrecipients: + yselivanov, brett.cannon, ncoghlan, larry, r.david.murray
2014-04-02 21:08:52yselivanovsetmessageid: <1396472932.2.0.658335178529.issue21117@psf.upfronthosting.co.za>
2014-04-02 21:08:52yselivanovlinkissue21117 messages
2014-04-02 21:08:52yselivanovcreate