6 ms·
This is an INCREDIBLE improvement. I'm so excited for it for myself, and I think it will also do wonders for getting new programmers comfortable with the langua
by RheingoldRiver 5y ago
This is an INCREDIBLE improvement. I'm so excited for it for myself, and I think it will also do wonders for getting new programmers comfortable with the language. Seeing exactly where in the line your error is, is amazing! IMO this 100% cements Python as the single most newbie-friendly language, if there was any question before now (or at least, before the release of 3.11).
- pletnes 5y agoI already move code into separate lines since this is currently missing. This is great indeed. (Although that might still make sense for debugging)
- throwaway81523 5y agoIt would sure be great if they made it easier to break to the debugger in case of an unhandled exception, like (setq debug-on-error t) in Emacs Lisp.
- pletnes 5y agoThis can be done in some IDEs. Although it can get confusimg if you’re working in an app framework that does some sort of catch-all exception handling.
- throwaway81523 5y agoYeah it seems to me that regular Python should be able to do it though.
- aroberge 5y agoYou can already get this information for Python 3.6+ with https://friendly-traceback.github.io/docs/index.html https://friendly-traceback.github.io/docs/index.html