Re: a little help

2012-01-05 Thread Lie Ryan
On 01/06/2012 03:04 AM, Andres Soto wrote: Please, see my comments between your lines. Thank you very much for your explanation! * * *From:* Lie Ryan *To:* python-list@python.org *Sent:* Thursday, January 5, 2012 2:30 AM *Subject:* Re: a little help On 01/05

Re: a little help

2012-01-05 Thread Andres Soto
Please, see my comments between your lines. Thank you very much for your explanation! > > >From: Lie Ryan >To: python-list@python.org >Sent: Thursday, January 5, 2012 2:30 AM >Subject: Re: a little help > >On 01/05/2012 11:29 AM, Andres Soto wrote: >> my mistake i

Re: a little help

2012-01-05 Thread Andres Soto
could you be a little bit more explicit. I am a begginer and I don't understand you quite well Thanks Andres Soto > > From: 8 Dihedral >To: python-list@python.org >Cc: python-list@python.org >Sent: Thursday, January 5, 2012 2:48 AM &g

Re: a little help

2012-01-05 Thread 88888 Dihedral
Chris Angelico於 2012年1月5日星期四UTC+8上午7時29分21秒寫道: > On Thu, Jan 5, 2012 at 10:25 AM, Andres Soto wrote: > > My situation is the following: I am developing some code. I use the IDLE > > Editor to write it down. Then, I save it and import it from the command line > > interface, so it is already availab

Re: a little help

2012-01-05 Thread Lie Ryan
On 01/05/2012 11:29 AM, Andres Soto wrote: my mistake is because I have no problem to do that using Prolog which use an interpreter as Python. I thought that the variables in the main global memory space (associated with the command line environment) were kept, although the code that use it could

Re: a little help

2012-01-04 Thread Terry Reedy
On 1/4/2012 7:29 PM, Andres Soto wrote: As you explain me, Python behave like a compiled language: any time I make a change in the code, I have to "compile" it again, and re-run (and re-load the data). While you are developing a program and expect to make changes, you can try working with a s

Re: a little help

2012-01-04 Thread Andres Soto
>To: python-list@python.org >Sent: Wednesday, January 4, 2012 6:02 PM >Subject: Re: a little help > >I think you meant to send that to the list; hope you don't mind my >replying on-list. > >On Thu, Jan 5, 2012 at 10:56 AM, Andres Soto wrote: >> the problem is tha

Re: a little help

2012-01-04 Thread Chris Angelico
On Thu, Jan 5, 2012 at 11:29 AM, Andres Soto wrote: > my mistake is because I have no problem to do that using Prolog which use an > interpreter as Python. I thought that the variables in the main global > memory space (associated with the command line environment) were kept, > although the code t

Re: a little help

2012-01-04 Thread Chris Angelico
I think you meant to send that to the list; hope you don't mind my replying on-list. On Thu, Jan 5, 2012 at 10:56 AM, Andres Soto wrote: > the problem is that if I re-run the program, every time I change some > instructions, I have to read (load) again the data and that is what I want > to avoid.

Re: a little help

2012-01-04 Thread Chris Angelico
On Thu, Jan 5, 2012 at 10:25 AM, Andres Soto wrote: > My situation is the following: I am developing some code. I use the IDLE > Editor to write it down. Then, I save it and import it from the command line > interface, so it is already available from the prompt. > Then I load (read) some data from

Re: A little help with pexpect

2009-07-19 Thread Piet van Oostrum
> Piet van Oostrum (PvO) wrote: [snip] >PvO> You can also consider using paramiko instead of pexpect. [snip] > chan = t.open_session() > chan.exec_command('cat') > chan.send('abcdefghijklmn\n') In a real program it is better to use sendall here, as send may decide to send only pa

Re: A little help with pexpect

2009-07-19 Thread Piet van Oostrum
> Hussein B (HB) wrote: >HB> Hey, >HB> I'm trying to execute a command over a remore server using pexpect >HB> + >HB> url = 'ssh internalserver' >HB> res = pexpect.spawn(url) >HB> print '1' >HB> res.expect('.*ssword:') >HB> print '2' >HB> res.sendline('mypasswd') >HB> print '3

Re: A little help with time calculations

2005-10-19 Thread iminal
thanks -- http://mail.python.org/mailman/listinfo/python-list

Re: A little help with time calculations

2005-10-19 Thread Steve Holden
iminal wrote: > what i have so far is : > > # Get values needed to make time calculations > CT = input("input your chronometer time (ex. 07:21:46): ") > CE = input("input your chronometer correction (ex. 00:01:32): ") > CEfastslow = raw_input("is your chronometer correction fast or

Re: A little help with time calculations

2005-10-18 Thread iminal
what i have so far is : # Get values needed to make time calculations CT = input("input your chronometer time (ex. 07:21:46): ") CE = input("input your chronometer correction (ex. 00:01:32): ") CEfastslow = raw_input("is your chronometer correction fast or slow: ") #decide eit

Re: A little help with time calculations

2005-10-18 Thread Steve Holden
iminal wrote: > I am trying to make a very simple program and am very new to the whole > programming thing. my program is supposed to ask a user for any time in > the for format XX:XX:XX and then ask for a time corrrection to add or > subtract to this. my only problem is that once the user inputs t

Re: A little help with time calculations

2005-10-18 Thread Diez B. Roggisch
iminal wrote: > I am trying to make a very simple program and am very new to the whole > programming thing. my program is supposed to ask a user for any time in > the for format XX:XX:XX and then ask for a time corrrection to add or > subtract to this. my only problem is that once the user inputs t