Print results in console of class
Question: I'm pretty new to OOPython and am trying to simply execute the value of
`parse_param_paths()` to get the value of `dictpath`

I have:

    
    
    class Injection:
        def __init__(self):
            self.tld_object = None
            self.path_object = None 
            print "Class Initialized"
    
        def gather_path(self):
            self.path_object = PathsOfDomain.objects.filter(FKtoTld=3)
            return self.path_object
    
        def parse_param_paths(self):
            if self.path_object is not None:
                dictpath = {}
                for path in self.path_object:
                    self.params = path.split("?")[1].split("&")
                    out = list(map(lambda v: v.split("=")[0] +"=" + self.fuzz_vectors, self.params))
                    dictpath[path] = out
                print dictpath
    

Any help is greatly appreciated here. Thank you


Answer: 
    from myapp import Injection
    
    inj = Injection() # create an instance 
    
    inj.gather_path() # to set self.object to a value other than None
    
    inj.parse_param_paths() # call method with instance
    

Put a `print self.path_object is not None` before `if self.path_object is not
None`

If `self.path_object` is `None` you won't get any output as the condition
won't evaluate to `True` so you won't execute anymore lines in your method.

