inner classes

Hermann Hesse siddhartha1987 at hotmail.com
Tue Apr 30 16:59:30 EDT 2002


Michael Chermside wrote:

>Most of the time, this is the behavior that you want -- >inner classes in 
>Java were invented to solve problems that are really >easy to handle in 
>Python because of the existance of bound methods. (I >can explain what that 
>meant if you like.) But as you might expect, if >you actually DO want the 
>java-like behavior, Python allows it, you just >have to be explicit and 
>explain what you mean.

Can someone give an example of how you'd use bound methods to replace inner 
classes in python?



_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.






More information about the Python-list mailing list