Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in Python only
Search
Advanced Search
Forums
BYTES
Product Launch
Updates
Developer Toolkit
Member List
Calendar
Today's Posts
Home
Forum
Topic
Python
Mutable String
Mutable String
Collapse
This topic is closed.
X
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
Pierre Thibault
#1
Mutable String
May 3 '06, 06:45 PM
I would like to know if there are modules offering a mutable version of
strings in Python?
Scott David Daniels
#2
May 3 '06, 10:55 PM
Re: Mutable String
Pierre Thibault wrote:[color=blue]
> I would like to know if there are modules offering a mutable version of
> strings in Python?[/color]
Nope. But, for some uses:
import array
stringish = array.array{'c' , 'Whatever, kiddo!')
stringish[-6:-1] = array.array('c' , 'dudes')
print stringish.tostr ing()
--
-Scott David Daniels
scott.daniels@a cm.org
Comment
Post
Cancel
Pierre Thibault
#3
May 4 '06, 04:45 PM
Re: Mutable String
Ok,
That will do the job. Thank you.
Comment
Post
Cancel
Previous
template
Next
Working...
OK
OK
Cancel
👍
👎
☕
Comment