Steve Dower added the comment:

FWIW, on my machine I don't have embedded nulls in any of the values that 
enum_keys is looking for:

>>> import winreg
>>> hkcr=winreg.OpenKey(winreg.HKEY_CLASSES_ROOT, '')
>>> n = []
>>> i = 0
>>> while True:
...   try:
...     n.append(winreg.EnumKey(hkcr, i))
...   except EnvironmentError:
...     break
...   i += 1
...
>>> [x for x in n if '\0' in x]
[]
>>>

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue22028>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to