PyWart: Language missing maximum constant of numeric types!

Mark Lawrence breamoreboy at yahoo.co.uk
Fri Feb 24 14:55:17 CET 2012


On 24/02/2012 13:37, Rick Johnson wrote:
> I get sick and tired of doing this!!!
>
> if maxlength == UNLIMITED:
>      allow_passage()
> elif len(string)>  maxlength:
>      deny_passage()
>
> What Python needs is some constant that can be compared to ANY numeric
> type and that constant will ALWAYS be larger!
>
>
>

Do you want to test for something that is larger than infinity?

-- 
Cheers.

Mark Lawrence.




More information about the Python-list mailing list