Re: printing anomaly

2005-03-20 Thread Greg Ewing
Paul Rubin wrote: What's the deal with this? >>> print 3.2 3.2 >>> print [3.2] [3.2002] >>> Yes, I know that 3.2 isn't an exact binary fraction. I'm wondering why it's converted differently depending on whether it's in a list. It's not. The difference is that prin

Re: printing anomaly

2005-03-20 Thread Erik Max Francis
Paul Rubin wrote: What's the deal with this? >>> print 3.2 3.2 >>> print [3.2] [3.2002] >>> Yes, I know that 3.2 isn't an exact binary fraction. I'm wondering why it's converted differently depending on whether it's in a list. repr vs. str. The str of the sequenc

Re: printing anomaly

2005-03-20 Thread Roy Smith
In article <[EMAIL PROTECTED]>, Paul Rubin wrote: > What's the deal with this? > > >>> print 3.2 > 3.2 > >>> print [3.2] > [3.2002] > >>> > > Yes, I know that 3.2 isn't an exact binary fraction. I'm wondering > why it's converted diff

RE: printing anomaly

2005-03-20 Thread Delaney, Timothy C (Timothy)
Paul Rubin wrote: > What's the deal with this? > > >>> print 3.2 > 3.2 > >>> print [3.2] > [3.2002] > >>> > > Yes, I know that 3.2 isn't an exact binary fraction. I'm wondering > why it's converted differently depending on whether it's in a list. `print 3.2` ==

printing anomaly

2005-03-20 Thread Paul Rubin
What's the deal with this? >>> print 3.2 3.2 >>> print [3.2] [3.2002] >>> Yes, I know that 3.2 isn't an exact binary fraction. I'm wondering why it's converted differently depending on whether it's in a list. -- http://mail.python.org/mailman/listinfo/python-lis