Re: [Python-Dev] format specification mini-language docs...

2008-12-01 Thread Eric Smith
ke care of it. Eric. -Original Message- From: Eric Smith [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 25, 2008 4:38 AM To: Dino Viehland Cc: python-dev@python.org dev Subject: Re: [Python-Dev] format specification mini-language docs... Dino Viehland wrote: Finally providing any sign char

Re: [Python-Dev] format specification mini-language docs...

2008-12-01 Thread Dino Viehland
PROTECTED] Sent: Tuesday, November 25, 2008 4:38 AM To: Dino Viehland Cc: python-dev@python.org dev Subject: Re: [Python-Dev] format specification mini-language docs... Dino Viehland wrote: > Finally providing any sign character seems to cause +1.0#INF and friends to > be returned

Re: [Python-Dev] format specification mini-language docs...

2008-11-25 Thread Eric Smith
Dino Viehland wrote: Finally providing any sign character seems to cause +1.0#INF and friends to be returned instead of inf as is documented: 10e667.__format__('+') '+1.0#INF' 10e667.__format__('') 'inf' Are these just doc bugs? The inf issue is the only one that seems particularly we

Re: [Python-Dev] format specification mini-language docs...

2008-11-21 Thread Eric Smith
Dino Viehland wrote: Ok, now I'm implementing __format__ support for IronPython. The format spec mini-language docs say that a presentation type of None is the same as 'g' for floating point / decimal values. Awesome! Thanks for doing this. >But these two formats seem to differ based upon ho

[Python-Dev] format specification mini-language docs...

2008-11-21 Thread Dino Viehland
Ok, now I'm implementing __format__ support for IronPython. The format spec mini-language docs say that a presentation type of None is the same as 'g' for floating point / decimal values. But these two formats seem to differ based upon how they handle whole numbers: >>> 2.0.__format__('') '2.