Re: Why does python class have not private methods? Will this neverchanged?

2005-04-19 Thread James
Trolls? On 4/19/05, Fredrik Lundh [EMAIL PROTECTED] wrote: could ildg [EMAIL PROTECTED] wrote: Private stuff always makes programming much easier. says who? /F -- http://mail.python.org/mailman/listinfo/python-list -- http://mail.python.org/mailman/listinfo/python-list

Re: Why does python class have not private methods? Will this never changed?

2005-04-19 Thread Simon Brunning
On 4/19/05, could ildg [EMAIL PROTECTED] wrote: Python is an oop language, Yes. Private stuff always makes programming much easier. That contention is, at best, debatable. See http://groups-beta.google.com/group/comp.lang.python/msg/b977ed1312e10b21. -- Cheers, Simon B, [EMAIL PROTECTED],

Re: Why does python class have not private methods? Will this never changed?

2005-04-19 Thread Roy Smith
In article [EMAIL PROTECTED], Simon Brunning [EMAIL PROTECTED] wrote: On 4/19/05, could ildg [EMAIL PROTECTED] wrote: Python is an oop language, Yes. Private stuff always makes programming much easier. That contention is, at best, debatable. See

Re: Why does python class have not private methods? Will this never changed?

2005-04-19 Thread Peter Hansen
Roy Smith wrote: Simon Brunning [EMAIL PROTECTED] wrote: On 4/19/05, could ildg [EMAIL PROTECTED] wrote: Private stuff always makes programming much easier. That contention is, at best, debatable. See http://groups-beta.google.com/group/comp.lang.python/msg/b977ed1312e10b21. Nice essay. Now, for

Re: Why does python class have not private methods? Will this never changed?

2005-04-19 Thread Jaime Wyant
Have I missed something? Doesn't this mangle class methods: class Foo: def __bar(self): print bar Granted, you could probably figure out how the names are being mangled. In the example above __bar is a defacto private method. Griping about it not having `private' in front of it is

Re: Why does python class have not private methods? Will this never changed?

2005-04-19 Thread Roy Smith
In article [EMAIL PROTECTED], Peter Hansen [EMAIL PROTECTED] wrote: Roy Smith wrote: Simon Brunning [EMAIL PROTECTED] wrote: On 4/19/05, could ildg [EMAIL PROTECTED] wrote: Private stuff always makes programming much easier. That contention is, at best, debatable. See

Re: Why does python class have not private methods? Will this never changed?

2005-04-19 Thread Adriano Ferreira
but why does it hava not private methods? Because it does not need them, ain't it? Private stuff always makes programming much easier. Does it? Sometimes contortion is needed to get rid of declarations that restrain access, for example, when writing tests. I think the point-of-view of Python is

<    1   2   3