On Mon, Dec 29, 2008 at 4:08 AM, Tzury Bar Yochay <afro.syst...@gmail.com> wrote: > $ ~/devel/ice/snoip/freespeech$ python > Python 2.5.2 (r252:60911, Oct 5 2008, 19:24:49) > [GCC 4.3.2] on linux2 > Type "help", "copyright", "credits" or "license" for more information. >>>> import logging >>>> logging.DatagramHandler > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > AttributeError: 'module' object has no attribute 'DatagramHandler' >>>> > > > That is odd since the documentation says there is DatagramHandler for > module logging
>From http://docs.python.org/library/logging.html#logging.DatagramHandler : "The DatagramHandler class, located in the logging.handlers module [...]" >From http://docs.python.org/library/logging.html#logging-levels : "The StreamHandler and FileHandler classes are defined in the core logging package. The other handlers are defined in a sub- module, logging.handlers." There's your answer. I do agree though that the "class logging.DatagramHandler" line in the docs is misleading to say the least. Perhaps a docs bug should be filed... Cheers, Chris -- Follow the path of the Iguana... http://rebertia.com -- http://mail.python.org/mailman/listinfo/python-list