[Edu-sig] Re: Friendly-traceback: useful tool for those teaching Python

2021-02-08 Thread kirby urner
Me: If I ask for type(__builtins__) I get a list of all the things dicts can do, not the contents of the module. Of course I should have said dir(__builtins__) above (not type). Anyway, I was glad to clear this up. I’m guessing the use of both __builtin__ and __builtins__ is not Spyder’s

[Edu-sig] Re: Friendly-traceback: useful tool for those teaching Python

2021-02-08 Thread kirby urner
Andre: I think you mean simply __builtins__, without the dir(). I was puzzled by this remark at first but now I’m seeing why. When I boot into the Python shell directly from bash, and ask for the type of __builtins__ i.e. type(__builtins__), I get back that it’s a module. Then