Imaginative solutions to connect. Was: Python 1.6 alpha 1 released

Just van Rossum just at
Thu Apr 6 10:44:19 CEST 2000

At 12:20 AM -0400 06-04-2000, Daniel Berlin+list.python wrote:
>Why don't we introduce an official deprecation mechanism so that
>python will say "Warning, connect(arg1,arg2) is deprecated, use
>connect(arg1) instead" the first time it sees it or something.

Warnings are good. But: where do they go? Quick proposal (before breakfast,
so I can't guarantee it makes sense): a new variable in sys: sys.stdwarn.
Needless to say, it's a file-like object. Ah well, maybe warning can just
go to sys.stderr after all. Coffee!


More information about the Python-list mailing list