There are various techniques. 1  The best is to use a dictionary that maps strings to functions. 2  Use the built-in function getattr(): import foo getattr(foo, 'bar')() Note that getattr() works on any object, including classes, class instances, modules, and so on.
Botanically, this wonderful fruit belongs to the family of Myrtaceae, of the genus: Psidium. Scientific name: Psidium guajava. During each season, a guava tree bears many, round to ovoid or pear-shaped fruits, each about 5-10 cm long and weigh around 50â200 g. Different cultivar types of guava grown all over the world which may vary widely in flavor, pulp color, and seed composition.
In order to tell if a guava is ripe, squeeze it gently. If it gives under your fingers, its ripe. 2. Look for any blemishes on the guava. You want to try to select guavas that are blemish-free. Blemishes or bruises can mean the fruit is bad or will not taste good. 3. Check the color of the guava. Ripe guavas are those that have gone from bright green to a softer yellowish-green color. If you see a touch of pink on the fruit, it is in its prime. If you don't find any that are yellow, you can always buy green guava and wait for them to ripen.