mod_speling for python
Josiah Carlson
jcarlson at nospam.uci.edu
Fri Jan 30 15:40:05 EST 2004
Skip Montanaro wrote:
> >> I know there are drawbacks, disadvantages, this is "evil", etc. I
> >> only wanted to know what ways there are to add such a hook if it is
> >> possible without altering the C source for python itself.
>
> Josiah> Ambiguities during execution are bad. I've got two functions
> Josiah> Foo and foO, if I type in foo, what did I mean?
>
> I didn't interpret the OP's question as wanting to automatically map Foo to
> foO, but to give the user a more helpful error message, suggesting other
> candidate names which he might have mistyped.
That could be useful, if what you say is actually what he meant.
- Josiah
More information about the Python-list
mailing list