Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
tyingq
9y ago
0 comments
Save
Share
That is why I used sys.hexversion. Since there are 3 paths, has real bytes, fake str bytes, and no bytes.
0 comments
2 comments · 1 top-level
top
newest
oldest
jwilk
9y ago
· 1 in thread
bytes exists since Python 2.6. Do you really need to support anything older?
tyingq
OP
9y ago
Maybe not, but the incremental work was less than making a single codebase work for both 2 and 3. It's code that runs on openwrt, so forcing my ideas on the users is painful for them...they would have to build a whole new image.
j
/
k
navigate · click thread line to collapse