Monday, August 10, 2020

Rich + Friendly-traceback: first look

 After a couple of hours of work, I have been able to use Rich to add colour to Friendly-traceback. Rich is a fantastic project, which has already gotten a fair bit of attention and deserves even more.

The following is just a preview of things to come; it is just a quick proof of concept.


Friendly-traceback has 10 so-called verbosity settings, one of which is simply to show the normal Python traceback.

There is, of course, much, much more to come ...

Update: more work in progress





Tuesday, August 04, 2020

Identifying misleading type hints

Yesterday on Twitter:


For beginners, unintentional type hints can be really confusing.  No SyntaxError, no traceback to guide the beginners ... Still, could Friendly-traceback help?



I've already mentioned how Friendly-traceback could be used by Thonny, and how it could also be used with Mu.  What about IDLE?



Yes, it can.  And what if it is typos and not type hints that are causing problems?




Note: This is freshly written code. The documentation really needs to be updated to reflect the most recent changes.