homepage

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 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?
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

AltStyle によって変換されたページ (->オリジナル) /