title: How can I obtain pattern string from compiled regexp pattern in python?
body: <p>I have some code like this one:</p>
  
  <pre><code>&gt;&gt;&gt; import re
  &gt;&gt;&gt; p = re.compile('my pattern')
  &gt;&gt;&gt; print p
  _sre.SRE_Pattern object at 0x02274380
  </code></pre>
  
  <p>Is it possible to get string <code>"my pattern"</code> from <code>p</code> variable?</p>