Classes in a class: how to access variables from one in another

Steven D'Aprano steve-REMOVE-THIS at cybersource.com.au
Tue Oct 19 00:15:13 EDT 2010


On Tue, 19 Oct 2010 13:54:32 +1000, James Mills wrote:

> On Tue, Oct 19, 2010 at 1:37 PM, alex23 <wuwei23 at gmail.com> wrote:
>> Given that there's little if anything gained from nesting classes
>> (other than possible scoping confusion) is there ever a need?
> 
> 15+ years of programming and I've never used nested classes in any
> language :)

I first started programming in the mid 1980s, and I've never once needed 
to write an SQL query. Does that imply that nobody does?



-- 
Steven



More information about the Python-list mailing list