[Tutor] Why is there no uninstall option for setup.py?

2009-07-11 Thread wcyee
Hi, When I am able to find and install a windows package distributed as an exe file, I can just go to "Add & Remove Programs" in the "Control Panel" and uninstall it. But if I have to run "python setup.py install", this is not possible. I'm trying to understand why uninstall has not been provided

Re: [Tutor] Calling super in __init__

2008-05-19 Thread wcyee
Kent and Paul, Thanks very much for your help! On Mon, May 19, 2008 at 8:43 AM, Paul McGuire <[EMAIL PROTECTED]> wrote: > >> > Hi - I wrote a custom exception class as follows: > > class CustomError(Exception): >def __init__(self, msg): >super(CustomError

[Tutor] Calling super in __init__

2008-05-19 Thread wcyee
Hi - I wrote a custom exception class as follows: class CustomError(Exception): def __init__(self, msg): super(CustomError, self).__init__(self, msg) But this doesn't work as expected: try: raise CustomError('something bad') except CustomError, err: print err.message err.mes

Re: [Tutor] lambda: print('x') raises SyntaxError?

2007-07-06 Thread wcyee
Ahh. It seems so obvious now. :) Thanks, Wesley & Kent! On 7/5/07, wesley chun <[EMAIL PROTECTED]> wrote: On 7/5/07, Kent Johnson <[EMAIL PROTECTED]> wrote: > wc yeee wrote: > > Hi. Is there a reason the code below raises a syntax error? It's > > probably something silly on my part, but I can