Review my async socket server (Caution: 5 kB attachment)
Jonathan Gardner
gardner at cardomain.com
Tue Jun 12 18:51:33 EDT 2001
Magnus Lie Hetland wrote:
> "Jonathan Gardner" <gardner at cardomain.com> wrote in message
> news:9fonn4$shm$1 at brokaw.wa.com...
>> Jonathan Gardner wrote:
> [...]
>> One thing I was wondering how to do... is there an easy to print
>> warnings? In Perl you have warn "Something", but I didn't see anything
>> that stuck
> out
>> in Python. Do you have to print to STDERR in order to do this?
>
> Have you seen this?
> http://www.python.org/doc/current/lib/module-warnings.html
>
>>>> from warnings import warn
>>>> warn('Something')
> __main__:1: UserWarning: Something
>
Now I really need new glasses. Blame my myopia.
<Frantically rereads the entire documentation set to find what else he
might have missed>
More information about the Python-list
mailing list