Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
bytes == str
#1
bytes == str is always True on python2 and always False on python3.  so i have been using it for version testing, at least for major version numbers.  one problem is that it is obscure code; the meaning isn't obvious just looking at that alone.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Messages In This Thread
bytes == str - by Skaperen - Nov-27-2017, 02:16 AM
RE: bytes == str - by Larz60+ - Nov-27-2017, 02:55 AM
RE: bytes == str - by Skaperen - Nov-27-2017, 04:25 AM
RE: bytes == str - by wavic - Nov-27-2017, 07:54 AM
RE: bytes == str - by Skaperen - Nov-28-2017, 02:56 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020