Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
function to untabify
#4
we obviously overlooked str.expandtabs(). bytes can do this, too, but it will probably count Unicode characters as the number of bytes UTF-8 encodes them as, so the str version is probably the one to use.
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
function to untabify - by Skaperen - Aug-12-2022, 05:29 PM
RE: function to untabify - by ndc85430 - Aug-13-2022, 11:52 AM
RE: function to untabify - by perfringo - Aug-13-2022, 12:17 PM
RE: function to untabify - by Skaperen - Aug-14-2022, 12:49 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  does anyon want to write an untabify command? Skaperen 10 3,939 Sep-09-2019, 06:05 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