This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eryksun
Recipients ZackerySpytz, eryksun, nanonyme, paul.moore, steve.dower, tim.golden, zach.ware
Date 2019-05-13.21:15:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1557782118.86.0.862216039113.issue32587@roundup.psfhosted.org>
In-reply-to
Content
> For tests, you should be able to create your own REG_MULTI_SZ key with 
> zero-length strings and read it back. If the winreg module won't let 
> you do it, you may need ctypes (but that's okay in Windows-only 
> tests).

winreg.SetValueEx can create the value. We just need to add a case to test_case in Lib/test/test_winreg.py, such as the following:

    ("Multi-nul", ["", "", "", ""], REG_MULTI_SZ)

> I just spent way too long looking for a MoveFileEx call that doesn't 
> exist, because this isn't actually about doing things on reboot :)

Do you mean a variation of MOVEFILE_DELAY_UNTIL_REBOOT that doesn't require administrator access? That would be useful if it existed. I suppose a MOVEFILE_DELAY_UNTIL_LOGOFF flag could be added to have the logon process (winlogon.exe, instead of smss.exe) perform the delete/rename operation under impersonation at the end of the session, or (given a system crash or power failure) the next time the user logs on.
History
Date User Action Args
2019-05-13 21:15:18eryksunsetrecipients: + eryksun, paul.moore, tim.golden, zach.ware, steve.dower, ZackerySpytz, nanonyme
2019-05-13 21:15:18eryksunsetmessageid: <1557782118.86.0.862216039113.issue32587@roundup.psfhosted.org>
2019-05-13 21:15:18eryksunlinkissue32587 messages
2019-05-13 21:15:18eryksuncreate