News for hackers. Stuff that matters.
Re:Drawbacks of Python by bobbylarrybobby on Thursday September 12, 2019 @09:58AM (#20951491)
Python also has a bytes type that’s the same as python 2 strings. Why would you want your strings to not be Unicode?
Re:Drawbacks of Python by metalliqaz on Thursday September 12, 2019 @10:11AM (#20951616)
Obviously nobody cares what I think, so perhaps you would prefer the words of Armin Ronacher, the creator of Flask.

http://lucumr.pocoo.org/2014/5/12/everything-about-unicode/

Re:Drawbacks of Python by joshuamorton on Thursday September 12, 2019 @11:14AM (#20952383)
I've been using python for years now, I don't know the last time I had to use `sys.stdin`. I (like most people) deal with `open`, and unicode-only file apis (or the very nice things like flask that mitsuhiko and others have built). For most people, this isn't a problem.

I've migrated literally, 10s of thousands, of files from py2 to 3. I've yet to encounter an issue with surrogateescapes or sys.stdin. Unicode issues yes, but mostly because we were previously being fast-and-loose with unicode vs. bytes, and mishandling, for example, emojis.

Re:Drawbacks of Python by c0ff33 on Thursday September 12, 2019 @12:24PM (#20953354)
I certainly wouldn't trust Python to open the standard streams correctly, explicitly check the mode/encoding or reopen the descriptor.
Re:Drawbacks of Python by kstrauser on Thursday September 12, 2019 @02:55PM (#20955027)
I have a lot of respect for Armin as a smart engineer and all around good guy, but I think he was and is wrong about this one.