[SciPy-Dev] requesting code review: added close matches to constants.codata.value()
Kevin Davies
kdavies4 at gmail.com
Sun Apr 27 03:38:56 EDT 2014
I changed scipy.constants.codata.values() to suggest alternative
spellings when an entry isn't found. Instead of a key error,
values('magnetic constant') prints what is shown in this screenshot.
Here's the code comparison:
https://github.com/kdavies4/scipy/compare/suggest-codata
This introduces a dependency on difflib, which I haven't added to the
installation.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: new.png
Type: image/png
Size: 10261 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/scipy-dev/attachments/20140426/7028e43d/attachment.png>
More information about the SciPy-Dev
mailing list