This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author donlorenzo
Recipients donlorenzo
Date 2008-03-03.14:01:32
SpamBayes Score 0.10676006
Marked as misclassified No
Message-id <1204552894.08.0.276145859015.issue2220@psf.upfronthosting.co.za>
In-reply-to
Content
Some more information:
the dot in the example causes complete() to call self.attr_matches(text)
which in turn performes the following call
re.match(r"(\w+(\.\w+)*)\.(\w*)", text)
and return None if there is no match.
the complete method unconditionally accesses the return value like a
list via
matches[state]
which raises the TypeError.
The obvious solution was to return an empty list instead of None which
is also the behaviour in all other cases where no completion is found.
History
Date User Action Args
2008-03-03 14:01:34donlorenzosetspambayes_score: 0.10676 -> 0.10676006
recipients: + donlorenzo
2008-03-03 14:01:34donlorenzosetspambayes_score: 0.10676 -> 0.10676
messageid: <1204552894.08.0.276145859015.issue2220@psf.upfronthosting.co.za>
2008-03-03 14:01:33donlorenzolinkissue2220 messages
2008-03-03 14:01:32donlorenzocreate