Author Topic: Python Questions  (Read 3160 times)

Armagon

  • Full Member
  • ***
  • Posts: 106
    • View Profile
    • http://
Python Questions
« on: April 10, 2006, 11:15:06 am »
Greetings.  I'm running 1.1.0beta1 on my C1000, and I've got a couple of python questions:

1. Does python_2.4.1_arm5tel.ipk contain all of the python stuff?  Which is to say, if I install it, can I uninstall all the other python*.ipk files?

2. Is there any way to use the arrow keys to edit lines when using the python interactive interpreter?  When I try, I get things symbols like ^[[A.

3.  How do I run IDLE?  I installed the python and tk packages, but when I try to run "python idle.pyc" in the /usr/python2.4/idlelib directory, I get
Quote
** IDLE can't import Tkinter.  Your Python may not be configured for Tk. **

4. Barring getting numbers 2 or 3 working, can anyone recommend an IDE that lets me get at python's help facilities?

Thanks,
Armagon
Sharp Zaurus SL-C1000 -- 2 GB SD Card -- Zippy Slim Mini Keyboard -- Loving pdaXii13!

mike_r

  • Newbie
  • *
  • Posts: 29
    • View Profile
    • http://
Python Questions
« Reply #1 on: April 10, 2006, 11:57:40 am »
1) The other ipks contain various modules that you may or may not use, depending on your needs. A full blown python installation is something like 40 MB, so I think the python_2.4.1 ipk is only the core.

2) Make sure the readline ipks are installed. This means both the regular readline ipk and something like python-readline.

3) I haven't tried idle itself, but for Tk applications, you need tcl/tk installed, in addition to python-tkinter.

4) Not sure on #4. I use books :-)

This is all from memory, so the filenames might vary a bit. All of the above work for me, so you should be able to get what you want. Good luck.

Mike
Mike R
Zaurus SL-C3100, OZ 3.5.4.1, 512 MB Lexar SD
Z+Python+numpy=Data crunching pocket workstation

Armagon

  • Full Member
  • ***
  • Posts: 106
    • View Profile
    • http://
Python Questions
« Reply #2 on: April 10, 2006, 03:59:42 pm »
Quote
2) Make sure the readline ipks are installed. This means both the regular readline ipk and something like python-readline.[div align=\"right\"][a href=\"index.php?act=findpost&pid=122519\"][{POST_SNAPBACK}][/a][/div]
That was it?  Thank you so much!  That's wonderful.

Quote
3) I haven't tried idle itself, but for Tk applications, you need tcl/tk installed, in addition to python-tkinter.
Ah.  I'd installed Tk but not tcl.  Works like a charm.

Quote
4) Not sure on #4. I use books :-)
Yeah; it is hard to beat books.  Although, downloading the python docs and reading them on the Z is really nice, too.

Thank you so much, Mike!

If anyone knows more about question number 1 (or has any more thoughts on question 4), I'd love to know.

Armagon
Sharp Zaurus SL-C1000 -- 2 GB SD Card -- Zippy Slim Mini Keyboard -- Loving pdaXii13!