Jython

Message3351

Author cprinos
Recipients cprinos
Date 2008年07月17日.21:05:13
SpamBayes Score 0.0038285574
Marked as misclassified No
Message-id <1216328713.91.0.613281735982.issue1080@psf.upfronthosting.co.za>
In-reply-to
Content
with decorator support in 2.5, will there also be compatibility with
java annotations? The simple case fails at runtime:
#----annot.py-----
import java.lang.Deprecated
@java.lang.Deprecated()
def foo():
 print 'foo'
 
foo()
#-------------
Traceback (most recent call last):
 File "annot.py", line 5, in <module>
 def foo():
TypeError: can't instantiate interface (java.lang.Deprecated)
History
Date User Action Args
2008年07月17日 21:05:14cprinossetspambayes_score: 0.00382856 -> 0.0038285574
recipients: + cprinos
2008年07月17日 21:05:13cprinossetspambayes_score: 0.00382856 -> 0.00382856
messageid: <1216328713.91.0.613281735982.issue1080@psf.upfronthosting.co.za>
2008年07月17日 21:05:13cprinoslinkissue1080 messages
2008年07月17日 21:05:13cprinoscreate

Supported by Python Software Foundation,
Powered by Roundup

AltStyle によって変換されたページ (->オリジナル) /