> -Original Message-
> From: breamore...@yahoo.co.uk
> Sent: Thu, 12 Jun 2014 09:18:16 +0100
> To: tutor@python.org
> Subject: Re: [Tutor] A couple newbie questions about Python
>
> Please don't top post, it makes following a long thread extremely
> difficult,
On 12/06/14 09:18, Mark Lawrence wrote:
Besides Alan's previous statement about using integers you can also use
things like Python's decimal module see
https://docs.python.org/3/library/decimal.html#module-decimal
Although Decimal doesn't solve the issue of rounding errors for
financial calcul
On Thu, Jun 12, 2014 at 1:27 AM, Alex Kleider wrote:
> On 2014-06-11 20:08, Dave Angel wrote:
>
>> I learned programming in 1967 with Fortran, and McCracken spent a
>> chapter warning about that same thing. Probably everything he
>> warned about still applies to Python and modern computers.
>
> A
Please don't top post, it makes following a long thread extremely
difficult, thanks.
On 12/06/2014 03:47, Deb Wyatt wrote:
Thanks very much Alan. As for the my concern about inaccuracy in float math, I
suppose I am concerned because I was not aware of the issue before, and I
wonder how you
I wonder how you deal with such things when you need accuracy for financial
things.
Financial applications traditionally work in the lowest unit of currency and
use integers.
For display purposes they convert the pennies into dollars/cents or
pounds/pence or whatever.
Alan Gauld
Author of the
; From: alan.ga...@btinternet.com
> Sent: Wed, 11 Jun 2014 23:48:37 +0100
> To: tutor@python.org
> Subject: Re: [Tutor] A couple newbie questions about Python
>
> On 11/06/14 21:46, Deb Wyatt wrote:
>> Hi. Everywhere I have read, the 'standard practice' for indentatio
Hi, responses below...
Dne 11. 6. 2014 22:46, Deb Wyatt napsal(a):
Hi. Everywhere I have read, the 'standard practice' for indentation is 4
spaces, but I am running into 2 space indentation in a lot of tutorials and
such. Should I keep with the 4 spaces, or does it even matter, as long as it
On 2014-06-11 20:08, Dave Angel wrote:
I learned programming in 1967 with Fortran, and McCracken spent a
chapter warning about that same thing. Probably everything he
warned about still applies to Python and modern computers.
A google search for "McCracken" did not yield anyone that seems
Hi Deb,
My responses below, interleaved with your questions.
On Wed, Jun 11, 2014 at 12:46:11PM -0800, Deb Wyatt wrote:
> Hi. Everywhere I have read, the 'standard practice' for indentation
> is 4 spaces, but I am running into 2 space indentation in a lot of
> tutorials and such. Should I k
Deb Wyatt Wrote in message:
> Hi. Everywhere I have read, the 'standard practice' for indentation is 4
> spaces, but I am running into 2 space indentation in a lot of tutorials and
> such. Should I keep with the 4 spaces, or does it even matter, as long as it
> is consistent?
>
4 spaces is
On 11/06/14 21:46, Deb Wyatt wrote:
Hi. Everywhere I have read, the 'standard practice' for indentation is 4
spaces,
That's a style recommendation. Python doesn't care.
But your readers will. 2 spaces is the absolute minimum,
8 spaces is about the absolute maximum. Outside that it
gets hard t
11 matches
Mail list logo