News for hackers. Stuff that matters.
Re:New Python Idioms by jeffmiller on Sunday October 24, 2010 @04:00AM (#1825601)
Armin Ronacher is a stone cold badass. He created Flask: http://flask.pocoo.org/
Re:New Python Idioms by drats on Sunday October 24, 2010 @09:48AM (#1826103)
Indeed he is an ultimate badass. Flask is really great. But, especially given how beautiful the Flask docs are, I don't know what makes people think Scribd is a good idea when there are shared google docs, everyone has libre office or ms office or you can print to PDF. The last slide says he will put the slides on his personal site which has been down for a while so I guess that might be a reason.
Re:New Python Idioms by usrusrusr on Sunday October 24, 2010 @02:47PM (#1826854)
> Flask is really great. But, especially given how beautiful the Flask docs are, ...

Which are generated with sphinx, which is a doc tool he created ...

I am smelling a bit of Knuth here. (No good typesetting, so lets create Tex.) :)

Re:New Python Idioms by irahul on Monday October 25, 2010 @11:07AM (#1830110)
A bit of Knuth, maybe. But this isn't unique to Knuth - many people have created tools when they weren't satisfied with the existing tools.

All frameworks would fall under "no good x, let's create x". He is a good programmer for sure, but comparisons with Knuth are a bit far fetched:).

Re:New Python Idioms by jeffmiller on Sunday October 24, 2010 @05:36PM (#1827378)
Yup. He's also creating a replacement for the Python logging module.
Re:New Python Idioms by twp on Sunday October 24, 2010 @10:29AM (#1826173)
In the section on the with statement he says

> Please don't abuse with for XML/HTML generation

Being guilty of such abuse, I would like to know why not? (I genuinely want to know!)

Re:New Python Idioms by ljlolel on Sunday October 24, 2010 @03:12PM (#1826925)
There is no reason because it's not true. I've used the with statement to help with auto-closing tags (and just readability) in templating and it helps a lot. I've used in on sites which received over 1 million hits a month. It's been used on over a dozen sites and projects from hundreds of lines of codes and even into the tens of thousands of lines of code.

http://news.ycombinator.com/item?id=1605249

Re:New Python Idioms by drallison on Monday October 25, 2010 @11:11AM (#1830126)
This is an example of why you should never use "new" in a title. This slide set is about Python 2.3's new features which are, at this point in time, old news. But the examples are still informative.