float( ) inconsistency?

José Rui Faustino de Sousa jrfsousaREMOVE00594ACC at esoterica.pt
Sat Nov 17 23:01:15 CET 2001


Hi!

I am a little bothered by float( ) behaviour.

I think float( '1.0e' ) or float( 1.0e-' ) should not raise an error.

After all x = 1.0e or x = 1.0e- both are legal floats.

Should not this be fixed?

Best regards
José Rui


--
========================================================================
Oh, Lord, we thank Thee for the Oxygen Gas; we thank Thee for the
Hydrogen Gas; and for all the gases. We thank Thee for the Cerebrum; we
thank Thee for the Cerebellum; and for the Medulla Oblongata. Amen! -
John Wheelock.
========================================================================
Iam://José Rui Faustino de Sousa http://homepage.esoterica.pt/~jrfsousa/
mailto://jrfsousaREMOVE00594ACC@esoterica.pt phone://+351-239444940
address://rua Carlos A. Pinto de Abreu nº 30C, 1º 3040 Coimbra Portugal
========================================================================
Real Programmers do sig blocks in Fortran 95.
========================================================================






More information about the Python-list mailing list