[Tutor] New to Python

2009-10-20 Thread lfseeney
Hello all, Just started looking at Python, I have not programmed in a good 8-10 years now, and find myself woefully behind. I was wondering if there was a Preset Menu and file system module for Python so I would not have to look at setting it all up? Trying to start again, Car wreck took

Re: [Tutor] cross platform authenticating

2009-10-20 Thread John
On Tuesday 20 October 2009 12:41:28 pm Alan Gauld wrote: > "John" wrote > > > As you guys can see I'm just starting out in the authentication world. > > This is a list for beginners in Python not authentication. > You would probably be better off posting on a security > or authentication forum/lis

Re: [Tutor] updating Unix config file

2009-10-20 Thread Dave Angel
Matt Herzog wrote: On Tue, Oct 20, 2009 at 02:49:53PM +, Tiago Saboga wrote: On Tue, Oct 20, 2009 at 2:44 PM, Matt Herzog wrote: Yes, thanks. What failed was the invocation of PIPE. Apparently I had to explicitly import PIPE from subprocess or python had no clue as to what PIPE

Re: [Tutor] cross platform authenticating

2009-10-20 Thread Alan Gauld
"John" wrote As you guys can see I'm just starting out in the authentication world. This is a list for beginners in Python not authentication. You would probably be better off posting on a security or authentication forum/list But you never know, lots of clever people here so you may ge

Re: [Tutor] Pexpect maxread & searchwindowsize, timeout

2009-10-20 Thread Nathan Farrar
Thanks! That solves my question about configuring the timeout value. However - I still have the problem (I believe) that by default, I can handle all the output. When I issue the "show version" it fails, but if I issue a command with less data returned it succeeds. In the documentation I can see

Re: [Tutor] Pexpect maxread & searchwindowsize, timeout

2009-10-20 Thread vince spicer
On Tue, Oct 20, 2009 at 11:11 AM, Nathan Farrar wrote: > I haven't been able to find any real examples of pexpect usage, nor > documentation. Just little bits here and there, so I'm kind of > struggling through. > > I've got the follow bit of code I'm working with: > > def main(): >try: >

[Tutor] Pexpect maxread & searchwindowsize, timeout

2009-10-20 Thread Nathan Farrar
I haven't been able to find any real examples of pexpect usage, nor documentation. Just little bits here and there, so I'm kind of struggling through. I've got the follow bit of code I'm working with: def main(): try: print 'attempting to spawn connection ... ' session = pexp

Re: [Tutor] updating Unix config file

2009-10-20 Thread Matt Herzog
On Tue, Oct 20, 2009 at 07:53:17AM -0700, Steve Willoughby wrote: > On Tue, Oct 20, 2009 at 10:44:16AM -0400, Matt Herzog wrote: > > Yes, thanks. What failed was the invocation of PIPE. Apparently I had to > > explicitly import PIPE from subprocess or python had no clue as to what > > PIPE was!

Re: [Tutor] updating Unix config file

2009-10-20 Thread Matt Herzog
On Tue, Oct 20, 2009 at 02:49:53PM +, Tiago Saboga wrote: > On Tue, Oct 20, 2009 at 2:44 PM, Matt Herzog wrote: > > Yes, thanks. What failed was the invocation of PIPE. Apparently I had to > > explicitly import PIPE from subprocess or python had no clue as to what > > PIPE was! > > > > Dare

Re: [Tutor] updating Unix config file

2009-10-20 Thread Kent Johnson
On Tue, Oct 20, 2009 at 10:44 AM, Matt Herzog wrote: > Yes, thanks. What failed was the invocation of PIPE. Apparently I had to > explicitly import PIPE from subprocess or python had no clue as to what PIPE > was! > > Dare I say, "wtf?" since when fo I have to specify such? Shouldn't importing

Re: [Tutor] updating Unix config file

2009-10-20 Thread Steve Willoughby
On Tue, Oct 20, 2009 at 10:44:16AM -0400, Matt Herzog wrote: > Yes, thanks. What failed was the invocation of PIPE. Apparently I had to > explicitly import PIPE from subprocess or python had no clue as to what PIPE > was! > > Dare I say, "wtf?" since when fo I have to specify such? Shouldn't im

Re: [Tutor] updating Unix config file

2009-10-20 Thread Tiago Saboga
On Tue, Oct 20, 2009 at 2:44 PM, Matt Herzog wrote: > Yes, thanks. What failed was the invocation of PIPE. Apparently I had to > explicitly import PIPE from subprocess or python had no clue as to what PIPE > was! > > Dare I say, "wtf?" since when fo I have to specify such? Shouldn't importing >

Re: [Tutor] updating Unix config file

2009-10-20 Thread Matt Herzog
On Tue, Oct 20, 2009 at 08:29:59AM +0100, Alan Gauld wrote: > "Matt Herzog" wrote > > >Anyway, I'd like a hint as to how I could convert this: > > > >ifcfg_lines = os.popen("/sbin/ifconfig fxp0").readlines() > >x = string.split(ifcfg_lines[3])[1] > > > >to the subprocess module. The os module is

[Tutor] cross platform authenticating

2009-10-20 Thread John
Hi, Is there a general discussion (somewhere on the web) on how to 1. determine what authentication the platform requires 2. can #1 be determine dynamically 3. If I know #1 will it be cross platform? Googling reveals that there are many authenticating modules, LDAP, PAS, RADIUS, Active Directo

[Tutor] Python and Abaqus

2009-10-20 Thread Paul Roger Leinan
Hi! Referring to http://mail.python.org/pipermail/tutor/2008-November/065270.html Would you be able to send me these python examples to? Regards Paul Leinan -- Paul Roger Leinan PhD Student Department of Structural Engineering - Biomechanics - Norwegian University of Science and Technology (

Re: [Tutor] Running Python on a Calculator

2009-10-20 Thread Lie Ryan
Corey Richardson wrote: Hey tutors. I have a TI-84 plus, and I am making some math tools, and I don't know the native language of the Ti-84, and was wondering, has anyone worked with a version of Python that can run on that small of a processor? Thanks in advance, A quote from Wikipedia says:

Re: [Tutor] Running Python on a Calculator

2009-10-20 Thread Alan Gauld
"Corey Richardson" wrote Hey tutors. I have a TI-84 plus, and I am making some math tools, and I don't know the native language of the Ti-84, and was wondering, has anyone worked with a version of Python that can run on that small of a processor? Never say never but The smallest thin

Re: [Tutor] updating Unix config file

2009-10-20 Thread Alan Gauld
"Matt Herzog" wrote Anyway, I'd like a hint as to how I could convert this: ifcfg_lines = os.popen("/sbin/ifconfig fxp0").readlines() x = string.split(ifcfg_lines[3])[1] to the subprocess module. The os module is going away, right? The os module is not going away although the popen functio