Questions about Python winreg | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Questions about Python winreg

I have been playing a bit with winreg for the past couple of days, but I seem to lack the ability to figure out something. I can modify the values of keys, but I struggle finding a way to change the name of a key. I can easily delete it and all of it's subkeys by enumerating them and it will regenerate the next time I open the application, but I wanted to know if there is a way to rename a key with a lot of subkeys.

30th Jan 2018, 11:50 PM
DrinkNcheese
DrinkNcheese - avatar
1 Answer
+ 1
in all languages a key is immutable. copy with another name and delete original ine.
27th Feb 2020, 5:55 AM
Oma Falk
Oma Falk - avatar