Re: [Tutor] is it possible to create and amend classes during run-time?

2012-05-04 Thread Bjorn Madsen
Sorry I didn't get back earlier. But in short: Thank you! Kind Regards, Bjorn On 3 May 2012 00:01, Alan Gauld wrote: > Does anyone know if it is possible during run-time to: >>> a) add attributes to classes, which will unknown at program start, but >>> "emerge" later whilst the program is runnin

Re: [Tutor] why i < j is True, j < k is False

2012-05-04 Thread Joel Goldstick
On Fri, May 4, 2012 at 10:12 AM, Dave Angel wrote: > On 05/04/2012 09:29 AM, Lion Chen wrote: >> Hi, All, >> here are the codes: >> >> class a: >> pass >> >> >> i = a () >> j = a () >> k = a () >> >> i < j returns True >> >> j < k returns False >> >> why? >> >> Lion Chen >> ___

Re: [Tutor] why i < j is True, j < k is False

2012-05-04 Thread Lion Chen
于 2012年05月04日 22:12, Dave Angel 写道: On 05/04/2012 09:29 AM, Lion Chen wrote: Hi, All, here are the codes: class a: pass i = a () j = a () k = a () i< j returns True j< k returns False why? Lion Chen ___ Tutor maillist - Tutor@python.org To u

Re: [Tutor] What does L at last stands for when 10 ** 30

2012-05-04 Thread Dave Angel
On 05/04/2012 09:57 AM, Santosh Kumar wrote: > I am doing: power = 10 ** 30 power > and the output: 1...L # what does L represent > interesting thing is L doesn't shows when I do a: print power > ___ The L stands for "long".

Re: [Tutor] why i < j is True, j < k is False

2012-05-04 Thread Dave Angel
On 05/04/2012 09:29 AM, Lion Chen wrote: > Hi, All, > here are the codes: > > class a: > pass > > > i = a () > j = a () > k = a () > > i < j returns True > > j < k returns False > > why? > > Lion Chen > ___ > Tutor maillist - Tutor@python.org > To unsub

Re: [Tutor] why i < j is True, j < k is False

2012-05-04 Thread Lion Chen
On Fri, May 4, 2012 at 9:29 AM, Lion Chen wrote: Hi, All, here are the codes: class a: pass i = a () j = a () k = a () i< j returns True j< k returns False why? Lion Chen ___ Tutor maillist - Tutor@python.org To unsubscribe or change subsc

Re: [Tutor] What does L at last stands for when 10 ** 30

2012-05-04 Thread Joel Goldstick
On Fri, May 4, 2012 at 9:57 AM, Santosh Kumar wrote: > I am doing: power = 10 ** 30 power > > and the output: 1...L          # what does L represent > > interesting thing is L doesn't shows when I do a: print power > ___ > Tutor mailli

Re: [Tutor] why i < j is True, j < k is False

2012-05-04 Thread Joel Goldstick
On Fri, May 4, 2012 at 9:29 AM, Lion Chen wrote: > Hi, All, > here are the codes: > > class a: > pass > > > i = a () > j = a () > k = a () > > i < j returns True > > j < k returns False > > why? > > Lion Chen > ___ > Tutor maillist  -  Tutor@python.org >

[Tutor] What does L at last stands for when 10 ** 30

2012-05-04 Thread Santosh Kumar
I am doing: >>> power = 10 ** 30 >>> power and the output: >>> 1...L # what does L represent interesting thing is L doesn't shows when I do a: print power ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options

[Tutor] why i < j is True, j < k is False

2012-05-04 Thread Lion Chen
Hi, All, here are the codes: class a: pass i = a () j = a () k = a () i < j returns True j < k returns False why? Lion Chen ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listin

Re: [Tutor] Embed python in a website

2012-05-04 Thread Mark Lawrence
On 04/05/2012 02:02, Mark Lawrence wrote: On 03/05/2012 23:56, Emile van Sebille wrote: On 5/3/2012 2:28 PM Adrian said... I recently created a gui form using tkinter, is it possible to integrate this form to my website page? How do i integrate? pyjs aka pyjamas allows you to write once and

Re: [Tutor] the regex boundary about chinese word

2012-05-04 Thread Peter Otten
goog cheng wrote: > Hi, I got this problem : > > #!python > # -*- coding: utf-8 -*- > import re > > p = re.compile(ur'\bc123\b') > print '**',p.search('no class c123 at all').group() > > p = re.compile(ur'\b\u7a0b\u6770\b') > print ur'\u7a0b\u6770' > print '',p.search(' 程杰 abc'.decode('utf