<div dir="ltr">Is the example of the balancing parens an academic exercise? If it isn't, it's probably a lot easier to write:<div><br></div><div><div class="gmail_extra"><div class="gmail_extra">strings = [</div><div class="gmail_extra">    '',</div><div class="gmail_extra">    'hello world',</div><div class="gmail_extra">    '(',</div><div class="gmail_extra">    ')',</div><div class="gmail_extra">    '()',</div><div class="gmail_extra">    '((())',</div><div class="gmail_extra">    '((()))',</div><div class="gmail_extra">    '(a((b)))',</div><div class="gmail_extra">    '((())))',</div><div class="gmail_extra">    'hello(a(b())))world',</div><div class="gmail_extra">    '(a(b(c)d)e)',</div><div class="gmail_extra">]</div><div class="gmail_extra"><br></div><div class="gmail_extra">for s in strings:</div><div class="gmail_extra">    print(repr(s), s.count('(') == s.count(')'))</div><div><br></div><div><div class="gmail_signature">Cheers,<br>XY</div></div>
<br><div class="gmail_quote">On Mon, Nov 17, 2014 at 11:16 PM, Eric Floehr <span dir="ltr"><<a href="mailto:eric@intellovations.com" target="_blank">eric@intellovations.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span class=""><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">    What's best way to install both Python 2(.7) _and_ 3(.4) on Windows _with_<br>
    Ipython _and_ virtualenv? It's easy to find answers for any one piece, but<br>
    not for all of them together.</blockquote><div><br></div></span><div>Anaconda[1] is a spiritual successor to EPD/Canopy, by Travis Oliphant's new company Continuum Analytics. It supports 3.4, and IPython, but uses conda as the package and environment manager[2]. It's also geared towards the scientific community, but can be used generally.</div><div><br></div><div>[1] <a href="http://www.continuum.io/downloads#py34" target="_blank">http://www.continuum.io/downloads#py34</a></div><div>[2] <a href="http://davebehnke.com/using-python-anaconda-distribution.html" target="_blank">http://davebehnke.com/using-python-anaconda-distribution.html</a></div><div><br></div></div></div></div>
<br>_______________________________________________<br>
CentralOH mailing list<br>
<a href="mailto:CentralOH@python.org">CentralOH@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/centraloh" target="_blank">https://mail.python.org/mailman/listinfo/centraloh</a><br>
<br></blockquote></div><br></div></div></div>