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
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
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
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
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
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.
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
On Aug 22, 8:50 pm, [EMAIL PROTECTED] (Cameron Laird) wrote:
> In article <[EMAIL PROTECTED]>,Nagarajan <[EMAIL PROTECTED]> wrote:
>
> >> .
> >> .
> >> .
> >Let me phra
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.
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
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("^(
11 matches
Mail list logo