On Tue, Aug 28, 2012 at 1:21 AM, Timo <timomli...@gmail.com> wrote:
> Op 28-08-12 10:06, Richard D. Moores schreef:

>> What if I wanted 3., 1234., etc. to be considered ints, as they are by
>> _validate_int()  ?
>
>
>>>> isinstance(3., (int, float))
> True
>
> Because 3. is a float, not int.

And
>>> isinstance(3.7, (int, float))
True

No, I'm asking for something equivalent to _validate_int().

Dick


>
> Timo
>
>>
>> Dick
>>
>> _______________________________________________
>> Tutor maillist  -  Tutor@python.org
>> To unsubscribe or change subscription options:
>> http://mail.python.org/mailman/listinfo/tutor
>
>
> _______________________________________________
> Tutor maillist  -  Tutor@python.org
> To unsubscribe or change subscription options:
> http://mail.python.org/mailman/listinfo/tutor
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to