[Python-Dev] Re: Recommended way to tell platform

A.M. Kuchling amk at amk.ca
Mon Aug 9 22:42:28 CEST 2004


On Sun, Aug 08, 2004 at 09:02:21AM +0200, "Martin v. L?wis" wrote:
> Precisely that: impossible to say. In most cases, you should not test
> for the platform, but just use the platform functionality, and fall back
> to something else if it isn't present.

Returning to the asyncore case that started all this: should I follow
this principle and check if SO_EXCLUSIVEADDRUSE exists, and if it does
use that constant instead of SO_REUSEADDR?

--amk



More information about the Python-Dev mailing list