Author jackdied
Recipients Alexander.Belopolsky, Christophe Simonis, belopolsky, ironfroggy, jackdied, rhettinger, ssadler
Date 2010-02-22.16:33:51
SpamBayes Score 0.000497334
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?
History
Date User Action Args
2010-02-22 16:33:53jackdiedsetrecipients: + jackdied, rhettinger, belopolsky, ironfroggy, Christophe Simonis, ssadler, Alexander.Belopolsky
2010-02-22 16:33:53jackdiedsetmessageid: <1266856433.18.0.741826606159.issue4331@psf.upfronthosting.co.za>
2010-02-22 16:33:51jackdiedlinkissue4331 messages
2010-02-22 16:33:51jackdiedcreate