Examples / Links needed

Andy andy.rockford at gmail.com
Mon May 7 01:30:47 EDT 2007


Gurus, I'm looking for definite examples (pardon me if I'm not clear
here) on Stack class...Somewhat like this :

class Stack(object):
      def __init__(self__)
          self.__contents = []


and ad hoc implementation of a class based on number system like for
example somewhat like this


def __imult__(self, other):
       self.__numerator   *= other.__numerator
       self.__denominator *= other.__denominator
       .
       .
      return self



I'm not satisfied with Python Docs. Thanks in advance.




More information about the Python-list mailing list