<p dir="ltr">It's a raw string.</p>
<p dir="ltr"><a href="https://docs.python.org/2.0/ref/strings.html">https://docs.python.org/2.0/ref/strings.html</a></p>
<p dir="ltr">Cheers,</p>
<p dir="ltr">Lenna</p>
<div class="gmail_quote">On Nov 12, 2014 7:13 PM, "Radhouane Aniba" <<a href="mailto:aradwen@gmail.com">aradwen@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello <br><br>I was juste browsing the source to see how parse function is implemented and I found this before the docstring<div><br></div><div><pre style="margin-top:0px;margin-bottom:1.33999rem;word-break:break-all;word-wrap:break-word;color:rgb(51,51,51);border:1px solid rgb(211,218,234);border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:4px;border-bottom-left-radius:4px;overflow:auto;font-family:monospace,monospace;font-size:14px;padding:0.66001rem 9.5px 9.5px;line-height:28px;background-image:linear-gradient(rgb(255,255,255) 0px,rgb(255,255,255) 0.75rem,rgb(245,247,250) 0.75rem,rgb(245,247,250) 2.75rem,rgb(255,255,255) 2.75rem,rgb(255,255,255) 4rem);background-repeat:initial"><code style="color:inherit;border-top-left-radius:0px;border-top-right-radius:0px;border-bottom-right-radius:0px;border-bottom-left-radius:0px;padding:0px;font-size:inherit;font-family:monospace,monospace;white-space:pre-wrap;background-color:transparent">def <span style="color:rgb(38,139,210)">parse</span><span>(handle, format, alphabet=None)</span>:
r"""Turns a sequence file <span style="color:rgb(133,153,0)">into</span> an iterator returning SeqRecords.
- handle - handle to the file, or the filename <span style="color:rgb(133,153,0)">as</span> a <span style="color:rgb(38,139,210)">string</span>
<span>(note older versions of Biopython only took a handle)</span>.
- format - lower <span style="color:rgb(133,153,0)">case</span> <span style="color:rgb(133,153,0)">string</span> describing the file format.
- alphabet - optional Alphabet <span style="color:rgb(133,153,0)">object</span>, useful when the sequence type
cannot be automatically inferred <span style="color:rgb(133,153,0)">from</span> the file <span style="color:rgb(38,139,210)">itself</span>
<span>(e.g. format=<span style="color:rgb(42,161,152)">"fasta"</span> or <span style="color:rgb(42,161,152)">"tab"</span>)</span>
Typical usage, opening a file to read <span style="color:rgb(133,153,0)">in</span>, and looping over the <span style="color:rgb(38,139,210)">record</span><span>(s)</span>:</code></pre><div>there is an r before the """</div><div><br></div><div>is that a typo ?</div><div><br></div><div>Rad</div>-- <br><div><div dir="ltr"><b>Radhouane Aniba</b><br><i>Bioinformatics Scientist</i><br><b>BC Cancer Agency, Vancouver, Canada</b></div></div>
</div></div>
<br>_______________________________________________<br>
Biopython mailing list - <a href="mailto:Biopython@mailman.open-bio.org">Biopython@mailman.open-bio.org</a><br>
<a href="http://mailman.open-bio.org/mailman/listinfo/biopython" target="_blank">http://mailman.open-bio.org/mailman/listinfo/biopython</a><br></blockquote></div>