Re: imported method from module evaluates to None in some cases

2008-11-23 Thread Peter Otten
Paul McGuire wrote: > On Nov 23, 4:21 am, Hrvoje Niksic <[EMAIL PROTECTED]> wrote: >> >> I don't know why the interpreter would shut down abruptly, but I >> suppose you could inspect the traceback to see what exactly caused the >> exception?- Hide quoted text - >> > While you puzzle out the root c

Re: imported method from module evaluates to None in some cases

2008-11-23 Thread Paul McGuire
On Nov 23, 4:21 am, Hrvoje Niksic <[EMAIL PROTECTED]> wrote: > > I don't know why the interpreter would shut down abruptly, but I > suppose you could inspect the traceback to see what exactly caused the > exception?- Hide quoted text - > While you puzzle out the root cause, could something like thi

Re: imported method from module evaluates to None in some cases

2008-11-23 Thread Hrvoje Niksic
Andrew <[EMAIL PROTECTED]> writes: > On Nov 20, 6:53 am, Hrvoje Niksic <[EMAIL PROTECTED]> wrote: >> Andrew <[EMAIL PROTECTED]> writes: >> > I'm having a problem in some zope (2.10) code (HTTPResponse.py) where >> > a method that gets imported somehow evaluates to None in certain cases >> > which

Re: imported method from module evaluates to None in some cases

2008-11-20 Thread Andrew
On Nov 20, 6:53 am, Hrvoje Niksic <[EMAIL PROTECTED]> wrote: > Andrew <[EMAIL PROTECTED]> writes: > > I'm having a problem in some zope (2.10) code (HTTPResponse.py) where > > a method that gets imported somehow evaluates to None in certain cases > > which causes a TypeError exception to be raised

Re: imported method from module evaluates to None in some cases

2008-11-20 Thread Hrvoje Niksic
Andrew <[EMAIL PROTECTED]> writes: > I'm having a problem in some zope (2.10) code (HTTPResponse.py) where > a method that gets imported somehow evaluates to None in certain cases > which causes a TypeError exception to be raised (eg: TypeError: > 'NoneType' object is not callable). The code excer

imported method from module evaluates to None in some cases

2008-11-20 Thread Andrew
Hi: I'm having a problem in some zope (2.10) code (HTTPResponse.py) where a method that gets imported somehow evaluates to None in certain cases which causes a TypeError exception to be raised (eg: TypeError: 'NoneType' object is not callable). The code excerpt is below where the exception is rai