from python1.5.2 to pytghon2.2.2

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Alberto Mantovani

    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
  • Peter Hansen

    #2
    Re: from python1.5.2 to pytghon2.2.2

    Alberto Mantovani wrote:[color=blue]
    >
    > 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?[/color]

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

    -Peter

    Comment

    • Terry Reedy

      #3
      Re: from python1.5.2 to pytghon2.2.2


      "Alberto Mantovani" <alberto.mantov aniNOSPAM@bolog na.marelli.it> wrote
      in message news:3ef16536.3 234041@news.mar elli.it...[color=blue]
      > Hi,
      > I have a lot of scripts written in python1.5.2 that I have to bring[/color]
      in[color=blue]
      > python2.2.2 , someone could give me some informations about the[/color]
      sintax[color=blue]
      > differences between the two versions?.[/color]

      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


      Comment

      • Derrick 'dman' Hudson

        #4
        Re: from python1.5.2 to pytghon2.2.2

        Alberto Mantovani <alberto.mantov aniNOSPAM@bolog na.marelli.it> wrote:[color=blue]
        > 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?.[/color]

        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: dman@dman13.dyn dns.org

        Comment

        Working...