[Python-Dev] Re: importing does not dispatch to __builtins__.__getitem__ to lookup __import__

2021-07-14 Thread Brett Cannon
On Wed, Jul 14, 2021 at 10:17 AM Patrick Reader wrote: > Hi there, > > I've noticed that, when a frame's __builtins__ is a subclass of dict with > an overridden __getitem__ method, this overriden method is not used by the > IMPORT_NAME instruction to lookup __import__ in the dictionary; it uses

[Python-Dev] Re: Python3 OSF/1 support?

2021-07-14 Thread Brett Cannon
On Wed, Jul 14, 2021 at 9:36 AM Chris Johns wrote: > As someone who has ported Python 3 to another "less commonly used" > system (RISC OS) I just do semi-regular updates rather than trying to > keep it it totally up to date with "main". > > I have some vague recollection of there being talk

[Python-Dev] importing does not dispatch to __builtins__.__getitem__ to lookup __import__

2021-07-14 Thread Patrick Reader
Hi there, I've noticed that, when a frame's __builtins__ is a subclass of dict with an overridden __getitem__ method, this overriden method is not used by the IMPORT_NAME instruction to lookup __import__ in the dictionary; it uses the lookup function of normal dictionaries (via

[Python-Dev] Re: Python3 OSF/1 support?

2021-07-14 Thread Chris Johns
As someone who has ported Python 3 to another "less commonly used" system (RISC OS) I just do semi-regular updates rather than trying to keep it it totally up to date with "main". I have some vague recollection of there being talk about a "second tier" of systems where there is at least a

[Python-Dev] Re: Python3 OSF/1 support?

2021-07-14 Thread Guido van Rossum
I'd like to add that probably the most economic solution for the OP is to just stay on a fixed version of Python and not bother trying to catch up with newer Python versions. On Wed, Jul 14, 2021 at 7:47 AM Senthil Kumaran wrote: > On Wed, Jul 14, 2021 at 04:30:33AM +, Jay K wrote: > > Hi.

[Python-Dev] Re: Python3 OSF/1 support?

2021-07-14 Thread Senthil Kumaran
On Wed, Jul 14, 2021 at 04:30:33AM +, Jay K wrote: > Hi. I have an Alpha/OSF machine up and running. > It is little slow, but it works ok. > > I would like to run Python3 on it. > > I have it "compiling and working". It was easy enough so far. > https://github.com/python/cpython/pull/27063