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-list

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` == `print str(3.2)`.

Re: printing anomaly

2005-03-20 Thread Roy Smith
In article [EMAIL PROTECTED], Paul Rubin http://[EMAIL PROTECTED] 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

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 print uses