Pyhon 2.x or 3.x, which is faster?
Jon Ribbens
jon+usenet at unequivocal.co.uk
Wed Mar 9 09:56:27 EST 2016
On 2016-03-09, BartC <bc at freeuk.com> wrote:
> (Isn't it better that it's automatic? Someone sends you a text file that
> you want to open within a Python program. Are you supposed to analyze it
> first, or expect the sender to tell you what it is (they probably won't
> know) then need to hack the program to read it properly?)
Yes, that is exactly what you're supposed to do. But if you really
want to do it the wrong way then look here:
https://github.com/chardet/chardet
More information about the Python-list
mailing list