noob question

Fredrik Lundh fredrik at pythonware.com
Mon Jun 27 07:35:33 EDT 2005


Alan Gauld wrote:

> In Python Hungarian notation is meaningless since variables
> aren't typed anyway.

in real-life Python code, variables tend to be 'typed' in the hungarian
sense:

http://msdn.microsoft.com/library/en-us/dnvs600/html/hunganotat.asp

    "/.../ the concept of 'type' in this context is determined by
    the set of operations that can be applied to a quantity. The
    test for type equivalence is simple: could the same set of
    operations be meaningfully applied to the quantities in
    questions? If so, the types are thought to be the same.
    If there are operations that apply to a quantity in exclusion
    of others, the type of the quantity is different."

</F> 






More information about the Python-list mailing list