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

Magnus Lie Hetland mlh at idi.ntnu.no
Sun Jun 10 10:35:09 EDT 2001


"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

--

  Magnus Lie Hetland         http://www.hetland.org

 "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