I've been fighting this for days, but I have code that tests and sets values in the registry and all seems to work fine in code. The changes are made, detected, and testable between sessions (including system restart).
The only problem: none of the changes are actually being made to my registry. I don't know WHAT they're changing, but it's not Windows Registry.
Python is 64bit. I specifically set it to 64 bit in the code. My system is 64 bit. I checked if it was changing the virtualstore settings (it isn't).
I wrote a test file that can be executed that shows each problem, seeing something that isn't there, changing something that isn't there, and so on but it doesn't fit so please see this StackOverflow for the whole thing: https://stackoverflow.com/questions/78654772/python-winreg-says-it-opened-a-key-that-doesnt-exist-in-my-registry