Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python Mapped Strings
#12
would

newstring = buf.replace(buf, 'nrdbc', 'n3DeleteBearerCommand')
do the same for you?

are you wanting to test column 1 and based on that maybe change column 2?

oops...
that should be:
newstring = buf.replace('nrdbc', 'n3DeleteBearerCommand')
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
Python Mapped Strings - by edualfaia - Aug-30-2023, 04:25 PM
RE: Python Mapped Strings - by Larz60+ - Aug-30-2023, 06:16 PM
RE: Python Mapped Strings - by edualfaia - Aug-30-2023, 10:12 PM
RE: Python Mapped Strings - by edualfaia - Aug-30-2023, 11:21 PM
RE: Python Mapped Strings - by Larz60+ - Aug-31-2023, 03:01 AM
RE: Python Mapped Strings - by edualfaia - Aug-31-2023, 07:45 AM
RE: Python Mapped Strings - by Larz60+ - Aug-31-2023, 10:01 PM
RE: Python Mapped Strings - by edualfaia - Sep-01-2023, 10:15 AM
RE: Python Mapped Strings - by Skaperen - Sep-03-2023, 05:43 PM
RE: Python Mapped Strings - by edualfaia - Sep-03-2023, 09:43 PM
RE: Python Mapped Strings - by edualfaia - Sep-03-2023, 10:22 PM
RE: Python Mapped Strings - by Skaperen - Sep-04-2023, 01:48 AM
RE: Python Mapped Strings - by snippsat - Sep-04-2023, 11:08 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  print a list strings is fast but printing the joined strings is slow Skaperen 9 4,119 Aug-26-2019, 07:48 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