I'm using Python version 2.4 and I created a class with some properties
like:
def GetCallAmount(self):
return somedata
def GetCallCurrency(self):
return somemoredata
moredefs..etc.
CallAmount = property(GetCallAmount,None,None,None)
CallCurrency = property(Get
Thanks.
Neil Cerutti wrote:
> On 2007-01-18, EdG <[EMAIL PROTECTED]> wrote:
> > For debugging purposes, I would like to traverse the class
> > listing out all the properties.
>
> This is the first thing that came to mind.
>
> def show_properties(cls):
> for a
Thanks.
Daniel Nogradi wrote:
> > I'm using Python version 2.4 and I created a class with some properties
> > like:
> >
> > def GetCallAmount(self):
> > return somedata
> >
> > def GetCallCurrency(self):
> > return somemoredata
> >
> > moredefs..etc.
> >
> > CallAmount =
This works great. I have one more question. Now that I have the name
of the property, how do I get it's value?
I want to print '%s = %s' % (attr,theattributesvalue)
Thanks.
Neil Cerutti wrote:
> On 2007-01-18, EdG <[EMAIL PROTECTED]> wrote:
> > For debug
That works perfectly thank you.
Bruno Desthuilliers wrote:
> EdG a écrit :
> (top-post corrected)
> >
> > Neil Cerutti wrote:
> >
> >>On 2007-01-18, EdG <[EMAIL PROTECTED]> wrote:
> >>
> >>>For debugging purposes, I would li
This Is A Late Cross Post from comp.lang.python. It seems the mistery
is deeper then i expected.
What is the running time of conactination on character strings.
i.e.
>> joe="123"
>> joe+="9"
is it Amortized Constant time? I don't think it would be O((number of
chars)^2) but i re