Backward compatibility in python


 
Thread Tools Search this Thread
Top Forums Programming Backward compatibility in python
# 1  
Old 03-11-2012
Backward compatibility in python

Actually I have installed python 3.2.
It seems there are a lot of synta variance between 2.2 and 3.2.
Is it possible to run a script in 2.2 without actually installing 2.2.
But I have installed 3.2.
and also is it possible to access the 2.2 shell in 3.2 version.
I am naive in python .
Please help me .
Thanks
# 2  
Old 03-12-2012
Read the Change Log. In short:
  • There's no compatibility switch
  • There's a utility that will convert Python 2 to 3 scripts (aptly named 2to3)
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Programming

Create a C source and compile inside Python 1.4.0 to 3.7.0 in Python for ALL? platforms...

Hi all... As you know I like making code backwards compatible for as many platforms as possible. This Python script was in fact dedicated for the AMIGA A1200 using Pythons 1.4.0, 1.5.2, 1.6.0, 2.0.1, and 2.4.6 as that is all we have for varying levels of upgrades from a HDD and 4MB FastRam... (1 Reply)
Discussion started by: wisecracker
1 Replies

2. Shell Programming and Scripting

Backward compatibility issue with GNU bash, version 4.3.42(5)

Hi, I have made a snake game on below bash version. But it is not backward compatible. Can someone suggest a version which is most commonly used and is backward compatible so that i can change my code and share again? I have attached the game script. If someone can run it please also suggest... (5 Replies)
Discussion started by: amit14august
5 Replies

3. UNIX for Dummies Questions & Answers

Help With Backward grep

hey, i got 2 files with the following content: file1: LOCAL_GSK1 50:01:24:80:45:f1:15:23 50:01:24:81:45:f1:15:23 50:01:24:82:45:f1:15:23 50:01:24:83:45:f1:15:23 LOCAL_GSK2 50:01:24:82:00:9c:d7:a7 50:01:24:82:01:bc:d7:a7 50:01:24:82:02:dc:d7:a7 50:01:24:82:03:fc:d7:a7 LOCAL_GSK3... (1 Reply)
Discussion started by: boaz733
1 Replies

4. Shell Programming and Scripting

backward string cut

I need only the last .ko files to be stripped from the whole result., ie libiscsi2.ko, scsi_transport_iscsi2.ko etc.. kernel/drivers/scsi/libiscsi2.ko kernel/drivers/scsi/scsi_transport_iscsi2.ko kernel/drivers/scsi/scsi_transport_iscsi.ko kernel/fs/nls/nls_utf8.ko... (4 Replies)
Discussion started by: anilcliff
4 Replies

5. SCO

sco unix backward compatibility on "max open file per process"

Hi How to increase maximum number of open file in "sco xenix binary" running in "sco unix openserver 5.0.7" ? I have changed "NOFILES" kernel parameter to 512, but xenix binray can't open more than 60. tnx (4 Replies)
Discussion started by: javad1_maroofi
4 Replies

6. Shell Programming and Scripting

forward/backward capable prompt

Hi, I would like to construct an interactive prompt for a series of bash shell scripts. This prompt will ask the user a series of questions, and the answers will determine which scripts are run, and in which order. I am familiar with the "read" command, and have successfully constructed a... (2 Replies)
Discussion started by: msb65
2 Replies

7. UNIX for Advanced & Expert Users

Substitute single backward-slash with the double backward-slash

Hi, I have a path like this c:\test\sample\programs, i need to change thiis to c:\\test\\sample\\programs. How to perform this? I tried tr command but it didn't help me. Thanks Vijayan (3 Replies)
Discussion started by: mvictorvijayan
3 Replies

8. UNIX for Dummies Questions & Answers

Find the current cursor word in backward

hello, i'm using the vi editor (not vim) and my main use in it is for C++ programming. After working on Visual Studio 2005 the auto-complete looks like paradise now... so i'm trying to find a way to have auto-complete also in the vi. i cant install vim and use the ctrl+P. i need to find a way... (1 Reply)
Discussion started by: Malbinir
1 Replies
Login or Register to Ask a Question