[CentralOH] 2014-11-14 道場 Scribbles: Injection Attacks

iynaix iynaix at gmail.com
Mon Nov 17 16:30:44 CET 2014


Is the example of the balancing parens an academic exercise? If it isn't,
it's probably a lot easier to write:

strings = [
    '',
    'hello world',
    '(',
    ')',
    '()',
    '((())',
    '((()))',
    '(a((b)))',
    '((())))',
    'hello(a(b())))world',
    '(a(b(c)d)e)',
]

for s in strings:
    print(repr(s), s.count('(') == s.count(')'))

Cheers,
XY

On Mon, Nov 17, 2014 at 11:16 PM, Eric Floehr <eric at intellovations.com>
wrote:

>     What's best way to install both Python 2(.7) _and_ 3(.4) on Windows
>> _with_
>>     Ipython _and_ virtualenv? It's easy to find answers for any one
>> piece, but
>>     not for all of them together.
>
>
> 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.
>
> [1] http://www.continuum.io/downloads#py34
> [2] http://davebehnke.com/using-python-anaconda-distribution.html
>
>
> _______________________________________________
> CentralOH mailing list
> CentralOH at python.org
> https://mail.python.org/mailman/listinfo/centraloh
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/centraloh/attachments/20141117/acf1dd49/attachment.html>


More information about the CentralOH mailing list