Python Forum
i need to make a command that ...
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
i need to make a command that ...
#6
tr can't do it. sed would be be very awkward. and so would awk. C could certainly do i but i'm committed to making things in Python so they are ready to go on any architecture.

the whole range from chr(7) to chr(13) are 2 character escape sequences. see man ascii on the nearest BSD or Linux system. 128 to 255 needs to be \xXX. 256 and beyond needs to come out as \Uxxxxxx to cover the whole Unicode (actually in UTF-8 in the file).
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
i need to make a command that ... - by Skaperen - Nov-29-2019, 08:56 AM
RE: i need to make a command that ... - by Skaperen - Nov-30-2019, 05:03 AM
RE: i need to make a command that ... - by ndc85430 - Nov-30-2019, 08:20 AM
RE: i need to make a command that ... - by Skaperen - Nov-30-2019, 09:20 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  i want to make a cli command that ... Skaperen 9 5,477 Oct-01-2017, 06:35 AM
Last Post: Skaperen

Forum Jump:

User Panel Messages

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