Just a very bad memory and not enough sleep Strike.
Using sys.maxint will be the most maintainable scheme and is to be recommended
I was shocked to find it slowed the routine down . Not by much, but measurable. I guess the code can be optimised since an in-line constant won't change but the same cannot be said for sys.maxint.