(Apr-20-2019, 07:56 AM)Gribouillis Wrote: Try to print type(doc_str)
perhaps.
i get
<class 'botocore.docs.docstring.ClientMethodDocstring'>
from that. so i probably should do str() on it. still, i expect attribute __doc__ to be a str already.that seems to do it.
len(str(doc_str)) = 3079
it looks like str() is doing the same thing as repr() including changing newline characters to the 2-str '\n' (which would be '\\n' in source code literal to create the same 2-str).
i tried copy.copy() and it just copies that class object as-is (e.g. the copy behaves the same).
i did dir(doc_str) and its attributes look like str attributes.
looking closer it looks like it has all str attributes plus a few more. so it's trying to be like a str in some way.
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.