Re: Newbie Q: Class Privacy (or lack of)

2006-07-28 Thread Steve Jobless
Bruno Desthuilliers wrote: > > Steve Jobless wrote: > > Sybren Stuvel wrote: > > > >>Steve Jobless enlightened us with: > >> > >>>The first case can be just a typo, like: > >>> > >>> x.valeu = 5 > >>> > >&

Re: Newbie Q: Class Privacy (or lack of)

2006-07-26 Thread Steve Jobless
Sybren Stuvel wrote: > > Steve Jobless enlightened us with: > > The first case can be just a typo, like: > > > > x.valeu = 5 > > > > I make typos all the time. Without a spell checker, this message > > would be unreadable :). > > Then learn to re

Re: Newbie Q: Class Privacy (or lack of)

2006-07-25 Thread Steve Jobless
Steve Jobless wrote: > > Hi, > > I just started learning Python. I went through most of the tutorial at > python.org. But I noticed something weird. I'm not talking about the > __private hack. > > Let's say the class is defined as: > > class MyClass

Newbie Q: Class Privacy (or lack of)

2006-07-24 Thread Steve Jobless
Hi, I just started learning Python. I went through most of the tutorial at python.org. But I noticed something weird. I'm not talking about the __private hack. Let's say the class is defined as: class MyClass: def __init__(self): pass def func(self): return 123 But from th