Python Forum
the quest for a mutable string (more)
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
the quest for a mutable string (more)
#1
i've been thinking about making Python easier to handle mutable strings in the type of bytearray. this should be possible in the definition of the language an its tools. there are many places where only strs can be provided. just make it so that bytes and bytearray are allowed as alternate types, converted when needed, usually when provided. a simple case would be the print() function. the arguments and sep= and end= would be extended to allow data given to it to be in bytes or bytearray. everything else would be handled like this. where it now requires str only, it can accept any of str, bytes,,or bytearray.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  the quest for a mutable string (buffer) Skaperen 2 286 Apr-04-2024, 12:42 PM
Last Post: Skaperen
  quest for better float formatting Skaperen 0 1,037 Mar-02-2022, 08:34 PM
Last Post: Skaperen
  mutable strings Skaperen 3 3,520 Dec-03-2017, 03:05 AM
Last Post: snippsat

Forum Jump:

User Panel Messages

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