Python Forum
string to hex and back again
Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
string to hex and back again
#3
(Apr-27-2017, 04:01 AM)volcano63 Wrote: I am not sure if that's what you are looking for, but array may be your friend
In [3]: array.array('b', b'Skaperen')
Out[3]: array('b', [83, 107, 97, 112, 101, 114, 101, 110])

In [4]:

but...... can it be used with non-byte stuff?
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
string to hex and back again - by Skaperen - Apr-27-2017, 03:32 AM
RE: string to hex and back again - by volcano63 - Apr-27-2017, 04:01 AM
RE: string to hex and back again - by Skaperen - Apr-27-2017, 04:34 AM
RE: string to hex and back again - by volcano63 - Apr-27-2017, 05:13 AM
RE: string to hex and back again - by wavic - Apr-27-2017, 07:10 AM
RE: string to hex and back again - by Skaperen - Apr-27-2017, 07:26 AM
RE: string to hex and back again - by wavic - Apr-27-2017, 07:38 AM
RE: string to hex and back again - by Skaperen - Apr-27-2017, 10:00 AM
RE: string to hex and back again - by volcano63 - Apr-28-2017, 10:50 AM
RE: string to hex and back again - by Ofnuts - Apr-27-2017, 11:14 PM
RE: string to hex and back again - by wavic - Apr-28-2017, 03:51 AM
RE: string to hex and back again - by Ofnuts - Apr-28-2017, 09:31 AM
RE: string to hex and back again - by Skaperen - Apr-28-2017, 10:00 AM
RE: string to hex and back again - by wavic - Apr-28-2017, 10:54 AM
RE: string to hex and back again - by Skaperen - Apr-29-2017, 04:40 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How do I convert this string back to a list of integers? donmerch 6 3,831 Apr-05-2020, 06:43 PM
Last Post: donmerch
  string to list and back again as same type Skaperen 10 5,641 Sep-06-2018, 08:26 PM
Last Post: Skaperen

Forum Jump:

User Panel Messages

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