title: what is the correct way to return a value inside of a method? in python
body: <p>This function makes a range of dates (this function is related to a class): </p>
  
  <pre><code>def _makeRangeDates(self, desde, ultima_carga):
      dates = []
      for fechaRequest in rrule(DAILY, dtstart=desde, until=ultima_carga):
          dates.append(fechaRequest)
      return self.dates
  </code></pre>
  
  <p>What is the best way to return the list of dates inside of this function?</p>
  
  <p>is mandatory to return self.dates ?</p>
  
  <p>Regards.
  Nelson.</p>