[issue14573] json iterencode can not handle general iterators
Jan Vlcinsky <jan.vlcin...@tamtamresearch.com> added the comment: I found proposed change very handy (came here researching why it is not behaving that way). Taking into account: - Python shines in handling lists, using generators and iterators - Largest group of python developers develop web apps, and there it is typical pattern to iterate across many records and return them as long list of dictionaries I think proposed feature could become very popular. -- nosy: +vlcinsky ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue14573> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue32223] distutils doesn't correctly read UTF-8 content from config files
Jan Vlcinsky <jan.vlcin...@tamtamresearch.com> added the comment: The fix shall go to https://github.com/python/cpython/blob/2812d3d99287c50bab99625d7240bcf1c2e32369/Lib/distutils/dist.py#L406 where `parser.read(filename)` shall be changed to `parser.read(filename, encoding="utf-8")` This assumes that the setup.cfg shall be UTF-8 encoded what I thing is correct assumption. Alternative assumptions are (and I do not find them good): - assume the file is encoded as current console is (this is not deterministic and is direct cause of this issue) - let user to specify the encoding somewhere around (this requires extra step and does not bring any value) -- nosy: +vlcinsky ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32223> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com