On Dec 29, 11:08 pm, 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
According to http://www.python.org/doc/2.5.2/lib/module-logging.html """ The StreamHandler and FileHandler classes are defined in the core logging package. The other handlers are defined in a sub- module, logging.handlers. """ and later in http://www.python.org/doc/2.5.2/lib/node415.html """ The DatagramHandler class, located in the logging.handlers module, ... """ HTH, John -- http://mail.python.org/mailman/listinfo/python-list