Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
mutable strings
#1
is there any form of mutable strings in python?
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply
#2
bytearray?
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
Reply
#3
it would be nice if there was a mutable string that can handle the full range of values that regular immutable strings can.  for now, i convert them to a list, work on them as needed, and finally join it all back to a regular immutable string (if i need the result as a string).  mutable strings would probably be no more efficient than a list,  but, having them could make for cleaner more readable code by not having the conversions coded in there.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply
#4
pip install mutablestring
It has 3 zeros(Watch,Star,Fork),so i guess there is not much demand of this feature.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  the quest for a mutable string (buffer) Skaperen 2 273 Apr-04-2024, 12:42 PM
Last Post: Skaperen
  the quest for a mutable string (more) Skaperen 0 178 Apr-04-2024, 04:01 AM
Last Post: Skaperen
  print a list strings is fast but printing the joined strings is slow Skaperen 9 3,959 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