perl vs python shootout

tinman on 2004-06-22T08:59:38

A friend (rediscovered recently from Orkut, of all places) is learning Python. I introduced him to Golfing. He tells me about his cool script which scans Symantec's web page and downloads the latest update automatically. I golf it down to fewer lines. Now, the challenge is on.

This is fun, because there is absolutely no "my language rulez if I do it in fewer lines" feeling (ok, maybe there is a little). It's all to make both of us discover our respective languages a bit better. If I remember correctly, Python doesn't do regexes as part of the language (you have to use a Java like compile, match syntax) and Python also doesn't have CPAN. I intend to exploit those two advantages to the hilt *grins evilly*


PyPI

runrig on 2004-06-22T16:29:31

Python also doesn't have CPAN.

Python does have the Python Package Index (PyPI). Though it's not a repository, just an index to where you can find packages. But better than nothing, I suppose :)

Re:PyPI

wnodom on 2004-06-25T15:49:38

Isn't the Python answer to CPAN the Vaults of Parnassus?

Re:PyPI

tinman on 2004-06-26T20:55:30

thought it was rarely (never?) updated.. hmm, browsing through it now, I think my information is what needs updating..*grin*

Re:PyPI

tinman on 2004-06-26T20:54:48

Hmm, this guy knows about the PyPI :)