[Python-Dev] socket.try_reuse_address() (original) (raw)
Trent Nelson tnelson at onresolve.com
Wed Apr 30 20:07:37 CEST 2008
- Previous message: [Python-Dev] socket.try_reuse_address()
- Next message: [Python-Dev] socket.try_reuse_address()
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
This one will not work.
>>> 'windows' in System.getProperty('os.name').lower() Traceback (innermost last): File "", line 1, in ? TypeError: string member test needs char left operand >>>
Interesting, which version of Jython were you using?
You may have to do something like System.getProperty('os.name').lower().find('windows').
That didn't work for me. I assume the following works for you:
System.getProperty('os.name').lower().startswith('windows')
- Previous message: [Python-Dev] socket.try_reuse_address()
- Next message: [Python-Dev] socket.try_reuse_address()
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]