Re: [Tutor] need help with conditionals

2009-09-25 Thread Lie Ryan
wrobl...@cmich.edu wrote: Hello all, I am still very new to Python and am working on conditionals. Im stuck on this problem and I'm sorry if this is something really simple that I'm missing but its been really frustrating me. Here's a copy of the problem, and sorry if its really long but its t

Re: [Tutor] python win32 drive mapping help

2009-09-25 Thread wesley chun
>> I tried this: >> win32net.NetUseDel(None, 1,{'local':'k:'}) >> >>  but I got this error: >> Traceback (most recent call last): >>  File "test.py", line 33, in >>    win32net.NetUseDel(None, 1,{'local':'k:'}) >> TypeError: an integer is required > > You have the wrong sequence for NetUseDel().  

Re: [Tutor] python win32 drive mapping help

2009-09-25 Thread Dave Angel
Vineet Kothari wrote: So What should be the attributes for the command? I tried this: win32net.NetUseDel(None, 1,{'local':'k:'}) but I got this error: Traceback (most recent call last): File "test.py", line 33, in win32net.NetUseDel(None, 1,{'local':'k:'}) TypeError: an intege

[Tutor] [Reply]need help with conditionals

2009-09-25 Thread Corey Richardson
I have no clue what it is trying to acomplish. What are you doing? Here is a good Tut on conditionals. Boolean is near the top. http://www.freenetpages.co.uk/hp/alan.gauld/tutbranch.htm HTH(If I did), ~Corey <>___ Tutor maillist - Tutor@python.org To

Re: [Tutor] need help with conditionals

2009-09-25 Thread christopher . henk
> Hello all, > I am still very new to Python and am working on conditionals. Im stuck on this > problem and I'm sorry if this is something really simple that I'm missing but its > been really frustrating me. Here's a copy of the problem, and sorry if its really > long but its the end questio

Re: [Tutor] Help required

2009-09-25 Thread vince spicer
On Fri, Sep 25, 2009 at 1:56 PM, waqas ahmad wrote: > > > Hi, > > I dont know it is the right place to post this question. I need help to > change one search code line . can you help me please. > > here is my search method code: > > search=re.compile("^#acl InternationalGroup.*\n", re.M).search(

[Tutor] Help required

2009-09-25 Thread waqas ahmad
Hi, I dont know it is the right place to post this question. I need help to change one search code line . can you help me please. here is my search method code: search=re.compile("^#acl InternationalGroup.*\n", re.M).search(pagetext) if search: ret=search.group() else:

Re: [Tutor] Confusion with $PATH

2009-09-25 Thread Alan Gauld
"David Eric" wrote I installed a few versions of python and ended up with a very long PATH Leave it be. Long paths will not cause a proble,m. FWIW My Path is at least twice as long as that! :-) windowi moved it into /Library and says file not found.. any advice? Move it into a folder

[Tutor] need help with conditionals

2009-09-25 Thread wrobl1rt
Hello all, I am still very new to Python and am working on conditionals. Im stuck on this problem and I'm sorry if this is something really simple that I'm missing but its been really frustrating me. Here's a copy of the problem, and sorry if its really long but its the end question about the

Re: [Tutor] Super class

2009-09-25 Thread Alan Gauld
"Dave Angel" wrote It's an object oriented thing, and as such, "advanced programming." (IMHO) Yep, I'd agree. Although OOP is becoming more mainstream every year. In the way that using functions and proceduires used to e considered advanced concepts(compared to subroutines and GOTO) but are

Re: [Tutor] python win32 drive mapping help

2009-09-25 Thread Vineet Kothari
So What should be the attributes for the command? I tried this: win32net.NetUseDel(None, 1,{'local':'k:'}) > but I got this error: Traceback (most recent call last): > File "test.py", line 33, in > win32net.NetUseDel(None, 1,{'local':'k:'}) > TypeError: an integer is required > So what

Re: [Tutor] Confusion with $PATH

