AttributeError: 'module' object has no attribute 'DatagramHandler' (ubuntu-8.10, python 2.5.2)

Chris Rebert clp at
Mon Dec 29 13:18:03 CET 2008

On Mon, Dec 29, 2008 at 4:08 AM, Tzury Bar Yochay
<Afro.Systems at> 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 :
"The DatagramHandler class, located in the logging.handlers module [...]"

>From :
"The StreamHandler and FileHandler classes are defined in the core
logging package. The other handlers are defined in a sub- module,

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...


Follow the path of the Iguana...

More information about the Python-list mailing list