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

Bruno Desthuilliers bruno.42.desthuilliers at websiteburo.invalid
Mon Dec 29 07:19:38 EST 2008


Tzury Bar Yochay a écrit :
> $ ~/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

It also says that DatagramHandler is located in the logging.handlers 
modules:

http://www.python.org/doc/2.5.2/lib/node415.html


HTH



More information about the Python-list mailing list