Re: less obvious "super"

2007-09-10 Thread Nagarajan
On Sep 10, 4:20 pm, Duncan Booth <[EMAIL PROTECTED]> wrote: > Nagarajan <[EMAIL PROTECTED]> wrote: > > Here is what I need to achieve.. > > > class A : > > def __init__( self ): > > self.x = 0 > > Don't use old style classes. If yo

Re: less obvious "super"

2007-09-10 Thread Nagarajan
On Sep 10, 4:20 pm, Duncan Booth <[EMAIL PROTECTED]> wrote: > Nagarajan <[EMAIL PROTECTED]> wrote: > > Here is what I need to achieve.. > > > class A : > > def __init__( self ): > > self.x = 0 > > Don't use old style classes. If yo

less obvious "super"

2007-09-10 Thread Nagarajan
Hi group, I am confused with "super" usage..It seems to be complicated and less obvious. Here is what I need to achieve.. class A : def __init__( self ): self.x = 0 class B ( A ): def __init__( self, something ): # Use "super" construct here so that I can "inherit" x of A

Re: XML File -- dictionary edit/search

2007-08-27 Thread Nagarajan
definition, you can as well add keys to the worddefs dictionary and use "dump" method to write to the yaml file. Or you could just write to the file directly (as the format is simple in this case). But I suggest former. Did this solve your problem? -Brevity is the soul of wit. Nagarajan. -- http://mail.python.org/mailman/listinfo/python-list

Re: Raw strings to normal strings conversion?

2007-08-23 Thread Nagarajan
On Aug 23, 2:42 pm, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote: > On Thu, 23 Aug 2007 09:21:40 +, Nagarajan wrote: > > On Aug 23, 1:21 pm, James Stroud <[EMAIL PROTECTED]> wrote: > >> Nagarajan wrote: > >> > Is there a way

Re: Raw strings to normal strings conversion?

2007-08-23 Thread Nagarajan
On Aug 23, 1:21 pm, James Stroud <[EMAIL PROTECTED]> wrote: > Nagarajan wrote: > > Is there a way by which I could obtain normal string form of a raw > > string. > > XML CDATA is returned as raw string. But I need the string to actually > > escape special chars.

Raw strings to normal strings conversion?

2007-08-22 Thread Nagarajan
Is there a way by which I could obtain normal string form of a raw string. XML CDATA is returned as raw string. But I need the string to actually escape special chars. Any idea? -- http://mail.python.org/mailman/listinfo/python-list

Re: Server-side scripting in python

2007-08-22 Thread Nagarajan
On Aug 22, 8:50 pm, [EMAIL PROTECTED] (Cameron Laird) wrote: > In article <[EMAIL PROTECTED]>,Nagarajan <[EMAIL PROTECTED]> wrote: > > >> . > >> . > >> . > >Let me phra

Re: Server-side scripting in python

2007-08-21 Thread Nagarajan
On Aug 21, 6:40 pm, [EMAIL PROTECTED] (Cameron Laird) wrote: > In article <[EMAIL PROTECTED]>,Nagarajan <[EMAIL PROTECTED]> wrote: > >Hi group, > >I need to develop a web application. I am in a fix as to choose among > >the various server-side scripting options.

Server-side scripting in python

2007-08-20 Thread Nagarajan
Hi group, I need to develop a web application. I am in a fix as to choose among the various server-side scripting options. I want to explore python (am a newbie) to gain expertise and upon search, I learnt about PSP(Python Server Pages) that uses Jython as its scripting language. Is it a better opt

Re: Reading a two-column file into an array?

2007-07-30 Thread Nagarajan
On Jul 31, 9:03 am, Gilles Ganault <[EMAIL PROTECTED]> wrote: > Hello > > I'm sure there's a much easier way to read a two-column, CSV file into > an array, but I haven't found it in Google. > > Should I use the Array module instead? > > = > a = [] > i = 0 > > #itemitem > p = re.compile("^(