[Baypiggies] bound and unbound methods

Guido van Rossum guido at python.org
Sun Jun 24 16:46:42 CEST 2012


You gotta show the actual code and the traceback you got. The code you show
here works.

On Friday, June 22, 2012, Ian Zimmerman wrote:

>
> Is there any semi-clean way to transform an unbound method into a bound
> one?
>
> class K(object):
>
>      def meth(self, junk):
>          print junk
>
>      meth_cell = meth
>
>      def another(self, gunk):
>          # this doesn't work, what does?
>          self.meth_cell(gunk)
>
> --
> Ian Zimmerman
> gpg public key: 1024D/C6FF61AD
> fingerprint: 66DC D68F 5C1B 4D71 2EE5  BD03 8A00 786C C6FF 61AD
> http://www.gravatar.com/avatar/c66875cda51109f76c6312f4d4743d1e.png
> Rule 420: All persons more than eight miles high to leave the court.
> _______________________________________________
> Baypiggies mailing list
> Baypiggies at python.org <javascript:;>
> To change your subscription options or unsubscribe:
> http://mail.python.org/mailman/listinfo/baypiggies
>


-- 
--Guido van Rossum (python.org/~guido)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/baypiggies/attachments/20120624/cc3b2312/attachment.html>


More information about the Baypiggies mailing list