Message3461

Author pjenvey
Recipients fwierzbicki, pjenvey
Date 2008-08-30.20:57:51
SpamBayes Score 1.509901e-05
Marked as misclassified No
Message-id <1220129872.51.0.987522579236.issue1116@psf.upfronthosting.co.za>
In-reply-to
Content
A decorator with 1 dot parses ok:

@test_support.run_with_locale('LC_ALL', '')
def foo():
    print 'foo'

but NPEs with 2 dots:

@test.test_support.run_with_locale('LC_ALL', '')
def bar():
    print 'bar'

Traceback (most recent call last):
  (no code object) at line 0
java.lang.NullPointerException
	at 
org.python.antlr.GrammarActions.makeDottedAttr(GrammarActions.java:217)
	at 
org.python.antlr.PythonParser.dotted_attr(PythonParser.java:931)
	at 
org.python.antlr.PythonParser.decorator(PythonParser.java:1069)
	at 
org.python.antlr.PythonParser.decorators(PythonParser.java:1245)
	at org.python.antlr.PythonParser.funcdef(PythonParser.java:1341)
	at 
org.python.antlr.PythonParser.compound_stmt(PythonParser.java:6268)
	at org.python.antlr.PythonParser.stmt(PythonParser.java:2360)
	at 
org.python.antlr.PythonParser.file_input(PythonParser.java:625)
	at 
org.python.antlr.ModuleParser.file_input(ModuleParser.java:39)
	at org.python.core.ParserFacade.parse(ParserFacade.java:114)
	at org.python.core.Py.compile_flags(Py.java:1669)
	at 
org.python.util.PythonInterpreter.execfile(PythonInterpreter.java:155)
	at org.python.util.jython.run(jython.java:224)
	at org.python.util.jython.main(jython.java:111)

NullPointerException: java.lang.NullPointerException

Example attached
History
Date User Action Args
2008-08-30 20:57:52pjenveysetrecipients: + pjenvey, fwierzbicki
2008-08-30 20:57:52pjenveysetmessageid: <1220129872.51.0.987522579236.issue1116@psf.upfronthosting.co.za>
2008-08-30 20:57:52pjenveylinkissue1116 messages
2008-08-30 20:57:51pjenveycreate