Most pythonic way to get a range with a radius, and filter out too big or too small entries
<p>I have implemented this algorithm:</p>

<pre><code>def get_hot_pages(self, radius = 2):
    if self.page == None or self.max_pages == None: return []
    hot_pages = []
    for page in xrange(self.page - radius, self.page + radius + 1):
        if page &lt; 0 or page &gt;= self.max_pages : continue
        hot_pages.append(page)
    return hot_pages
</code></pre>

<p>But something tells me this can be implemented better. Is there a more pythonic way to do this?</p>
