A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2003-January/032227.html below:

logging package -- rename warn to warning?

[Python-Dev] Re: logging package -- rename warn to warning? [Python-Dev] Re: logging package -- rename warn to warning?Guido van Rossum guido@python.org
Sat, 18 Jan 2003 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/)



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4