473,394 Members | 1,785 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

from python1.5.2 to pytghon2.2.2

Hi,
I have a lot of scripts written in python1.5.2 that I have to bring in
python2.2.2 , someone could give me some informations about the sintax
differences between the two versions?.
Are there some tools that can do this automatically?

thanks

Alberto
Jul 18 '05 #1
3 1298
Alberto Mantovani wrote:

I have a lot of scripts written in python1.5.2 that I have to bring in
python2.2.2 , someone could give me some informations about the sintax
differences between the two versions?.
Are there some tools that can do this automatically?


It's probably adequate to read in detail each of the What's New? pages
at http://www.amk.ca/python/ .

-Peter
Jul 18 '05 #2

"Alberto Mantovani" <al*********************@bologna.marelli.it> wrote
in message news:3e**************@news.marelli.it...
Hi,
I have a lot of scripts written in python1.5.2 that I have to bring in python2.2.2 , someone could give me some informations about the sintax differences between the two versions?.


Most of the changes have been *additions* that do not change the
behavior of older scripts. It it quite possible that your 1.5.2
scripts will run fine in current interpreters. One way to find out it
to run them with whatever test setups you have.

TJR
Jul 18 '05 #3
Alberto Mantovani <al*********************@bologna.marelli.it> wrote:
Hi,
I have a lot of scripts written in python1.5.2 that I have to bring in
python2.2.2 , someone could give me some informations about the sintax
differences between the two versions?.


The syntax is the same, except for a new keyword (maybe two). The
_semantics_ have changed somewhat and lots of new features (library
stuff) is included.

See AMK's "What's New" write-ups on python.org for the details.

-D

--
If you want to know what God thinks about money,
just look at the people He gives it to.
-- Old Irish Saying

www: http://dman13.dyndns.org/~dman/ jabber: dm**@dman13.dyndns.org
Jul 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Gabriel | last post by:
Hello everybody. I have a question about how to protect my PHP-script from all unauthorized access. I have a PHP-script on my web server and this PHP-script should only be accessible from _one_...
1
by: Oliver Spiesshofer | last post by:
Hi, I am running a simple mail function, and I want to set the FROM header within the function: mail( "mailbox@provider.com", "testsubject", "testbody", "From: Oliver <oliver@mydomain.com>
5
by: Dariusz | last post by:
I have PHP code (below) which reads data from a MySQL format database. The problem I am having is trying to find out when the last ID entry was made. When the script is executed, the $gbID is...
4
by: Rahul Anand | last post by:
Hi all, I am trying to fetch 5 records, randomly picked and in random order from a MySQL table (MySQL version > 3.23). I wrote my SQL Query as SELECT name,id FROM tablename WHERE active =...
7
by: CoralineSage | last post by:
Hi there, I know very little about PHP, but I was just curious to know why exactly would some PHP code run fine from the command line but not from the browser? I'm just curious. I was working...
5
by: Spidah | last post by:
If I run a mysql query that gets a single field from a row in a database table, what is the easiest way to get the value from the result? I normally do something like this: $query = "SELECT...
0
by: Alberto Mantovani | last post by:
Hi, I have a lot of scripts written in python1.5.2 that I want to bring in python2.2.2. Someone could give me some informations about the sintax difference between this 2 version? Where can I...
0
by: Alberto Mantovani | last post by:
Hi, I have a lot of scripts written in python1.5.2 that I want to bring in python2.2.2. Someone could give me some informations about the sintax difference between this 2 version? Where can I...
0
by: CantSpellMyName | last post by:
Hi folks, i have to re-write an application that was using python scripts as configuration files (i.e. python embedded into c++) and it was using python1.5 (python15_d.dll). Now i would like to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.