Page 1 of 1

[Resolved] Not available sys.implementation.mpy on v1.19.1 (2022-06-18)

Posted: Tue Aug 09, 2022 1:14 pm
by Akrobate
Hello,

I would like to know why on the last release there is no more

sys.implementation.mpy available?

On 1.18 I was able to import the sys and then just print:

sys.implementation.mpy & 0xff

What has changed on 1.19.1 and how can I fix this problem?

Thank you

Re: Not available sys.implementation.mpy on v1.19.1 (2022-06-18)

Posted: Tue Aug 09, 2022 10:20 pm
by Akrobate
Ok I have found the answer.

Maybe it could be usefull for some one, so the sollution is really simple:

the .mpy attribute has changed in 1.19 so now it is _mpy

this works:

sys.implementation._mpy & 0xff
6

Re: [Resolved] Not available sys.implementation.mpy on v1.19.1 (2022-06-18)

Posted: Thu Aug 11, 2022 1:18 am
by jimmo
Yes, we realised that to be compatible with CPython, our "extended" attributes needed to have a leading underscore.