Mar-16-2017, 02:04 AM
in another project i ran into this issue with str vs int. but i can see potential cases where other types could be there, hence the the thought of using repr(). but i am not sure if that is even good enough. i wonder if json.dump() can handle all possible types or if pickle would be a better choice. oh wait, there are cases where even pickle can fail. the only final answer i can think of is to do try: and if there is an exception just use some fixed string like '?'.
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.