[Tutor] How to open a telnet session and have the python program write to it.

2005-06-06 Thread Suri Chitti
Hi, I am attempting a python program that will open a telnet session and input the username/password, cd to a certain directory and leave the session there. I have attempted different combinations of the os.popen etc but as soon as the telnet window is opened the program cannot be coaxed

Re: [Tutor] How to open a telnet session and have the python programwrite to it.

2005-06-06 Thread Alan G
I am attempting a python program that will open a telnet session and input the username/password, cd to a certain directory and leave the session there. I have attempted different combinations of the os.popen etc but as soon as the telnet window is opened the program cannot be coaxed

Re: [Tutor] resizing an array of strings?

2005-06-06 Thread Karl Pflästerer
On 6 Jun 2005, [EMAIL PROTECTED] wrote: Hello, I'm having a bit of trouble resizing/reshaping an array of strings. here's what I'm trying to do: myString = ['hi','my','name','is','Jeff'] reshape(myString, (2,2)) What I get from this is something like: [['h','i'],

[Tutor] CPAN for python

2005-06-06 Thread Ron Nixon
Is there a site like Perl's CPAN for Python? I've seen the stuff at ActiveState. Anything else? Ron Nixon __ Discover Yahoo! Have fun online with music videos, cool games, IM and more. Check it out! http://discover.yahoo.com/online.html

Re: [Tutor] CPAN for python

2005-06-06 Thread Danny Yoo
On Mon, 6 Jun 2005, Ron Nixon wrote: Is there a site like Perl's CPAN for Python? I've seen the stuff at ActiveState. Anything else? Hi Ron, Yes, there is a system called 'PyPI': http://www.python.org/pypi I hope this helps! ___ Tutor

Re: [Tutor] CPAN for python

2005-06-06 Thread Bill Campbell
On Mon, Jun 06, 2005, Danny Yoo wrote: On Mon, 6 Jun 2005, Ron Nixon wrote: Is there a site like Perl's CPAN for Python? I've seen the stuff at ActiveState. Anything else? Hi Ron, Yes, there is a system called 'PyPI': http://www.python.org/pypi There's also the vaults of parnassus

Re: [Tutor] CPAN for python

2005-06-06 Thread Christian Wyglendowski
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Danny Yoo Yes, there is a system called 'PyPI': http://www.python.org/pypi Also see EasyInstall (http://peak.telecommunity.com/DevCenter/EasyInstall). Installs packages from the command

Re: [Tutor] Database connections don't stay alive

2005-06-06 Thread Joe Healy
Hi there, I have mainly used the psycopg module to connect. It seems to work quite well. quick example: import psycopg conn = psycopg.connect(dbname=mydatabase password= host= user=) cur = conn.cursor() cur.execute('select * from transit;') results = cur.fetchall() Hope this