New submission from Senthil Kumaran <orsent...@gmail.com>: >>> from urllib.parse import unquote >>> unquote(None) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/senthil/python/release31-maint/Lib/urllib/parse.py", line 331, in unquote res = string.split('%') AttributeError: 'NoneType' object has no attribute 'split'
As obvious, the AttributeError above is not an Intentional one and is a mistake. TypeError is correct. Opening this issue subsequent to the discussion in msg12098 ---------- assignee: orsenthil messages: 112100 nosy: orsenthil priority: normal severity: normal status: open title: unquote(None) raises AttributeError - Instead of TypeError type: behavior versions: Python 3.2 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue9432> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com