Sort by domain name?

Paul Rubin http
Mon Oct 2 11:12:52 EDT 2006


"js " <ebgssth at gmail.com> writes:
> Here, domain name doesn't contain subdomain,
> or should I say, domain's part of 'www', mail, news and en should be
> excluded.

It's a little more complicated, you have to treat co.uk about 
the same way as .com, and similarly for some other countries
but not all.  For example, subdomain.companyname.de versus
subdomain.companyname.com.au or subdomain.companyname.co.uk.
You end up needing a table or special code to say
how to treat various countries.



More information about the Python-list mailing list