Review my async socket server (Caution: 5 kB attachment)

Magnus Lie Hetland mlh at
Sun Jun 10 10:35:09 EDT 2001

"Jonathan Gardner" <gardner at> wrote in message
news:9fonn4$shm$1 at
> 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
> in Python. Do you have to print to STDERR in order to do this?

Have you seen this?

>>> from warnings import warn
>>> warn('Something')
__main__:1: UserWarning: Something


  Magnus Lie Hetland

 "Reality is that which, when you stop believing in
  it, doesn't go away."           -- Philip K. Dick

More information about the Python-list mailing list