On Thu, Oct 31, 2002 at 10:24:41AM +0200, Juergen Hermann wrote:
from distutils.dist import Distribution assert hasattr(Distribution, "getSupportedOptions") assert "foo" in Distribution.getSupportedOptions()
Distutils uses underscores, so that would be get_supported_options(), but it seems like a reasonable idea. Should I write a micro-PEP about this, or is this addition too trivial?
Incidentally, the change's use of warnings.warn() means that it will only work in Python 2.1 or later. For earlier versions, it could just print a message to stderr. There seems little reason to break 1.5.2/2.0 compatibility for this one little thing.