Message391409
> If we're going to launch cmd.exe, I'd prefer to only do that in the
> platform module and not the sys function. Nothing in sys should
> start a subprocess (if we can at all avoid it).
In that case, would you want to deprecate sys.getwindowsversion().platform_version?
platform._syscmd_ver() is already implemented to parse the output of CMD's VER command. The result has to be post-processed because the regex isn't as exact as it could be. It supports versions back to Windows 2000, which returned "Microsoft Windows 2000 [Version maj.min.build]". Starting with Windows Vista up to early versions of Windows 10, the format is "Microsoft Windows [Version maj.min.build]". In more recent versions of Windows 10, it includes the update build revision number -- "Microsoft Windows [Version maj.min.build.ubr]". |
|
Date |
User |
Action |
Args |
2021-04-19 22:01:07 | eryksun | set | recipients:
+ eryksun, paul.moore, tim.golden, zach.ware, steve.dower, corona10, bugale bugale, shreyanavigyan, Orbital |
2021-04-19 22:01:07 | eryksun | set | messageid: <1618869667.79.0.254640241615.issue43284@roundup.psfhosted.org> |
2021-04-19 22:01:07 | eryksun | link | issue43284 messages |
2021-04-19 22:01:07 | eryksun | create | |
|