Re: [Python-checkins] CVS: distutils/distutils msvccompiler.py,1.33,1.34

On second thought, first try for _winreg, and then winreg. Only if both fail do we try for win32api/win32con. If *those* both fail, then we don't have registry access. Phew!
Is this smart? Doesn't the new winreg have a very different I/F than the old one? --Guido van Rossum (home page: http://www.python.org/~guido/)

Greg Ward wrote in a checkin message:
On second thought, first try for _winreg, and then winreg. Only if both fail do we try for win32api/win32con. If *those* both fail, then we don't have registry access. Phew!
Guido van Rossum writes on python-dev:
Is this smart? Doesn't the new winreg have a very different I/F than the old one?
No, this is bad. It *will* break with winreg; if _winreg isn't available, it should use the win32api/win32con/whatever stuff; it's a Python 1.5.2 interpreter at that point. -Fred -- Fred L. Drake, Jr. <fdrake at beopen.com> BeOpen PythonLabs Team Member

On 29 June 2000, Fred L. Drake, Jr. said:
Greg Ward wrote in a checkin message:
On second thought, first try for _winreg, and then winreg. Only if both fail do we try for win32api/win32con. If *those* both fail, then we don't have registry access. Phew!
Guido van Rossum writes on python-dev:
Is this smart? Doesn't the new winreg have a very different I/F than the old one?
No, this is bad. It *will* break with winreg; if _winreg isn't available, it should use the win32api/win32con/whatever stuff; it's a Python 1.5.2 interpreter at that point.
What if it's a 1.6a1 or 1.6a2 interpreter? Presumably people will try Distutils 0.9 with them. Should I remove that feature now that 0.9 is out, but before Python 2.0b1? Greg -- Greg Ward - software developer gward@mems-exchange.org MEMS Exchange / CNRI voice: +1-703-262-5376 Reston, Virginia, USA fax: +1-703-262-5367

Greg Ward writes:
What if it's a 1.6a1 or 1.6a2 interpreter? Presumably people will try Distutils 0.9 with them. Should I remove that feature now that 0.9 is out, but before Python 2.0b1?
You're placing too much value on code labelled "alpha". ;) There are two interesting versions -- 1.5.2 (since you scrapped support for versions before that), and 2.0. And the CVS version is the closest approximation to 2.0 that anyone has. -Fred -- Fred L. Drake, Jr. <fdrake at beopen.com> BeOpen PythonLabs Team Member
participants (3)
-
Fred L. Drake, Jr.
-
Greg Ward
-
Guido van Rossum