Bombay duck Bombay duck The Bombay duck or bummalo ("Harpadon nehereus"), is a lizardfish. Adults may reach a maximum length of 40 cm, but the usual size is around 25 cm. The origin of the term "Bombay duck" is uncertain. One popular etymology relates to railways. When the rail links started on the Indian subcontinent, people from eastern Bengal were made aware of the great availability of the locally prized fish on India's western coasts and began importing them by the railways. Since the smell of the dried fish was overpowering, its transportation was later consigned to the mail train; the Bombay
Duck typing in a way that it does not support. class Duck: class Airplane: class Whale: def lift_off(entity): duck = Duck() airplane = Airplane() whale = Whale() lift_off(duck) # prints `Duck flying` lift_off(airplane) # prints `Airplane flying` lift_off(whale) # Throws the error `'Whale' object has no attribute 'fly'` Certain usually statically typed languages such as Boo and the version 4 release of C# have extra type annotations Templates in C++ allow the language to use compile-time duck typing. Duck typing is similar to, but distinct from structural typing. Structural typing is a static typing system that determines type compatibility and equivalence by