Message6102

Author alex001
Recipients alex001, fwierzbicki, mboersma, pjenvey, russell, vanvorst, walton, zyasoft
Date 2010-09-28.03:44:48
SpamBayes Score 8.3805984e-10
Marked as misclassified No
Message-id <1285645491.26.0.283392090069.issue1133@psf.upfronthosting.co.za>
In-reply-to
Content
tab completion on an invalid object crashes jython console:

Steps to reproduce:  (linux 32 bit)

alex@meow ~ $ ./jython/bin/jython 
Jython 2.5.2b2 (Release_2_5_2beta2:7124, Sep 14 2010, 00:11:45) 
[Java HotSpot(TM) Client VM (Sun Microsystems Inc.)] on java1.6.0_21
Type "help", "copyright", "credits" or "license" for more information.
>>> a.
  File "<stdin>", line 1
    a.
     ^
SyntaxError: mismatched input '\n' expecting set null
>>> import readline                        
>>> import rlcompleter                     
>>> readline.parse_and_bind("tab:complete")
>>> a.<tab pressed>Traceback (most recent call last):
  File "/home/alex/jython/Lib/readline.py", line 97, in complete_handler
    completion = function(buffer[:cursor], state)
  File "/home/alex/jython/Lib/rlcompleter.py", line 87, in complete
    self.matches = self.attr_matches(text)
  File "/home/alex/jython/Lib/rlcompleter.py", line 130, in attr_matches
    object = eval(expr, self.namespace)
  File "<string>", line 1, in <module>
NameError: name 'a' is not defined
alex@meow ~ $
History
Date User Action Args
2010-09-28 03:44:51alex001setmessageid: <1285645491.26.0.283392090069.issue1133@psf.upfronthosting.co.za>
2010-09-28 03:44:51alex001setrecipients: + alex001, fwierzbicki, pjenvey, mboersma, zyasoft, walton, vanvorst, russell
2010-09-28 03:44:51alex001linkissue1133 messages
2010-09-28 03:44:48alex001create