Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.python
Simple Traits Questions
Ethan Furman
3/27/2010 1:19:00 PM
Okay, different post for my actual questions. :)
On the PyPI page for strait (
http://pypi.python.org/pypi/st...
)
it has the example of choosing which methods to keep in the composed class:
class TOSWidget(BaseWidget):
__metaclass__ = include(Pack, Place, Grid)
info = Pack.info.im_func
config = Pack.config.im_func
configure = Pack.configure.im_func
slaves = Pack.slaves.im_func
forget = Pack.forget.im_func
propagate = Pack.propagate.im_func
My question is:
Why use
info = Pack.info.im_func
instead of
info = Pack.info
?
Any and all enlightenment appreciated!
~Ethan~
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Simple Traits Questions
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password