Allen Riddell
Allen Riddell
Python 2 handles UTF-8 fine. (It's just not the default representation.)
@tpapp https://docs.python.org/2/howto/unicode.html Python 3 uses Unicode by default. In Python 2 you need to be explicit about it. In both cases you can have unicode strings in source code.
Here's a link to the section: https://docs.python.org/2/howto/unicode.html#unicode-literals-in-python-source-code
You're right. In Python 2.7 you can't have unicode variables. In Python 3 you can. But why does that matter? We only need unicode in the Stan program code. (Parameter...
Python 2 has no problems with unicode dictionary keys. In fact, it _can_ have unicode variables in the environment but you have to reference them via strings indirectly. For example,...
I was just recording my thought on the matter. I appreciate @tpapp putting work into drafting the issue text and would prefer to leave any edits to him.
One use of unicode in Stan Program code which should definitely be supported is in comments. Leaving code comments in one's native language is fairly routine in Python/Java/etc. We should...
UTF8 comments aren't supported in PyStan right now (non-ASCII characters will generate an error). I'll fix this. stan-dev/pystan#223
Sounds fine to me. Though I wouldn't bother listing packages which do not appear to be actively maintained. For Python the only big one that comes to mind is Facebook's...
yeah, that was more or less what I was thinking of. Perhaps there's some additional checking the mixin should do to make sure that the thing it is being mixed...