[Python-Dev] Support the /usr/bin/python2 symlink upstream
Steven D'Aprano
steve at pearwood.info
Wed Mar 2 20:35:01 CET 2011
More information about the Python-Dev mailing list
Wed Mar 2 20:35:01 CET 2011
- Previous message: [Python-Dev] Support the /usr/bin/python2 symlink upstream
- Next message: [Python-Dev] Support the /usr/bin/python2 symlink upstream
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Jérôme Radix wrote:
> Hello,
>
> Defensive programming will force you to do things like :
>
> import sys
> if sys.version[0] == '2':
Really? Do you already do this?
if sys.version < '2.2':
result = apply(func, arguments)
else:
result = func(*arguments)
And if so, have you tested it in Python 1.5 to see what happens?
--
Steven
- Previous message: [Python-Dev] Support the /usr/bin/python2 symlink upstream
- Next message: [Python-Dev] Support the /usr/bin/python2 symlink upstream
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list