[Tutor] sys.platform in win XP 64 and vista 64?

2008-07-13 Thread claxo
Im correct in that sys.platform will return 'win32' even in 64bits XP-Vista (except for Cygwin builds)? In the python docs for 2.4 - 2.5 I havent found conclusive data; the docs for 2.6 seems to imply that. ___ Tutor maillist - Tutor@python.org htt

Re: [Tutor] Subject: Re: it is ok that object.__init__ gets called multiple times?

2008-06-11 Thread claxo
On Wed, 11 Jun 2008 20:47:48 -0400 Kent Johnson <[EMAIL PROTECTED]> wrote: > This thread has both points of view: > http://coding.derkeiler.com/Archive/Python/comp.lang.python/2004-12/4599.html > > I think if you are using super() then your classes that inherit from > object still need to call sup

[Tutor] Subject: Re: it is ok that object.__init__ gets called multiple times?

2008-06-11 Thread claxo
>> In the following code the __init__ for C would end calling two times object.__init__ . >> Is this ok or I calling for trouble ? >> To make explicit some context: >>object is the std python object >>super is not suposed to be used in any subclass >Why not? This seems to me the proble

[Tutor] it is ok that object.__init__ gets called multiple times?

2008-06-11 Thread claxo
In the following code the __init__ for C would end calling two times object.__init__ . Is this ok or I calling for trouble ? To make explicit some context: object is the std python object super is not suposed to be used in any subclass class A(object): def __init__(self,**kwargs):

Re: [Tutor] Logging with proper format

2007-10-07 Thread claxo
dont indent the line after '\', that means 0 indent s = 'hello\ boy' ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] File Writing Permission?

2007-10-07 Thread claxo
> if os.name == "posix": > fname = "~/" + fname > infile = open(fname,"w") you must expand '~' before open: fname = os.path.join('~',fname) fname = os.path.expanduser( fname ) infile = open(fname,'w') ___ Tut