[Python-Dev] Re: logging package -- rename warn to warning?

Guido van Rossum guido@python.org
2003年1月18日 21:14:59 -0500


> Guido van Rossum wrote:
> > I think I'd like to change 'warn' to 'warning' (and WARN to WARNING).
> > Thoughts? I can implement this for Python 2.3a2.
>> +1 on the name change, but it will break a fair amount of code out there
> (from the emails I've been receiving). Could we leave warn and WARN in as
> synonyms for now, but only mention warning and WARNING in the documentation?
> Or is this against policy?

I'd rather only have one name -- otherwise we'll end up supporting
both names forever. In your own distro (if you keep updating it) feel
free to support both; in Python, I think I'd like to use only
warning/WARNING.
--Guido van Rossum (home page: http://www.python.org/~guido/)

AltStyle によって変換されたページ (->オリジナル) /