Lichen

lib/random.py

90:c7ddfc4525da
2016-10-08 Paul Boddie Added some support for eliminating accessor class types where the provided attributes are invoked and are unbound methods. This uses a more sophisticated method involving usage observations that incorporate invocation information, permitting classes as accessors if paths through the code support them, even if other paths require instances as accessors to invoke methods.
     1 #!/usr/bin/env python     2      3 from _random import Random     4      5 def random():     6     pass     7      8 def randrange(start, stop=None, step=1):     9     pass    10     11 # vim: tabstop=4 expandtab shiftwidth=4