[Python-Dev] _socket efficiencies ideas

Gisle Aas gisle@ActiveState.com
09 Apr 2003 20:45:52 -0700


Greg Ewing <greg@cosc.canterbury.ac.nz> writes:

> Marcus Mendenhall <marcus.h.mendenhall@vanderbilt.edu>:
> 
> > Just: if (string[0]=='<' && not strncmp(string,"<numeric>",9))
> > {whatever}
> 
> By the same token, checking whether the first char is
> a digit ought to weed out about 99.999% of all
> non-numeric domain name addresses.

3m.com is a registered domain name.

Regards,
Gisle Aas,
ActiveState