I m using Python 2.5. The dll i imported is created using clr.
The dll function is returning a string. I m trying to apply "partition" attribute to it. I m not able to do it. Even the partition is not working.
I think "all stringd returned from clr are returned as unicode". Help me please.Its very urgent.
Rejinacm 0 Newbie Poster
Recommended Answers
Jump to PostPerhaps you need to do something like:
# Assuming returned string is named inp_chrs inp_chrs = str( inp_chrs ) inp_chrs.partition( my_sep )
Does that make sense? Simply convert it to a pure python string using the
str()
method.
All 3 Replies
Reply to this topic Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.