Re: Another related OO Python ?

2011-02-17 Thread RJB
On Feb 16, 6:21 am, Eric Brunel wrote: > In article > <6849fd3f-5116-4b35-b274-dc76ae39f...@a11g2000pro.googlegroups.com>, > > > > > >  RJB wrote: > > On Feb 16, 12:48 am, Eric Brunel > > wrote: > > > In article , > > >  Doug Epling wrote: > > > > > hey, does anyone find the UML useful during P

Re: Another related OO Python ?

2011-02-16 Thread Eric Brunel
In article <6849fd3f-5116-4b35-b274-dc76ae39f...@a11g2000pro.googlegroups.com>, RJB wrote: > On Feb 16, 12:48 am, Eric Brunel > wrote: > > In article , > >  Doug Epling wrote: > > > > > hey, does anyone find the UML useful during Python development of larger > > > projects? > > > > Well, UML

Re: Another related OO Python ?

2011-02-16 Thread RJB
On Feb 16, 12:48 am, Eric Brunel wrote: > In article , >  Doug Epling wrote: > > > hey, does anyone find the UML useful during Python development of larger > > projects? > > Well, UML being very Java/C++ oriented, I found out that Python idioms > were really difficult to represent in the diagrams

Re: Another related OO Python ?

2011-02-16 Thread Eric Brunel
In article , Doug Epling wrote: > hey, does anyone find the UML useful during Python development of larger > projects? Well, UML being very Java/C++ oriented, I found out that Python idioms were really difficult to represent in the diagrams. So I'm using it to a very small extent and for doc

Another related OO Python ?

2011-02-11 Thread Doug Epling
hey, does anyone find the UML useful during Python development of larger projects? -- http://mail.python.org/mailman/listinfo/python-list

Re: OO Python

2011-02-11 Thread Paul Symonds
Thank you -- http://mail.python.org/mailman/listinfo/python-list

Re: OO Python

2011-02-10 Thread Rhodri James
[Re-ordered to get rid of the top-posting] On Thu, 10 Feb 2011 17:11:16 -, Paul Symonds wrote: On 10 Feb 2011, at 16:36, Dan Stromberg wrote: On Wed, Feb 9, 2011 at 1:50 PM, Paul Symonds wrote: Are there any good resources to learn OO Python from? Yes, plenty, but it's impo

Re: OO Python

2011-02-10 Thread Paul Symonds
Symonds wrote: >> Are there any good resources to learn OO Python from? > > Yes, plenty, but it's important for us to know so we can advise you: > Do you know any other OO languages yet? -- http://mail.python.org/mailman/listinfo/python-list

Re: OO Python

2011-02-10 Thread Dan Stromberg
On Wed, Feb 9, 2011 at 1:50 PM, Paul Symonds wrote: > Are there any good resources to learn OO Python from? Yes, plenty, but it's important for us to know so we can advise you: Do you know any other OO languages yet? -- http://mail.python.org/mailman/listinfo/python-list

Re: OO Python

2011-02-09 Thread Terry Reedy
On 2/9/2011 4:50 PM, Paul Symonds wrote: Are there any good resources to learn OO Python from? I learned some from classes in stdlib modules. -- Terry Jan Reedy -- http://mail.python.org/mailman/listinfo/python-list

Re: OO Python

2011-02-09 Thread Ben Finney
Paul Symonds writes: > Are there any good resources to learn OO Python from? The first resource to use is the Python tutorial http://docs.python.org/tutorial/>. Work through the whole thing: read the text and run the examples yourself, then experiment until you understand the points

Re: OO Python

2011-02-09 Thread Corey Richardson
On 02/09/2011 04:50 PM, Paul Symonds wrote: > Are there any good resources to learn OO Python from? > To my knowledge, all Python is OO. What specifically about OOP do you want to know? http://www.alan-g.me.uk/tutor/tutclass.htm I've always liked Alan's site. Come over to the T

OO Python

2011-02-09 Thread Paul Symonds
Are there any good resources to learn OO Python from? -- http://mail.python.org/mailman/listinfo/python-list

Re: why is "self" used in OO-Python?

2008-07-15 Thread Fredrik Lundh
ssecorp wrote: def append(self, item): self.stack.append(item) I can get to see the stack with var.stack but then why even implement append when I could do self.stack.append(x) etc. That way you could do away with OO completely. Umm. Even if you were to write that, self and stack

Re: why is "self" used in OO-Python?

2008-07-13 Thread satoru
On Jul 13, 12:32 am, ssecorp <[EMAIL PROTECTED]> wrote: > I first learned about OO from Java. > > I much prefer to program in Python though. > > However I am consufed about 2 things. > > 1. Why do I have to pass self into every method in a class? Since I am > always doing why cant this be automated

Re: why is "self" used in OO-Python?

2008-07-12 Thread ssecorp
On Jul 12, 8:44 pm, castironpi <[EMAIL PROTECTED]> wrote: > On Jul 12, 1:01 pm, Duncan Booth <[EMAIL PROTECTED]> wrote: > > > > > ssecorp <[EMAIL PROTECTED]> wrote: > > > 1. Why do I have to pass self into every method in a class? Since I am > > > always doing why cant this be automated or abstract

Re: why is "self" used in OO-Python?

2008-07-12 Thread Roy Smith
In article <[EMAIL PROTECTED]>, Duncan Booth <[EMAIL PROTECTED]> wrote: > Sadly a lot of Java programmers mistake the limitations of their language > for rules of OO programming, and worse this has spread from Java into other > languages where these restrictions no longer need apply. You can g

Re: why is "self" used in OO-Python?

2008-07-12 Thread castironpi
On Jul 12, 1:01 pm, Duncan Booth <[EMAIL PROTECTED]> wrote: > ssecorp <[EMAIL PROTECTED]> wrote: > > 1. Why do I have to pass self into every method in a class? Since I am > > always doing why cant this be automated or abstracted away? > > Are the instances where I won't pass self? > > I imagine th

Re: why is "self" used in OO-Python?

2008-07-12 Thread [EMAIL PROTECTED]
On 12 juil, 18:32, ssecorp <[EMAIL PROTECTED]> wrote: > I first learned about OO from Java. > > I much prefer to program in Python though. > > However I am consufed about 2 things. > > 1. Why do I have to pass self into every method in a class? You mean "declare self as the first argument", I assu

Re: why is "self" used in OO-Python?

2008-07-12 Thread Duncan Booth
ssecorp <[EMAIL PROTECTED]> wrote: > 1. Why do I have to pass self into every method in a class? Since I am > always doing why cant this be automated or abstracted away? > Are the instances where I won't pass self? > I imagine there is some tradeoff involved otherwise it would have been > done awa

Re: why is "self" used in OO-Python?

2008-07-12 Thread Carl Banks
On Jul 12, 12:32 pm, ssecorp <[EMAIL PROTECTED]> wrote: > I first learned about OO from Java. > > I much prefer to program in Python though. > > However I am consufed about 2 things. Short answer is, "Java isn't the only way OOP." Longer answers follow. > 1. Why do I have to pass self into ever

why is "self" used in OO-Python?

2008-07-12 Thread ssecorp
I first learned about OO from Java. I much prefer to program in Python though. However I am consufed about 2 things. 1. Why do I have to pass self into every method in a class? Since I am always doing why cant this be automated or abstracted away? Are the instances where I won't pass self? I ima