Re: [Tutor] What does the L at the end of a number means?

2009-02-28 Thread Lie Ryan
Nuno Hespanhol wrote: > Hi. > I have started learning phyton today! > I was playing around with some large numbers (fibonacci series) > and noticed that in some large calculations results have an "L" at the > end of a number. > Does this L stands for Large? Is there any way to disable this feature,

Re: [Tutor] What does the L at the end of a number means?

2009-02-28 Thread George Wahid
it means that it's type is "long". writing an expression makes python return its value, so writing 2**1000 will return a number that ends with L to show that it's a long integer. but writing "print 2**1000" will print the number without the L. I don't know if there is a way to disable this feature,

Re: [Tutor] What does the L at the end of a number means?

2009-02-28 Thread wesley chun
> I have started learning phyton today! > I was playing around with some large numbers (fibonacci series) > and noticed that in some large calculations results have an "L" at the end > of a number. > Does this L stands for Large? Is there any way to disable this feature, so > that all numbers are s

[Tutor] What does the L at the end of a number means?

2009-02-28 Thread Nuno Hespanhol
Hi. I have started learning phyton today! I was playing around with some large numbers (fibonacci series) and noticed that in some large calculations results have an "L" at the end of a number. Does this L stands for Large? Is there any way to disable this feature, so that all numbers are shown?

[Tutor] Auto Refresh

2009-02-28 Thread Hi
Thank you for the reply, SetLabel is exactly what I am looking for. And yes, you were correct, I just typoed the var_rate() when I was composing the email. So what I did is in my main GUI class: wx.StaticText(self, -1, sampling rate':', (107, 150)) self.rate_status = wx.StaticText(self, -1

Re: [Tutor] new print statement + time module

2009-02-28 Thread bob gailer
George Wahid wrote: I downloaded python 3.0.1 today and started experimenting with the new print statement. print is a function, not a statement. -- Bob Gailer Chapel Hill NC 919-636-4239 ___ Tutor maillist - Tutor@python.org http://mail.python.or

Re: [Tutor] new print statement + time module

2009-02-28 Thread George Wahid
> You aren't doing anything wrong. The print function writes to > sys.stdout. > sys.stdout is a buffered file which means it doesn''t write to its > output > immediately but waits until enough data is in its buffer to make it > worthwhile - or until explicitly told to flush itself. > > Because you

Re: [Tutor] new print statement + time module

2009-02-28 Thread Alan Gauld
"George Wahid" wrote Thanks for the answers. I didn't have this problem with python 2.5. I know I can use stdout instead, but I want to know what I'm doing wrong. You aren't doing anything wrong. The print function writes to sys.stdout. sys.stdout is a buffered file which means it doesn''t

[Tutor] re Format a file

2009-02-28 Thread prasad rao
Hello >> for line in so: >> if len(line)<70:de.write(line+'\n') >> if len(line)>70: >> da=textwrap.fill(line,width=60) >> de.write(da+'\n') >What happens if the line is exactly 70 characters long? >I think you want an else instead of the second i

Re: [Tutor] new print statement + time module

2009-02-28 Thread George Wahid
Thanks for the answers. I didn't have this problem with python 2.5. I know I can use stdout instead, but I want to know what I'm doing wrong. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] new print statement + time module

2009-02-28 Thread Ken Oliver
-Original Message- >From: spir >Sent: Feb 28, 2009 2:16 AM >To: tutor@python.org >Subject: Re: [Tutor] new print statement + time module > >Le Sat, 28 Feb 2009 06:34:07 +0200, >George Wahid s'exprima ainsi: > >> I downloaded python 3.0.1 today and started experimenting with the new >> p