Author donlorenzo
Recipients donlorenzo, jafo, nascheme
Date 2008-03-26.13:35:04
SpamBayes Score 0.211761
Marked as misclassified No
Message-id <1206538507.14.0.319305147329.issue2250@psf.upfronthosting.co.za>
In-reply-to
Content
I was thinking that the code in question could maybe also raise other
exceptions. too bad I´m on vacation and can´t try this out myself.
I believe the regular expression also matches something like 

import rlcompleter
rlcompleter.Completer().complete("1foo.2bar3.smth", 0)

which I guess would result in a SyntaxError. 
would be nice if someone could verify that.

If I´m right I see two possibilities. either change the regular
expression to match only valid python identifieres or also catch
SyntaxErrors.

could there be any other exception? ("In the face of ambiguity, refuse
the temptation to guess.")
History
Date User Action Args
2008-03-26 13:35:07donlorenzosetspambayes_score: 0.211761 -> 0.211761
recipients: + donlorenzo, nascheme, jafo
2008-03-26 13:35:07donlorenzosetspambayes_score: 0.211761 -> 0.211761
messageid: <1206538507.14.0.319305147329.issue2250@psf.upfronthosting.co.za>
2008-03-26 13:35:05donlorenzolinkissue2250 messages
2008-03-26 13:35:05donlorenzocreate