Re: [Tutor] creating the equivalent of string.strip()

2007-09-30 Thread Bob Nienhuis
BTW, GMail brings up some interesting sponsored links when the subject line has string.strip in it ( :-0) On 9/30/07, Alan Gauld <[EMAIL PROTECTED]> wrote: > > > "wesley chun" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > >> > I'm not sure how to proceed. My biggest stumbling >

[Tutor] Calling Modules in ActiveState 2.4

2005-09-21 Thread Bob Nienhuis
Working my way through Alan Gauld's tutorial, and I am on the section on modules. When I call: import sys sys.exit() I get a traceback error saying it needs more input Same when I do: import sys print sys.path() Both of these work if I do sys.exit or print sys.path without the parentheses. Is th

Re: [Tutor] Calling Modules in ActiveState 2.4

2005-09-21 Thread Bob Nienhuis
r script (0 = okay, other = problem). sys.path is an attribute (of type list) of sys not a function. So don't put () after path. I hope it will help. Damien. Bob Nienhuis wrote: Working my way through Alan Gauld's tutorial, and I am on the section on modules. When I call: import sys sys

Re: [Tutor] Calling Modules in ActiveState 2.4

2005-09-21 Thread Bob Nienhuis
24\Lib\site-packages\pythonwin\pywin\framework\interact.py", line 257, in runcode     exec code in self.globals, self.locals   File "", line 1, in ? SystemExit sys.exit(0) >>> On 9/21/05, Bob Nienhuis <[EMAIL PROTECTED]> wrote: When I do: import sys sys.exit(0) I

[Tutor] Community documentation framework?

2006-08-06 Thread Bob Nienhuis
Have you had the experience of finding a nifty bit of code on the web, trying it out, and then discovering that technique only worked in version X.YY, or requires module Z that is no longer available? Well perhaps we can address this situation. I would like to see an online system that facilitat