- File test_py.pyfr. The pyfr extension indicates that this is written in the "French Python" dialect. Since this is the main file we'll run, it will also automatically set the language to French. This is all done by AvantPy.
- "afficher" is the French version of "print"
- "import" is the normal Python keyword; we can mix and match keywords from a given dialect with the normal Python ones. Here, we are importing a module whose base name is "upper".
- The constant "a" is defined.
- File "upper.pyupper"; the only file whose base name is "upper" - thus, the one that will be imported. The "pyupper" extension indicates that the dialect is an "upper case" version of Python - designed for testing.
- The code that will be run when the file is imported.
- Output from both files.
- "a" is defined.
- We made a syntax mistake. However, Friendly-traceback is there to help us understand what went wrong ... picking up the default language to use (French) from that first file that was run.
All this was run with a crudely hacked version of Idle. I'm still confused with the communications done with the RPCServer and the TPCServer, having never looked at similar code before. So, I haven't been able to make it do all that I wanted in this first hacking session. Hopefully, there will be more to come ...