embarrassing class question

Lawrence D'Oliveiro ldo at geek-central.gen.new_zealand
Sat Oct 30 06:51:06 CEST 2010


In message <8idvgaF213U2 at mid.individual.net>, Peter Pearson wrote:

> Yes, module w imports x, and therefore w.x exists.  Is that bad?

No-one seems to have come out and said this yet (unless it was in one of 
those messages that no longer seem to be accessible on my ISP’s news 
server): Python has no provision for visibility control. That’s it. No 
public/private/protected or anything like that. Everything defined directly 
within a module or class is visible outside it using dir(module_or_class).



More information about the Python-list mailing list