Trinary operator?

Andrew Dalke dalke at dalkescientific.com
Wed Apr 17 16:00:47 EDT 2002


Philip Swartzleonard added to my table:
>>   verboseGenderTable = {
>>      "m": "male",
>>      "f": "female", <          # Most large eukaryotes
>    "a": "asexual",           # Bacteria, etc
>    "h": "hermaphrodite",     # Earthworms, etc
>    "n": "neuter",            # Robots, AIs
>    "r": "refuse-to-stateist",# The paranoid
>    "u": "unknown"            # We lack information /
>                              # last seen in dark ally /
>                                 # raised by wolves, dosen't know
>>   }
>>   verboseGender = verboseGenderTable[gender]

Well, it gets even worse.  For example, there are lizards which
are parthenogenetic (reproduce asexually) but are all female.  Here's
a nice list of terms if you really want to populate that table  :)

  http://www.soton.ac.uk/~cpd/repmod.html

                    Andrew
                    dalke at dalkescientific.com






More information about the Python-list mailing list