mod_speling for python
Skip Montanaro
skip at pobox.com
Fri Jan 30 07:38:40 EST 2004
>> 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.
Skip
More information about the Python-list
mailing list