May-02-2017, 03:54 AM
(May-01-2017, 04:37 PM)snippsat Wrote: Your shell still hasthen i guess i didn't recognize them as the sameascii
as encoding.
You have posted different error about this before.
i did find the ascii() builtin function does what i wanted. but ascii() does not exist in python2. in python2 repr() does what i want, and in python3 repr() does not, while ascii() does. so i have to assume this be related, somehow, to the string concept changes between python2 and python3. and, i guess i will have code that tests the python version (a module intended to work in both python2 and python3), maybe like this code that also removes the quotes:
foo = (repr(bar) if sys.version_info.major < 3 else ascii(bar))[1:-1]
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.