Message3143

Author pjenvey
Recipients ayeshaiqbal, jeffnorton, juneau001, leouserz, pjenvey
Date 2008-04-09.05:30:39
SpamBayes Score 0.07793354
Marked as misclassified No
Message-id <1207719042.95.0.643524331611.issue1501932@psf.upfronthosting.co.za>
In-reply-to
Content
Right, in theory the 2 don't differ in beavhior. I did find one 
difference, though:

Python 2.5.1 (r251:54863, Aug 19 2007, 21:02:30) 
[GCC 4.0.1 (Apple Computer, Inc. build 5367)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> class Foo(object):
...     def __getattr__(self, name):
...             raise TypeError()
... 
>>> hasattr(Foo(), 'bar')
False

Jython 2.3a0 on java1.5.0_13
Type "copyright", "credits" or "license" for more information.
>>> class Foo(object):
...     def __getattr__(self, name):
...             raise TypeError()
... 
>>> hasattr(Foo(), 'bar')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "<stdin>", line 3, in __getattr__
TypeError: 

I wonder if Jeff ran into something like this? Anyway, that anomaly is 
fixed in r4324, so I'm closing this out
History
Date User Action Args
2008-04-09 05:30:43pjenveysetspambayes_score: 0.0779335 -> 0.07793354
recipients: + pjenvey, leouserz, juneau001, jeffnorton, ayeshaiqbal
2008-04-09 05:30:43pjenveysetspambayes_score: 0.0779335 -> 0.0779335
messageid: <1207719042.95.0.643524331611.issue1501932@psf.upfronthosting.co.za>
2008-04-09 05:30:42pjenveylinkissue1501932 messages
2008-04-09 05:30:41pjenveycreate