Re: to thine own SELF be true...

2006-05-05 Thread Paul Watson
Michael Ekstrand wrote: > On Fri, May 05, 2006 at 05:08:24PM +, Mark Harrison wrote: > >>Is there a way to get rid of those the "self." references, or is this >>just something I need to get my brain to accept? > > > It's pretty much just something you'll need to get your brain to accept. > Y

Re: to thine own SELF be true...

2006-05-05 Thread Michael Ekstrand
On Fri, May 05, 2006 at 05:08:24PM +, Mark Harrison wrote: > Is there a way to get rid of those the "self." references, or is this > just something I need to get my brain to accept? It's pretty much just something you'll need to get your brain to accept. You can replace self with something sho

Re: to thine own SELF be true...

2006-05-05 Thread Larry Bates
Mark Harrison wrote: > Is there a way to do something equivalent to "import * from self"? > Perhaps I'm doing something wrong, but I'm having a headache > when dealing with class instance data, forgetting to always > put the "self." prefix > > For example, in my brain I'm thinking: > > op

Re: to thine own SELF be true...

2006-05-05 Thread Duncan Booth
Mark Harrison wrote: > For example, in my brain I'm thinking: > > optc,args=getopt.getopt(args,cmdopts[cmd][0], cmdopts[cmd][1]) > > but I'm having to type: > > self.optc,self.args=getopt.getopt(self.args,self.cmdopts[self.c > md][0], >

Re: to thine own SELF be true...

2006-05-05 Thread bruno at modulix
Mark Harrison wrote: > Is there a way to do something equivalent to "import * from self"? (snip) > > Is there a way to get rid of those the "self." references, No. > or is this > just something I need to get my brain to accept? Yes. And FWIW, "from somemodule import *" is usually considered bad

to thine own SELF be true...

2006-05-05 Thread Mark Harrison
Is there a way to do something equivalent to "import * from self"? Perhaps I'm doing something wrong, but I'm having a headache when dealing with class instance data, forgetting to always put the "self." prefix For example, in my brain I'm thinking: optc,args=getopt.getopt(args,cmdopts[cm