Upgrading Python Article

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Michael Foord

    #1

    Upgrading Python Article

    http://www.voidspace.org.uk/python/a...ng_python.html

    I've been looking at whether to upgrade immediately from Python 2.3 to
    Python 2.4 or postpone it. This is my first `major version change`, so
    I've come up against the usual windoze (tm) problem - upgrading python
    breaks all my extension modules.

    I've been looking into the issues, what modules do I use, can I
    compile them myself ? etc... and the result is a brief article on the
    issues round upgrading.

    I thought I would share (awww.... aint that nice).

    Flames welcomed.

    Regards,


    Fuzzy

    http://www.voidspace.org.uk/atlantib...thonutils.html
  • Jive

    #2
    Re: Upgrading Python Article

    I had to back out of 2.4. In time I'll upgrade.

    It's not really fair to blame windoze for the incompatibility . It is
    possible to make software backward compatible with shared libraries. But
    you need a plan. The windoze plan is based on COM in its various guises.
    Of course, it's not standard outside of the windoze world.

    D.

    "Michael Foord" <fuzzyman@gmail .com> wrote in message
    news:6f402501.0 412070359.75037 020@posting.goo gle.com...[color=blue]
    > http://www.voidspace.org.uk/python/a...ng_python.html
    >
    > I've been looking at whether to upgrade immediately from Python 2.3 to
    > Python 2.4 or postpone it. This is my first `major version change`, so
    > I've come up against the usual windoze (tm) problem - upgrading python
    > breaks all my extension modules.
    >
    > I've been looking into the issues, what modules do I use, can I
    > compile them myself ? etc... and the result is a brief article on the
    > issues round upgrading.
    >
    > I thought I would share (awww.... aint that nice).
    >
    > Flames welcomed.
    >
    > Regards,
    >
    >
    > Fuzzy
    >
    > http://www.voidspace.org.uk/atlantib...thonutils.html[/color]


    Comment

    • Fuzzyman

      #3
      Re: Upgrading Python Article

      Sure - I don't really *blame* windoze for the problem. It's just more
      of a pain upgrading python version on windows. As I said it's given me
      an opportunity to work out which extension modules I'm really using !

      In actual fact I admire windows, there's an awful lot that goes on
      beneath the hood. Microsofts dubious business practises mean that they
      get a lot of stick - but windows is very sophisticated.

      It is produced with a different ethos though, not *just* the fact that
      it is closed source. It is designed for users, whereas Lunix is
      designed for programmers. This means that setting up a compiler isn't a
      straightforward process (See the references in the article).

      Microsoft do now give away their .NET optimising compiler - but
      distutils can't be configured to use it without hacking into it. This
      means it's more tricky than configuring distutils to use gcc from
      mingw. I'm still not sure whether that will work for python 2.4 - I had
      got the impression it wouldn't. On the other hand the microsoft
      compiler is *better* than gcc anyway :-)

      Regards,
      Fuzzyman
      http://www.voidspace.org.uk/atlantib...thonutils.html

      Comment

      • JanC

        #4
        Re: Upgrading Python Article

        Fuzzyman schreef:
        [color=blue]
        > On the other hand the microsoft
        > compiler is *better* than gcc anyway :-)[/color]

        It's better at optimising, but it doesn't support standard C & C++. ;-)

        --
        JanC

        "Be strict when sending and tolerant when receiving."
        RFC 1958 - Architectural Principles of the Internet - section 3.9

        Comment

        • Tim Roberts

          #5
          Re: Upgrading Python Article

          JanC <usenet_spam@ja nc.invalid> wrote:
          [color=blue]
          >Fuzzyman schreef:
          >[color=green]
          >> On the other hand the microsoft
          >> compiler is *better* than gcc anyway :-)[/color]
          >
          >It's better at optimising, but it doesn't support standard C & C++. ;-)[/color]

          I don't think that's fair. Visual C++ 7.1 is signficantly better at
          compliance than their past compilers.
          --
          - Tim Roberts, timr@probo.com
          Providenza & Boekelheide, Inc.

          Comment

          • JanC

            #6
            Re: Upgrading Python Article

            Tim Roberts schreef:
            [color=blue]
            > I don't think that's fair. Visual C++ 7.1 is signficantly better at
            > compliance than their past compilers.[/color]

            AFAIK that's only for C++, not for C...?

            --
            JanC

            "Be strict when sending and tolerant when receiving."
            RFC 1958 - Architectural Principles of the Internet - section 3.9

            Comment

            • Tim Roberts

              #7
              Re: Upgrading Python Article

              JanC <usenet_spam@ja nc.invalid> wrote:
              [color=blue]
              >Tim Roberts schreef:
              >[color=green]
              >> I don't think that's fair. Visual C++ 7.1 is signficantly better at
              >> compliance than their past compilers.[/color]
              >
              >AFAIK that's only for C++, not for C...?[/color]

              Yes. Microsoft has largely chosen to ignore C99. According to the Visual
              Studio team, there has simply been no demand.
              --
              - Tim Roberts, timr@probo.com
              Providenza & Boekelheide, Inc.

              Comment

              Working...