command history broken in Python2.3 ?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Nicola Mingotti

    command history broken in Python2.3 ?

    Hello ,

    I'm tring Python 2.3 ( on source and binary distribution ,
    on Linux and Windows ) and i think
    the command history doesn't work .

    When i use the Up-Arrow in Python2.3
    started in an xterm i get '^[[A' .
    In IDLE under Windows using Alt-p produce nothig .
    In IDLE under Linux Alt-p works !! .

    Do you have the same behavior in you
    interpreter ?

    Bye .

    (p.s. please forgive english mistakes )
  • vincent wehren

    #2
    Re: command history broken in Python2.3 ?

    Nicola Mingotti wrote:
    [color=blue]
    > Hello ,
    >
    > I'm tring Python 2.3 ( on source and binary distribution ,
    > on Linux and Windows ) and i think
    > the command history doesn't work .
    >
    > When i use the Up-Arrow in Python2.3
    > started in an xterm i get '^[[A' .
    > In IDLE under Windows using Alt-p produce nothig .
    > In IDLE under Linux Alt-p works !! .
    >
    > Do you have the same behavior in you
    > interpreter ?
    >
    > Bye .
    >
    > (p.s. please forgive english mistakes )[/color]

    Just installed 2.3 final release on Linux
    Same problem here...

    Vincent Wehren

    Comment

    • Martin v. Löwis

      #3
      Re: command history broken in Python2.3 ?

      Nicola Mingotti <nicola-mingotti_NOSPAM @libero.it> writes:
      [color=blue]
      > When i use the Up-Arrow in Python2.3
      > started in an xterm i get '^[[A' .
      > In IDLE under Windows using Alt-p produce nothig .
      > In IDLE under Linux Alt-p works !! .
      >
      > Do you have the same behavior in you
      > interpreter ?[/color]

      Can you determine whether the readline module was built (import
      readline)?

      Regards,
      Martin

      Comment

      • John J. Lee

        #4
        Re: command history broken in Python2.3 ?

        - readline module (or maybe incorrectly picked termlib instead of
        + readline library (or maybe incorrectly picked termlib instead of


        John

        Comment

        • Nicola Mingotti

          #5
          Re: command -- It works , on linux

          On Sun, 03 Aug 2003 17:35:31 +0200, Nicola Mingotti wrote:
          [color=blue]
          > Hello ,
          >[color=green]
          >> ... John and Martin spoke of termcap and readline ... there it was :)[/color][/color]

          .... I hadn't installed two C libraries that were needed :
          'readline' and 'termcap' . After installing them i re-configured/compiled
          python and now commands history works fine .
          But under windows , where i have only the binary version
          at hands , the problem remains ...

          bye .

          Nico

          Comment

          • Alex Martelli

            #6
            Re: command -- It works , on linux

            Nicola Mingotti wrote:
            [color=blue]
            > On Sun, 03 Aug 2003 17:35:31 +0200, Nicola Mingotti wrote:
            >[color=green]
            >> Hello ,
            >>[color=darkred]
            >>> ... John and Martin spoke of termcap and readline ... there it was :)[/color][/color]
            >
            > ... I hadn't installed two C libraries that were needed :
            > 'readline' and 'termcap' . After installing them i re-configured/compiled
            > python and now commands history works fine .
            > But under windows , where i have only the binary version
            > at hands , the problem remains ...[/color]

            Have you tried installing Gonnerman's "Alternativ e Readline",
            http://newcenturycomputers.net/projects/readline.html ? I have
            found it extremely useful to gain the gist of readline's
            functionality on Windows installatons of Python.


            Alex

            Comment

            • sean@hugin.valhalla.net

              #7
              Re: command -- It works , on linux


              Readline for Python on Windows, get it here....



              You will need the mingw compiler to build it I seem to remember. It
              works like a charm.

              Sean
              --
              +---------------------------------------------------------------+
              | All spelling errors are intentional and are there to show new |
              | and improved ways of spelling old words. |
              +---------------------------------------------------------------+

              Comment

              • Nicola Mingotti

                #8
                Re: command -- It works , on linux

                On Mon, 04 Aug 2003 09:54:28 +0200, Alex Martelli wrote:
                [color=blue]
                > Have you tried installing Gonnerman's "Alternativ e Readline",
                > http://newcenturycomputers.net/projects/readline.html ? I have found it
                > extremely useful to gain the gist of readline's functionality on Windows
                > installatons of Python.
                > -- Alex[/color]

                yes , only now , and it works .

                thank you .
                bye.

                Comment

                • Syver Enstad

                  #9
                  Re: command -- It works , on linux

                  Alex Martelli <aleax@aleax.it > writes:
                  [color=blue]
                  > Have you tried installing Gonnerman's "Alternativ e Readline",
                  > http://newcenturycomputers.net/projects/readline.html ? I have
                  > found it extremely useful to gain the gist of readline's
                  > functionality on Windows installatons of Python.[/color]

                  Ehemm... How do you use readline? What should it do?

                  Does it work on 2.3? I tried installing but the readline function had
                  a different function prototype so I guess it doesn't work.


                  --

                  Vennlig hilsen

                  Syver Enstad

                  Comment

                  • Chris Gonnerman

                    #10
                    Re: [Python] Re: command -- It works , on linux

                    ----- Original Message -----
                    From: "Syver Enstad" <syver-en+usenet@onlin e.no>

                    [color=blue]
                    > Alex Martelli <aleax@aleax.it > writes:
                    >[color=green]
                    > > Have you tried installing Gonnerman's "Alternativ e Readline",
                    > > http://newcenturycomputers.net/projects/readline.html ? I have
                    > > found it extremely useful to gain the gist of readline's
                    > > functionality on Windows installatons of Python.[/color]
                    >
                    > Ehemm... How do you use readline? What should it do?
                    >
                    > Does it work on 2.3? I tried installing but the readline function had
                    > a different function prototype so I guess it doesn't work.[/color]

                    I don't have a version for 2.3 yet. Give me time, and
                    I'll get it built (after I download the 2.3 installer and
                    build a MinGW32 import library for it).

                    Chris Gonnerman -- chris.gonnerman @newcenturycomp uters.net




                    Comment

                    Working...