You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Python 2.7.16 (default, Nov 9 2019, 05:55:08)
[GCC 4.2.1 Compatible Apple LLVM 11.0.0 (clang-1100.0.32.4) (-macos10.15-objc-s on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from StringIO import StringIO
>>> import configobj
>>> print(configobj.__version__)
5.0.6
>>> s = StringIO("temperature = 20°C")
>>> c = configobj.ConfigObj(s, encoding='utf-8')
>>> c['temperature']
'20\xc2\xb0C'
>>> type(c['temperature'])
<type 'str'>
Under Python 2, my expectation is that the type would be Unicode, not str.
Or, am I missing something?
The text was updated successfully, but these errors were encountered:
This is helpful thank you. I was imprecise and I meant this as also a "I need to remember what the code does when the encoding keyword argument is provided".
Optimistically putting this in 5.1.0 even though it's not clear what options we have for building 2.x distributables
Consider the following:
Under Python 2, my expectation is that the type would be Unicode, not
str
.Or, am I missing something?
The text was updated successfully, but these errors were encountered: