May-07-2017, 05:49 AM
i have a case where i am getting a member from a dictionary and much later, elsewhere in the code with no access to the original dictionary, the code needs to determine if it was in the dictionary or not. my first reaction was to code it up to set it to None if it was absent. but i had an issue. it was possible to have a None value in the dictionary. the code needed to distinguish the case of key:None in the dictionary and having been given a default value because it was not in the dictionary. i need to come up with a way to code a value to it that is different for the case of absent. any ideas?
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.