Lorenz Quack <[EMAIL PROTECTED]> added the comment: 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.") __________________________________ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue2250> __________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com