> But practicality beats purity here, and it's certainly more obvious than encoding="str".
Now, I understand.
I tried
>>> lxml.html.tostring(tag, encoding=str) '<b>абв</b>' >>>
and it worked well.
> But practicality beats purity here, and it's certainly more
obvious than encoding="str".
Now, I understand.
I tried
>>> lxml.html. tostring( tag, encoding=str)
'<b>абв</b>'
>>>
and it worked well.