Warning

This project is being split into 3 separate projects:

  • friendly_traceback,

  • friendly, and

  • friendly_idle.

The documentation does not reflect this change.

If you are a end-user, just install friendly until further notice.

Mu: executing a program

For this example, I modified my previous program named test.py so that it raises a different exception. First, I show what happens when I run test.py with Mu, without friendly’s help

Mu running test_problem

Using friendly with Mu

To use friendly with Mu when running a program in this way, I need to use a second, very short program, and run that program instead:

from friendly.mu import run
run("test.py")
Mu with friendly running test_problem

As should be expected, a traceback is shown, with a hint added. By typing why() at the prompt, friendly gives me more information.

You likely will not be surprised to know that I can ask friendly to provide explanations in French instead:

Mu with friendly running test_problem

Danger

Do not name your own program friendly.py.