0:05 AM
To: Michael Montagne
Cc: [EMAIL PROTECTED]
Subject: Re: [Webware-discuss] Choosing a python version - python vs
python2 vs python2.2
Can you tell from within python?
Michael Montagne wrote:
On 07/11/02, from the brain of Aaron Held tumbled:
Could launch check the python version of pyt
Does this do the trick?
os.system("python -V")
On Thursday, November 7, 2002, at 10:05 AM, Aaron Held wrote:
Can you tell from within python?
Michael Montagne wrote:
On 07/11/02, from the brain of Aaron Held tumbled:
Could launch check the python version of python and if it not 2.x
the
: [Webware-discuss] Choosing a python version - python vs
python2 vs python2.2
Can you tell from within python?
Michael Montagne wrote:
>>On 07/11/02, from the brain of Aaron Held tumbled:
>
>
>>Could launch check the python version of python and if it not 2.x then
>>try py
>>> sys.version_info
(2, 2, 1, 'final', 0)
- Geoff
> -Original Message-
> From: Aaron Held [mailto:aaron@;MetroNY.com]
> Sent: Thursday, November 07, 2002 10:05 AM
> To: Michael Montagne
> Cc: [EMAIL PROTECTED]
> Subject: Re: [Webware-discuss]
>On 07/11/02, from the brain of Aaron Held tumbled:
> Could launch check the python version of python and if it not 2.x then
> try python2...
>
> How do you tell the python version from python anyway?
>
> -Aaron
>
Try python -V.
--
Michael Montagne
[EMAIL PROTECTED]
http://www.themontagnes.
I agree - betting on what RedHat does in their distributions is not a
good plan in my idea.
It will break at some point in the future when Redhat updates their
scripts and decide that pyhon2 should be removed.
Maybe Launch.py should check the Python version and if it's not a 2.x
distribution, t
Hi,
Ian Bicking hat gesagt: // Ian Bicking wrote:
> Does anyone (at least on Posix) *not* have a python2 binary? I know on
> Debian, and I'm pretty sure Redhat, that Python has always had the
> "python" binary, and version-specific binaries (python2, python2.2,
> python1.5). Since Python 2.x is
> On Wed, 2002-11-06 at 20:03, Ian Bicking wrote:
>
> It's a pity that Redhat are shipping such an old version by default,
> presumably because newer versions break their scripts.
>
I for one appreciate the approach of maintaining backward compatibility with
python applications.
The conventi
Just for the case of discussion, Mac OS X only has python which is
python 2.2 currently.
Mike
On Wednesday, November 6, 2002, at 03:03 PM, Ian Bicking wrote:
Does anyone (at least on Posix) *not* have a python2 binary? I know on
Debian, and I'm pretty sure Redhat, that Python has always had th
On RedHat 7.3, python is version 1.5.2, but they also install python2 and
python2.2 which reference python version 2.2.
However, the Webware system launches python via one of the following
techniques.
#!/usr/bin/env python
-or-
#!/usr/bin/python
-or as in AppServer-
/usr/bin/env python
A
10 matches
Mail list logo