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.
â¢ 10 Spots. Strawberry Guavas are available in the fall. The Strawberry guava is also known as the purple guava, cattley guava or Chinese guava. It is botanically classified as Psidium cattleianum and is a native tree of Brazil.The tree rapidly spreads by sending up new shoots and through natural propagation by seed, and is considered an invasive species in Hawaii.ative to Brazil and also called purple guava and pineapple guava, strawberry guavas grow on a shrub or small tree with a smooth trunk that can reach fifteen feet in height.