Web Images Videos Maps News Shopping Gmail more »
Recently Visited Groups | Help | Sign in
Google Groups Home
3.x and 2.x on same machine (is this info at Python.org??)
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  7 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
rantingrick  
View profile  
 More options Nov 12, 2:52 pm
Newsgroups: comp.lang.python
From: rantingrick <rantingr...@gmail.com>
Date: Thu, 12 Nov 2009 11:52:18 -0800 (PST)
Local: Thurs, Nov 12 2009 2:52 pm
Subject: 3.x and 2.x on same machine (is this info at Python.org??)
Hello,

Currently i am using 2.6 on Windows and need to start writing code in
3.0. I cannot leave 2.x yet because 3rd party modules are still not
converted. So i want to install 3.0 without disturbing my current
Python2.x. What i'm afraid of is that some SYSVARIABLE will get
changed to Python3.0 and when i double click a Python script it will
try and run Python 3.x instead of 2.x. I only want to run 3.0 scripts
from the command line... > python3.x myscript.py

So how do i do this? Is my fear unfounded?

Thanks


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Benjamin Kaplan  
View profile  
 More options Nov 12, 3:49 pm
Newsgroups: comp.lang.python
From: Benjamin Kaplan <benjamin.kap...@case.edu>
Date: Thu, 12 Nov 2009 15:49:41 -0500
Local: Thurs, Nov 12 2009 3:49 pm
Subject: Re: 3.x and 2.x on same machine (is this info at Python.org??)

On Thu, Nov 12, 2009 at 2:52 PM, rantingrick <rantingr...@gmail.com> wrote:
> Hello,

> Currently i am using 2.6 on Windows and need to start writing code in
> 3.0. I cannot leave 2.x yet because 3rd party modules are still not
> converted. So i want to install 3.0 without disturbing my current
> Python2.x. What i'm afraid of is that some SYSVARIABLE will get
> changed to Python3.0 and when i double click a Python script it will
> try and run Python 3.x instead of 2.x. I only want to run 3.0 scripts
> from the command line... > python3.x myscript.py

> So how do i do this? Is my fear unfounded?

At least on *nix (including OS X), installing Python 3 does exactly
what you want by default. I don't know how it handles it on Windows.


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Terry Reedy  
View profile  
 More options Nov 12, 3:51 pm
Newsgroups: comp.lang.python
From: Terry Reedy <tjre...@udel.edu>
Date: Thu, 12 Nov 2009 15:51:13 -0500
Local: Thurs, Nov 12 2009 3:51 pm
Subject: Re: 3.x and 2.x on same machine (is this info at Python.org??)

rantingrick wrote:
> Hello,

> Currently i am using 2.6 on Windows and need to start writing code in
> 3.0. I cannot leave 2.x yet because 3rd party modules are still not
> converted. So i want to install 3.0 without disturbing my current
> Python2.x. What i'm afraid of is that some SYSVARIABLE will get
> changed to Python3.0 and when i double click a Python script it will
> try and run Python 3.x instead of 2.x. I only want to run 3.0 scripts
> from the command line... > python3.x myscript.py

> So how do i do this? Is my fear unfounded?

When you install 3.1 (not 3.0), it asks whether to make 'this' the
default Python. Make sure the box is unchecked.

    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
rantingrick  
View profile  
 More options Nov 12, 5:15 pm
Newsgroups: comp.lang.python
From: rantingrick <rantingr...@gmail.com>
Date: Thu, 12 Nov 2009 14:15:10 -0800 (PST)
Local: Thurs, Nov 12 2009 5:15 pm
Subject: Re: 3.x and 2.x on same machine (is this info at Python.org??)
On Nov 12, 2:51 pm, Terry Reedy <tjre...@udel.edu> wrote:

> rantingrick wrote:
> > Hello,

> > Currently i am using 2.6 on Windows and need to start writing code in
> > 3.0. I cannot leave 2.x yet because 3rd party modules are still not
> > converted. So i want to install 3.0 without disturbing my current
> > Python2.x. What i'm afraid of is that some SYSVARIABLE will get
> > changed to Python3.0 and when i double click a Python script it will
> > try and run Python 3.x instead of 2.x. I only want to run 3.0 scripts
> > from the command line... > python3.x myscript.py

> > So how do i do this? Is my fear unfounded?

> When you install 3.1 (not 3.0), it asks whether to make 'this' the
> default Python. Make sure the box is unchecked.

Thanks for both of your replies, just to be safe though i'm going to
back up everything ... Python 3000, here i come and i hope your ready
for me!?!?

Later Guy's!


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dan Bishop  
View profile  
 More options Nov 13, 1:30 am
Newsgroups: comp.lang.python
From: Dan Bishop <danb...@yahoo.com>
Date: Thu, 12 Nov 2009 22:30:24 -0800 (PST)
Local: Fri, Nov 13 2009 1:30 am
Subject: Re: 3.x and 2.x on same machine (is this info at Python.org??)
On Nov 12, 1:52 pm, rantingrick <rantingr...@gmail.com> wrote:

> Hello,

> Currently i am using 2.6 on Windows and need to start writing code in
> 3.0. I cannot leave 2.x yet because 3rd party modules are still not
> converted. So i want to install 3.0 without disturbing my current
> Python2.x. What i'm afraid of is that some SYSVARIABLE will get
> changed to Python3.0 and when i double click a Python script it will
> try and run Python 3.x instead of 2.x. I only want to run 3.0 scripts
> from the command line... > python3.x myscript.py

> So how do i do this? Is my fear unfounded?

Windows determines the double-click action based on the file
extension.  You just have to make sure that *.py files are associated
with 2.x.
http://support.microsoft.com/kb/307859

    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dave Angel  
View profile  
 More options Nov 13, 6:05 am
Newsgroups: comp.lang.python
From: Dave Angel <da...@ieee.org>
Date: Fri, 13 Nov 2009 06:05:48 -0500
Local: Fri, Nov 13 2009 6:05 am
Subject: Re: 3.x and 2.x on same machine (is this info at Python.org??)

And if someone simply wants to check or change these associations
without all the Explorer nonsense, one can use
   assoc.exe    and    ftype.exe

Using them without parameters lists all association information.  Using
them with parameters let you examine and/or change a single association.

M:\Programming\Python\sources\dummy>assoc .py
.py=Python.File

M:\Programming\Python\sources\dummy>ftype python.file
python.file="C:\PROGFI~1\ACTIVE~1\python.exe" "%1" %*

Similarly for .pyw extension

DaveA


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nobody  
View profile  
 More options Nov 14, 4:55 pm
Newsgroups: comp.lang.python
From: Nobody <nob...@nowhere.com>
Date: Sat, 14 Nov 2009 21:55:25 +0000
Local: Sat, Nov 14 2009 4:55 pm
Subject: Re: 3.x and 2.x on same machine (is this info at Python.org??)

That isn't reliable.

The Windows registry has two distinct sets of mappings.

HKEY_LOCAL_MACHINE\Software\Classes contains system-wide mappings, while
HKEY_CURRENT_USER\Software\Classes contains per-user mappings. The
per-user mappings are checked first, with the system-wide mappings acting
as a fall-back. AFAICT, assoc and ftype modify the system-wide mappings,
so if you have a per-user mapping, they have no effect.

Note that HKEY_CLASSES_ROOT is a "virtual" key obtained by merging the
above two keys (analogous to a view in an RDBMS).

http://msdn.microsoft.com/en-us/library/ms724475(VS.85).aspx


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google