renuka prasad <renukapras...@gmail.com> writes:
[...] > what is the reason for the previous problem? can you elaborate a > bit.. What my understanding is that the typical code and value , that > is what we code is not the same as its value > > but would like to know more.. can you explain a bit? [...] It's generally bad form in Python to say, for example d.has_key(foo) rather than foo in d The former assumes the "has_key" method (commonly there when d is a dictionary) and so doesn't work for other containers like lists, tuples, sets. In short, if you're going to do addition, all you should be worried about is whether the operands support the addition protocol. You shouldn't care about (and shouldn't definitely not check for) the types of the operands which is what, from Arul's comment, the VCS module seems to be doing. -- _______________________________________________ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers