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
[Resolved] Not available sys.implementation.mpy on v1.19.1 (2022-06-18)
[Resolved] Not available sys.implementation.mpy on v1.19.1 (2022-06-18)
Last edited by Akrobate on Tue Aug 09, 2022 10:21 pm, edited 2 times in total.
Re: Not available sys.implementation.mpy on v1.19.1 (2022-06-18)
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
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)
Yes, we realised that to be compatible with CPython, our "extended" attributes needed to have a leading underscore.