re Challenge: More Compact?

Christopher A. Craig com-nospam at ccraig.org
Tue Jul 17 08:13:25 EDT 2001


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

tim at vegeta.ath.cx (Tim Hammerquist) writes:

> with Mozilla/4.73 [en] (X11; I; Linux 2.2.15-4mdk i686):
>     0127.0.0.001 fails.
>     127.0.0.001 succeeds.
>     127.0.0.00001 succeeds.
> 

Most likely Mozilla is interpreting 0127 is the octal representation
of the number 87 (base 10) and 001 as the octal representation of the
number 1 (base 10).  You could confirm this by trying 0010 instead of
001 in the last range.

- -- 
Christopher A. Craig <com-nospam at ccraig.org>
I develop for Linux for a living, I used to develop for DOS.  Going from
DOS to Linux is like trading a glider for an F117. - Lawrence Foard
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Processed by Mailcrypt

iEYEARECAAYFAjtUK+UACgkQjVztv3T8pzvocACfcsaGbK6cb6rA9I1W3lk4yr9G
+cgAniN4z3VD1njuTzEE8cknANjN08IW
=pOae
-----END PGP SIGNATURE-----



More information about the Python-list mailing list