[Distutils] normpath/abspath problem

Greg Ward gward@python.net
Fri, 4 Aug 2000 21:33:34 -0400


On 03 August 2000, Fred L. Drake, Jr. said:
> import sys
> try:
>     sys.version_info
> except AttributeError:
>     import macpath
>     macpath = mac_normpath

I assume you meant "macpath.normpath = mac_normpath" there!

That said, I've never been fond of using try/except when you mean if.
If you mean "Python version >= 1.6" why not say so?  How exactly does
"sys.version_info does not raise an exception" convey "this is Python
1.6 or greater" to the average reader?

        Greg
-- 
Greg Ward - Linux nerd                                  gward@python.net
http://starship.python.net/~gward/
The world's my oyster soup kitchen floor wax!