2009-09-25 Thread Kent Johnson
> On Fri, Sep 25, 2009 at 11:32 AM, David Eric wrote: >> >> ok this is really weird . . . >> i tried running the helloworld again, and it doesnt work :/ >> >> DTm:~ davidteboul$ echo $PATH >> PATH$/Library/Frameworks/ >> >> Python.framework/Versions/3.1/bin:/Library/Frameworks/Python.framework/Ver

Re: [Tutor] Confusion with $PATH

2009-09-25 Thread Martin Walsh
Wayne wrote: > On Fri, Sep 25, 2009 at 11:32 AM, David Eric > wrote: > > ok this is really weird . . . > i tried running the helloworld again, and it doesnt work :/ > > DTm:~ davidteboul$ echo $PATH > PATH$/Library/Frameworks/ > > Python.framework/V

Re: [Tutor] Confusion with $PATH

2009-09-25 Thread Wayne
On Fri, Sep 25, 2009 at 11:32 AM, David Eric wrote: > ok this is really weird . . . > i tried running the helloworld again, and it doesnt work :/ > > DTm:~ davidteboul$ echo $PATH > PATH$/Library/Frameworks/ > Python.framework/Versions/3.1/bin:/Library/Frameworks/Python.framework/Versions/3.0/bin

Re: [Tutor] Confusion with $PATH

2009-09-25 Thread Kent Johnson
On Fri, Sep 25, 2009 at 12:07 PM, David Eric wrote: > Do i need to do anything now that the issue was resolved? How did you resolve it? If you copied your program into one of the existing directories on PATH, you probably want to delete it when you are done with the exercise. If you created your

Re: [Tutor] Confusion with $PATH

2009-09-25 Thread Kent Johnson
On Fri, Sep 25, 2009 at 10:39 AM, David Eric wrote: > Very new to python..getting accustomed to files, directories etc > I installed a few versions of python and ended up with a very long PATH > variable, do i need this or can i change it to something shorter? > Doing an online tutorial one exerci

Re: [Tutor] Confusion with $PATH

2009-09-25 Thread Wayne
On Fri, Sep 25, 2009 at 9:39 AM, David Eric wrote: > Very new to python..getting accustomed to files, directories etc > I installed a few versions of python and ended up with a very long PATH > variable, do i need this or can i change it to something shorter? > Doing an online tutorial one exerci

[Tutor] Confusion with $PATH

2009-09-25 Thread David Eric
Very new to python..getting accustomed to files, directories etc I installed a few versions of python and ended up with a very long PATH variable, do i need this or can i change it to something shorter? Doing an online tutorial one exercise was to move a simple program, helloworld into the PATH so

Re: [Tutor] how to print a message backwards

2009-09-25 Thread Lie Ryan
Emile van Sebille wrote: On 9/23/2009 7:22 AM Ali Sina said... #Message backward printer message=input('Enter your message: ') for i in range(len(message),0,-1): print(message) This is the code which I have written. All it does is count the number of letters starting from backwards. The

Re: [Tutor] code improvement

2009-09-25 Thread Kent Johnson
On Fri, Sep 25, 2009 at 1:00 AM, Norman Khine wrote: >>> Is there a better method to write the last bit of the code. > Apologies for not being clear. I was thinking more  that I may have > one the too many 'for' loops at the end of the code. > > http://paste.lisp.org/display/87659#1 It's only t

Re: [Tutor] Super class

2009-09-25 Thread Dave Angel
Katt wrote: As I am a beginner I am constantly assimilating new python code and vocabulary associated with it. Could someone please explain to me what a super class is, its importance and what level of python programming it is(beginner,intermediate,advanced programming technique)? This would

Re: [Tutor] python win32 drive mapping help

2009-09-25 Thread Dave Angel
Vineet Kothari wrote: Can you also help me out with the way to delete the mapped drive I know in command line it is net use [DRIVE:] /delete but I am unable to figure out how I can do it from python Since I am trying to make sure that the drive name I am giving in my code: impo

[Tutor] Super class

2009-09-25 Thread Katt
As I am a beginner I am constantly assimilating new python code and vocabulary associated with it. Could someone please explain to me what a super class is, its importance and what level of python programming it is(beginner,intermediate,advanced programming technique)? This would greatly help