reaching hidden methods + casting

per9000 per9000 at gmail.com
Thu Apr 12 08:00:26 EDT 2007


On 12 Apr, 09:42, "Gabriel Genellina" <gagsl-... at yahoo.com.ar> wrote:
>
> <snip>
>
> > In f.x. the C-family of languages I guess something like this would
> > call B.spin:
> > ((B)myC).spin("Lancelot"); // almost forgot the ';'
>
> Try this in Python:
> B.spin(myC, "Lancelot")
>
>
> <snip>
>


Thanks, that was exactly the insight i needed.

/Per

--

Per Erik Strandberg
blog: http://www.pererikstrandberg.se/blog/




More information about the Python-list mailing list