Okay module six is made good but it lacks in some cases
I am referring this documentation of six module
http://pythonhosted.org/six/
and getting problem in this line *from six.moves import html_entities,
html_parser*
I have installed six module in both python 2 and python 3.3 but I am
getting problem in python 3.3 it says
Traceback (most recent call last):
File "html.py", line 34, in <module>
from six.moves import html_entities, html_parser
File "/usr/local/lib/python3.3/dist-packages/six.py", line 84, in __get__
result = self._resolve()
File "/usr/local/lib/python3.3/dist-packages/six.py", line 103, in
_resolve
return _import_module(self.mod)
File "/usr/local/lib/python3.3/dist-packages/six.py", line 74, in
_import_module
__import__(name)
File
"/home/chitrank/Documents/Google_Summer_of_code/moinmoin_pre/Emeraldtree/EmeraldTree/emeraldtree/html.py",
line 34, in <module>
from six.moves import html_entities, html_parser
File "/usr/local/lib/python3.3/dist-packages/six.py", line 84, in __get__
result = self._resolve()
File "/usr/local/lib/python3.3/dist-packages/six.py", line 103, in
_resolve
return _import_module(self.mod)
File "/usr/local/lib/python3.3/dist-packages/six.py", line 74, in
_import_module
__import__(name)
ImportError: No module named 'html.entities'; html is not a package
What could be the error please let me know
*Regards
*
*Chitrank Dixit
*
*IIPS-DAVV
*
*Indore (M.P.) , India *
*MCA
*
*trackleech.blogspot.in*
Post by Lennart RegebroOn Tue, May 21, 2013 at 10:32 AM, Chitrank Dixit
Post by Chitrank DixitHello Python Developers
I need to ask you some questions please answer me some questions
1) alternative to unichr() in python 3.3 (is it chr() or anything else is
available).
chr()
Post by Chitrank Dixit2) does using six module rather than doing some try catch stuff is a
better
Depends on what, and how much of six you end up using.
Post by Chitrank Dixit3) does next() method behavior is same in both python 2.7 and python 3.3.
As far as I know, yes.
//Lennart