Message99776
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? |
|
Date |
User |
Action |
Args |
2010-02-22 16:33:53 | jackdied | set | recipients:
+ jackdied, rhettinger, belopolsky, ironfroggy, Christophe Simonis, ssadler, Alexander.Belopolsky |
2010-02-22 16:33:53 | jackdied | set | messageid: <1266856433.18.0.741826606159.issue4331@psf.upfronthosting.co.za> |
2010-02-22 16:33:51 | jackdied | link | issue4331 messages |
2010-02-22 16:33:51 | jackdied | create | |
|