[Tutor] why gtk.Entry does not give me right answers?

Russel Winder russel at winder.org.uk
Mon Apr 23 17:36:44 CEST 2012

On Tue, 2012-04-24 at 01:08 +1000, Steven D'Aprano wrote:
> * Use the decimal module instead of floats. You still have finite precision,
>   but you can choose how many *decimal* places to store instead of having a
>   fixed number of *binary* places. (But decimal is much slower.)

Alternatively use http://packages.python.org/bigfloat/ or possibly
> By the way, the code that you sent is unreadable. Please make sure that you
> send plain text email, and that indentation is not lost. Without indentation,
> it is impossible to understand your code.

Indeed. The lack of indentation was a barrier to contemplating looking
at the code. Especially since indentation is meaningful in Python!

Dr Russel Winder      t: +44 20 7585 2200   voip: sip:russel.winder at ekiga.net
41 Buckmaster Road    m: +44 7770 465 077   xmpp: russel at winder.org.uk
London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://mail.python.org/pipermail/tutor/attachments/20120423/c2504fa5/attachment.pgp>

More information about the Tutor mailing list