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,
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,
> 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
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?
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
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
> 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
"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
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
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
-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
11 matches
Mail list logo