On Sun, 25 Jun 2006, James Graham wrote:

Well I don't think it will ever allow strings for integers as int(stringValue) will raise a ValueError (rather, if my implementation does allow that, I consider it a bug). The big advantage of my approach is that you can pass in a type like numpy.int8 to an integer setting and not have it fail, without having to hardcode every single numpy type into the type checks.

Ummm....

Python 2.3.4 (#1, Mar 14 2006, 11:40:38)
[GCC 3.4.4 20050721 (Red Hat 3.4.4-2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
int("3")
3

Did I misunderstand you? I wonder whether there is a isnumeric or an isstring function somewhere?

Jeremy

--
Jeremy Sanders <[EMAIL PROTECTED]>
http://www.jeremysanders.net/                Cambridge, UK
Public Key Server PGP Key ID: E1AAE053

_______________________________________________
Veusz-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/veusz-discuss

Répondre à