Sylvain
Sylvain
``` $ python setup.py register -r pypitest Registering BetterErrorMessages to https://upload.pypi.org/legacy/ Server response (410): This API is no longer supported, instead simply upload the file. ``` :(
I'm getting punished for procrastinating on this issue :-)
It works!!!!! ``` $ virtualenv toto_env $ source toto_env/bin/activate $ pip install BetterErrorMessages $ python >>> import didyoumean >>> didyoumean.didyoumean_api.didyoumean_enablehook() >>> abcdef = 'toto' >>> abcdf Traceback (most recent call...
@sametmax Now it is pretty obvious (from the example above) that the API is terrible. I reckon being able to do `import didyoumean` and `didyoumean.enablehook` would probably be MUCH better....
- [ ] Make the API easier to use - [x] Update the readme
@sametmax Any idea regarding the question above ?
Suggestion: ``` @register_suggestion_for(NameError, re.VARREFBEFOREASSIGN_RE) def suggest_local_var_ref_before_assign(value, frame, groups): """Get the suggestions for local var reference before assign.""" del value # unused param name, = groups objs = get_objects_in_frame(frame).get(name, []) for...
Also, many great ideas here : - http://python3porting.com/differences.html - https://docs.python.org/3.0/whatsnew/3.0.html - http://www.diveintopython3.net/porting-code-to-python-3-with-2to3.html
Added tests for some examples. On going issue. Closing it because I'd never close it otherwise.
https://github.com/PythonCharmers/python-future