Re: [Zope3-dev] Re: TALES PathExpr doesn't call old style classes

2006-05-25 Thread Philipp von Weitershausen
Dieter Maurer wrote: > Philipp von Weitershausen wrote at 2006-5-24 18:16 +0200: >> ... >> Yup. We could think about this for some future release cycle, though. >> I'd very much be in favour of making nocall: the default and introduce >> something like call:. Then sniffing for callableness wouldn't

Re: [Zope3-dev] Re: TALES PathExpr doesn't call old style classes

2006-05-25 Thread Dieter Maurer
Philipp von Weitershausen wrote at 2006-5-24 18:16 +0200: > ... >Yup. We could think about this for some future release cycle, though. >I'd very much be in favour of making nocall: the default and introduce >something like call:. Then sniffing for callableness wouldn't be necessary. You are aware

RE: [Zope3-dev] Re: TALES PathExpr doesn't call old style classes

2006-05-24 Thread dev
Hi Philipp, Florent [...] > > There *is* a way to check whether the error resulted from > the current > > frame or a lower frame. Introspections like these have the > tendency to > > be or become hacks, but then again, we use frame > inspections in other > > places, too. > > Yes, I was abou

RE: [Zope3-dev] Re: TALES PathExpr doesn't call old style classes

2006-05-24 Thread dev
Hi Philipp [...] > > Are there really usecases where something can go wrong if > we use the > > proposed PEP? > > Calling something that may or may not be callable can yield > at least two different exceptions: TypeError or > AttributeError (on __call__). That means we'd already have to > c

Re: [Zope3-dev] Re: TALES PathExpr doesn't call old style classes

2006-05-24 Thread Florent Guillaume
On 25 May 2006, at 00:38, Philipp von Weitershausen wrote: just to get this straight: I'm not going to discuss in this thread what changes we might do to TALES in the future. I'm strictly concerned about this release cycle, not a future one. That doesn't I won't be interested in discussing

Re: [Zope3-dev] Re: TALES PathExpr doesn't call old style classes

2006-05-24 Thread Philipp von Weitershausen
Hi, just to get this straight: I'm not going to discuss in this thread what changes we might do to TALES in the future. I'm strictly concerned about this release cycle, not a future one. That doesn't I won't be interested in discussing these matters in the future... > Are there really usecases wh

RE: [Zope3-dev] Re: TALES PathExpr doesn't call old style classes

2006-05-24 Thread dev
Hi Philipp, Florent [...] > >> In particular, I'm looking for comments on problem #2. > > > > Well, following the mantra of "explicit is better than > implicit" I'd > > rather have ZPT never call things magically, but I know > that's not the > > problem at hand and it poses backward compat p