Skip to content

Instantly share code, notes, and snippets.

@devmnj
Created July 5, 2019 08:26
Show Gist options
  • Save devmnj/98d71a88f95b034e83a07b3e3e7035b9 to your computer and use it in GitHub Desktop.
Save devmnj/98d71a88f95b034e83a07b3e3e7035b9 to your computer and use it in GitHub Desktop.
Encoding Examples -Python

Encoding Examples -Python

myuTuple=(u'USER', u'NODE', u'HASH', u'IDNBR') mysTuple=[str(x) for x in myuTuple]

(u'USER', u'NODE', u'HASH', u'IDNBR') to this: ('USER', 'NODE', 'HASH', 'IDNBR') a = (u'USER', u'NODE', u'HASH', u'IDNBR') tuple([e.encode() for e in a])

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment