Message99776
| Author |
jackdied |
| Recipients |
Alexander.Belopolsky, Christophe Simonis, belopolsky, ironfroggy, jackdied, rhettinger, ssadler |
| Date |
2010年02月22日.16:33:51 |
| SpamBayes Score |
0.0004973336 |
| Marked as misclassified |
No |
| Message-id |
<1266856433.18.0.741826606159.issue4331@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
I'm having some trouble wrapping my head around this one. It isn't obvious to me that
my_method(*args):
print(args)
class A():
meth = partial(my_method, 'argA')
ob = A()
ob.meth('argB')
should print (<A object at 0x1234>, 'argA', 'argB') and not
('argA', <A object at 0x1234>, 'argB')
The patch seems to prefer the first form but if you are using a partial shouldn't you expect 'argA' to always be the first argument to the partial-ized function? |
|