今天升级Archlinux的时候,发现Python有2.6.3-2的更新,便立刻升级了。谁知更新完就立马出现了问题,在调用logging的时候会出现如下错误:
root# ipython
Python 2.6.3 (r263:75183, Oct 4 2009, 11:40:05)
Type "copyright", "credits" or "license" for more information.
IPython 0.10 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object'. ?object also works, ?? prints more.
In [1]: from logging import *
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
/usr/lib/python2.6/<ipython console> in <module>()
AttributeError: 'module' object has no attribute 'NullHandler'

