brock@montreat:~/csci431/webpage/notes/fetch_and_add$ python3 Python 3.6.7 (default, Oct 22 2018, 11:32:17) [GCC 8.2.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> from fetch_and_add_register import FetchAndAddRegister >>> fa0 = FetchAndAddRegister() >>> fa2 = FetchAndAddRegister(2) >>> print(fa0) 0 >>> print(fa2) 2 >>> fa0.register_value() 0 >>> fa2.register_value() 2 >>> brock@montreat:~/csci431/webpage/notes/fetch_and_add$ pylint3 fetch_and_add_register.py No config file found, using default configuration -------------------------------------------------------------------- Your code has been rated at 10.00/10 (previous run: 10.00/10, +0.00) brock@montreat:~/csci431/webpage/notes/fetch_and_add$ python3 Python 3.6.7 (default, Oct 22 2018, 11:32:17) [GCC 8.2.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> from fetch_and_add_register import FetchAndAddRegister >>> fa0 = FetchAndAddRegister() >>> print(fa0) 5 >>> fa0.fetch_and_add(1) 5 >>> print(fa0) 6 >>> brock@montreat:~/csci431/webpage/notes/fetch_and_add$ python3 Python 3.6.7 (default, Oct 22 2018, 11:32:17) [GCC 8.2.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> from fetch_and_add_register import FetchAndAddRegister >>> FetchAndAddRegister.__doc__ 'Register for Fetch And Add' >>> FetchAndAddRegister.register_value.__doc__ ' Returns register value ' >>> FetchAndAddRegister.fetch_and_add.__doc__ ' Perform the fetch and add operation' >>> FetchAndAddRegister.__dir__ >>> dir(FetchAndAddRegister) ['__class__', '__delattr__', '__dict__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__gt__', '__hash__', '__init__', '__init_subclass__', '__le__', '__lt__', '__module__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', 'fetch_and_add', 'register_value'] >>> type(FetchAndAddRegister) >>> FetchAndAddRegister.register_value.__annotations__ {'return': } >>> FetchAndAddRegister.fetch_and_add.__annotations__ {'increment': , 'return': } >>>