Re: [Tutor] Trying Ruby...

2005-06-06 Thread Premshree Pillai
I have Python and Ruby -- not ActiveState -- installed on an XP box. No issues. On 6/7/05, Terry Carroll <[EMAIL PROTECTED]> wrote: > This message is not as off-topic as it at first appears. > > I'm a user of Activestate's ActivePython under Windows/XP. I want to give > Ruby a spin, just for the

Re: [Tutor] CPAN for python

2005-06-06 Thread Premshree Pillai
On 6/7/05, Bill Campbell <[EMAIL PROTECTED]> wrote: > There's also the vaults of parnassus > > http://www.vex.net/parnassus/ That's pretty much dead, isn't it? -- Premshree Pillai http://www.livejournal.com/users/premshree/ ___ Tutor maillist

[Tutor] Trying Ruby...

2005-06-06 Thread Terry Carroll
This message is not as off-topic as it at first appears. I'm a user of Activestate's ActivePython under Windows/XP. I want to give Ruby a spin, just for the heck of it. I vaguely recall a post a few months ago, I don't know if it was in this forum, where someone had a problem in Python, and it t

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

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 co

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

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 mai

[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] 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'], >

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 coa

Re: [Tutor] resizing an array of strings?

2005-06-06 Thread Pujo Aji
Try this code: def myfuncSplit(row,col,myList): RBig = [] cou=-1 for i in range(row): RSmall= [] for j in range(col): cou+=1 RSmall.append(myList[cou]) RBig.append(RSmall[:]) return RBig if __name__== '__main__': myString = ['hi','my','name','is','Jeff']

[Tutor] resizing an array of strings?

2005-06-06 Thread Jeff Peery
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'], ['m','y']]   What I want is: [['hi','my'], ['name','is']]   How might

Re: [Tutor] Detecting my own IP address?

2005-06-06 Thread Max Noel
On Jun 6, 2005, at 05:27, Bill Campbell wrote: > I don't do Windows so can't say what it does (knowing Microsoft, it > may > vary between Windows versions, patch levels, and the phase of the > moon :-). > > Bill Well, Windows doesn't even do ifconfig. The (more-or-less) equivalent com

[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 b