[New-bugs-announce] [issue37746] Provide Windows predefined access type constants
Steve Dower
report at bugs.python.org
Fri Aug 2 13:23:17 EDT 2019
New submission from Steve Dower <steve.dower at python.org>:
We currently do not provide the standard access type constants anywhere, despite providing some of the specific access type flags (e.g. in `winreg`):
#define DELETE (0x00010000L)
#define READ_CONTROL (0x00020000L)
#define WRITE_DAC (0x00040000L)
#define WRITE_OWNER (0x00080000L)
#define SYNCHRONIZE (0x00100000L)
#define STANDARD_RIGHTS_REQUIRED (0x000F0000L)
#define STANDARD_RIGHTS_READ (READ_CONTROL)
#define STANDARD_RIGHTS_WRITE (READ_CONTROL)
#define STANDARD_RIGHTS_EXECUTE (READ_CONTROL)
#define STANDARD_RIGHTS_ALL (0x001F0000L)
#define SPECIFIC_RIGHTS_ALL (0x0000FFFFL)
I'm not sure where the best place to expose them would be. `os` (`nt`) seems best, but it's 99% a POSIX shim that doesn't actually have anything Windows-specific exposed, and `_winapi` is not public.
They're likely already available through pywin32 or similar, but given their use with `winreg` we should probably at least make them available there.
----------
components: Windows
messages: 348908
nosy: paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
stage: needs patch
status: open
title: Provide Windows predefined access type constants
type: enhancement
versions: Python 3.9
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37746>
_______________________________________
More information about the New-bugs-announce
mailing list