-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
More suggestions #18
Comments
A few ideas from http://migrateup.com/main-difference-python-3/ are interesting too. |
Probably worth re-reading http://stupidpythonideas.blogspot.fr/2015/05/if-you-dont-like-exceptions-you-dont.html ( and http://stupidpythonideas.blogspot.fr/2015/12/how-lookup-works.html ) when I have more time. |
https://github.com/mdipierro/autoinstaller : interesting idea. I'll try to understand the code and see if I can reuse ideas out of it. Also, it could be nice to make things usable with the -m option ( http://python-packaging.readthedocs.org/en/latest/command-line-scripts.html / https://www.reddit.com/r/Python/comments/42u5dm/how_to_structure_a_module_that_is_intended_to_be/ ). |
Principle of Least Astonishment and Python : http://lucumr.pocoo.org/2011/7/9/python-and-pola/ . A few suggestions might make sense. |
Confusing/interesting error messages here : https://www.reddit.com/r/Python/comments/4ivd2k/what_is_your_favorite_python_error_message/ |
I've just discovered the change about literal octals in Python 3. Might be interesting to have a suggestion. |
https://twitter.com/raymondh/status/772957699478663169 https://twitter.com/raymondh/status/773224135409360896 |
http://stackoverflow.com/questions/38147923/mixing-datetime-strptime-arguments/38215307 pretty common error: mixing argument of https://twitter.com/brandon_rhodes/status/781234730091941888 |
SyntaxError: |
Based on https://twitter.com/brandon_rhodes/status/781234730091941888 . This will probably break based on the Python version and/or the interpreter...
https://twitter.com/cfbolz/status/783313503230844929 . The whole twitter thread is interesting with links such as: https://mail.python.org/pipermail/python-ideas/2016-October/042672.html https://github.com/ipython/ipython/pull/9073/files Also, the corresponding commit is: https://bitbucket.org/pypy/pypy/commits/e664458f25d07bbc8378161dcd8973df6a701b96 (includes nice tests) |
|
A fuzzy match on the actual subclasses of BaseException could be nice :) |
Maybe suggest how to make the instance hashable (on custom classes), maybe suggest hashable types ( |
Maybe suggest ideas from : |
This is an interesting issue and might deserve some suggestion : |
|
|
I got this issue : http://stackoverflow.com/questions/24463202/typeerror-get-takes-no-keyword-arguments . Maybe suggesting position arguments and explaining that C-level API is exception to the usual rule is a good idea. |
Idea: detection (?) and suggestion for circular import. |
Idea: reuse |
Idea: use |
"TypeError: 'generator' object is not subscriptable" -> itertools.islice(my_generator, 5) |
Set.remove keyerror set.discard |
Suggest using PYTHONIOENCODING n case of Encode/Decode error (when relevant - whatever it means, not always) |
TypeError: Cannot create a consistent method resolution... http://stackoverflow.com/questions/29214888/typeerror-cannot-create-a-consistent-method-resolution-order-mro |
Interesting thing already done : https://twitter.com/DRMacIver/status/912812300125577216?s=03 .
|
Maybe suggest |
(Also |
Add tests for walrus operator |
Add suggestion for keyerror. I thought this was tackled already but apparently no |
Positional only arguments |
KeyError on del on a dict. Should call pop ? |
It looks like cfbolz really like to improve error messages: https://github.com/cfbolz/syntaxerrors . To be added to README eventually. |
https://twitter.com/AlSweigart/status/1186397310374203392?s=19 I can't remember if this would be handled properly |
Maybe things from https://twitter.com/DrapsTV/status/660657599210266624 can be reused (maybe not).
The text was updated successfully, but these errors were encountered: