Comment

Comment by joshuamorton

u"" is a syntax error in python3 (or at least it was for a while, apparently its not anymore, that said...). The correct cross-platform solution is to do

    from __future__ import unicode_literals
which makes python2 string literals unicode unless declared bytes. Then "" strings are always unicode and b"" strings are always bytes, no matter the language version.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton