Re: [Tutor] Need some info

2010-04-20 Thread Wayne Werner
On Tue, Apr 20, 2010 at 9:37 PM, Marco Rompré wrote: > Hi! in my programming course at university, I need to create a python model > with 2 concepts in a one towards many relation each of them having 2-3 > properties. > > Also, I need to create an application with screens to add, modify, and > d

[Tutor] Need some info

2010-04-20 Thread Marco Rompré
Hi! in my programming course at university, I need to create a python model with 2 concepts in a one towards many relation each of them having 2-3 properties. Also, I need to create an application with screens to add, modify, and delete the data of the model. Can someone know where I can find t

Re: [Tutor] the binary math "wall"

2010-04-20 Thread Lowell Tackett
>From the virtual desk of Lowell Tackett --- On Tue, 4/20/10, Steven D'Aprano wrote: > From: Steven D'Aprano > Subject: Re: [Tutor] the binary math "wall" > To: tutor@python.org > Date: Tuesday, April 20, 2010, 7:39 PM > On Wed, 21 Apr 2010 02:58:06 am > Lowell Tackett wrote: > > I'm runni

Re: [Tutor] the binary math "wall"

2010-04-20 Thread Steven D'Aprano
On Wed, 21 Apr 2010 02:58:06 am Lowell Tackett wrote: > I'm running headlong into the dilemma of binary math representation, with game-ending consequences, e.g.: > >>> 0.15 > > 0.14999 > > Obviously, any attempts to manipulate this value, under the misguided > assumption that it is tru

Re: [Tutor] Python Examples of processing MS Outlook

2010-04-20 Thread Hansen, Mike
> -Original Message- > From: tutor-bounces+mike.hansen=atmel@python.org > [mailto:tutor-bounces+mike.hansen=atmel@python.org] On > Behalf Of Peter Meagher > Sent: Friday, April 16, 2010 3:13 AM > To: tutor@python.org > Subject: [Tutor] Python Examples of processing MS Outlook >

Re: [Tutor] the binary math "wall"

2010-04-20 Thread spir ☣
On Tue, 20 Apr 2010 14:45:50 -0400 Dave Angel wrote: > If all values are made up of degrees/minutes/seconds, and seconds is a > whole number, then store values as num-seconds, and do all arithmetic on > those values. Only convert them back to deg/min/sec upon output. This seems the most dire

Re: [Tutor] the binary math "wall"

2010-04-20 Thread Dave Angel
Lowell Tackett wrote: I'm running headlong into the dilemma of binary math representation, with game-ending consequences, e.g.: 0.15 0.14999 Obviously, any attempts to manipulate this value, under the misguided assumption that it is truly "0.15" are ill-advised, with

Re: [Tutor] the binary math "wall"

2010-04-20 Thread Lowell Tackett
>From the virtual desk of Lowell Tackett --- On Tue, 4/20/10, Luke Paireepinart wrote: > From: Luke Paireepinart > Subject: Re: [Tutor] the binary math "wall" > To: "Lowell Tackett" > Cc: "tutor" > Date: Tuesday, April 20, 2010, 1:20 PM > On Tue, Apr 20, 2010 at 11:58 AM, > Lowell Tacket

Re: [Tutor] the binary math "wall"

2010-04-20 Thread Lie Ryan
On 04/21/10 02:58, Lowell Tackett wrote: > I'm running headlong into the dilemma of binary math representation, with > game-ending consequences, e.g.: > Never use float for representing numbers, use float to represent a "magnitude", do not rely on the exact representation of the number itself.

Re: [Tutor] the binary math "wall"

2010-04-20 Thread spir ☣
On Tue, 20 Apr 2010 09:58:06 -0700 (PDT) Lowell Tackett wrote: > I'm running headlong into the dilemma of binary math representation, with > game-ending consequences, e.g.: > > >>> 0.15 > 0.14999 > [...] > The last line should be zero, and needs to be for me to continue this > algo

Re: [Tutor] the binary math "wall"

2010-04-20 Thread Wayne Werner
On Tue, Apr 20, 2010 at 11:58 AM, Lowell Tackett wrote: > I'm running headlong into the dilemma of binary math representation, with > game-ending consequences, e.g.: > > >>> 0.15 > 0.14999 > > Obviously, any attempts to manipulate this value, under the misguided > assumption that it is

Re: [Tutor] the binary math "wall"

2010-04-20 Thread Jerry Hill
On Tue, Apr 20, 2010 at 12:58 PM, Lowell Tackett wrote: > Any of Python's help-aids that I apply to sort things out, such as formatting > (%), or modules like "decimal" do nothing more than "powder up" the display > for visual consumption (turning it into a string).  The underlying float > valu

Re: [Tutor] the binary math "wall"

2010-04-20 Thread Luke Paireepinart
On Tue, Apr 20, 2010 at 11:58 AM, Lowell Tackett wrote: > I'm running headlong into the dilemma of binary math representation, with > game-ending consequences, e.g.: > 0.15 > 0.14999 > > Obviously, any attempts to manipulate this value, under the misguided > assumption that it i

[Tutor] the binary math "wall"

2010-04-20 Thread Lowell Tackett
I'm running headlong into the dilemma of binary math representation, with game-ending consequences, e.g.: >>> 0.15 0.14999 Obviously, any attempts to manipulate this value, under the misguided assumption that it is truly "0.15" are ill-advised, with inevitable bad results. the part