Am 29.11.2010 00:01, schrieb Alexander Belopolsky: > On Sun, Nov 28, 2010 at 5:56 PM, "Martin v. Löwis" <mar...@v.loewis.de> wrote: > .. >>> This definition fails long before we get beyond 127-th code point: >>> >>>>>> float('infinity') >>> inf >> >> What do infer from that? That the definition is wrong, or the code is wrong? > > The development version of the reference manual is more detailed, but > as far as I can tell, it still defines digit as 0-9. > > http://docs.python.org/dev/py3k/library/functions.html#float >
I wasn't asking about 0..9, but about "infinity". According to the spec, it shouldn't accept that (and neither should it accept 'infinitY'). However, whether that's a spec bug or an implementation bug - it seems like a minor issue to me (i.e. easily fixed). Regards, Martin _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com