[Python-Dev] Re: Recommended way to tell platform (original) (raw)
A.M. Kuchling amk at amk.ca
Mon Aug 9 22:42:28 CEST 2004
- Previous message: [Python-Dev] Re: Recommended way to tell platform
- Next message: [Python-Dev] Asyncore .set_reuse_addr() on Windows
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [Python-Dev] Re: Recommended way to tell platform
- Next message: [Python-Dev] Asyncore .set_reuse_addr() on Windows
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]