Re: rounding problem

2005-02-23 Thread Kristian M Zoerhoff
In article <[EMAIL PROTECTED]>, Andy Leszczynski wrote: > >>> a=1.1 > >>> a > 1.1001 > >>> > > > Is it normal? Yes, for floating-point numbers. This is due to inherent imprecision in how floats are represented in hardware. If you can live with being a touch off that many decimal plac

Re: [N00B] What's %?

2005-02-10 Thread Kristian M Zoerhoff
In article <[EMAIL PROTECTED]>, administrata wrote: > I don't understand about % like... > > 107 % 4 = 3 > 7 % 3 = 1 > That's the modulo operation; it returns the remainder, rather than the quotient. -- zoerhoff(AT)sdf.lonestar.org kristian.zoerhoff(AT)gmail.com -- http://mail.python.org/mai

Re: Help: retrieving e-mail from yahoo pop server. what's wrong?

2005-02-09 Thread Kristian M Zoerhoff
In article <[EMAIL PROTECTED]>, Andre wrote: > > import getpass, poplib, re > POPHOST = "pop.mail.yahoo.com" > POPUSER = "mylogin" > POPPASS = "mypass" > pop = poplib.POP3(POPHOST) > pop.user(POPUSER) > > > up to this point evertything proceeds fine, but when i do > > > if not POPPASS:> > POP