I’m using Python 2.5. The DLL I imported is created using the 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 strings returned from CLR are returned as Unicode’.
Share
Could you post your error message? Could you post what type of object you have (
type(yourvar))?Please check if you have a
partition(sep)method for this object (dir(yourvar)).Applying
partitionmethod should look like:You can also try
splitfunction instead ofpartition: