News for hackers. Stuff that matters.
Re:Mercurial’s journey to and reflections on Python 3 by wnoise on Monday January 13, 2020 @04:00PM (#22038525)
The python interface usually would take bytes, and if it did would also return bytes. But there were a lot of things that didn't take arguments, so always returned Unicode strings. Instead of e.g. getcwd(), you would have to use getcwdb(). Which naturally didn't have an equivalent in python 2 though they did add the complementary getcwdu() (which one should basically never use).

There are no comments on this comment yet.