News for hackers. Stuff that matters.
Re:I only know PHP. How do I write a Web application in Python? by Ingaz on Sunday May 06, 2012 @03:52AM (#3934478)
Python 3 is not "really that new" and Python 2.6-2.7 is not "old" in any way.

In fact we have: pre-2.4 (really old, preinstalled on old Redhats), 2.4-2.7, 3.x

Python 3 is curing problem with variable visibility (and if you do not write in "pure" functional way - you will never see this problem) and unicode strings. Other differences is not so "revolutionary".

Re:I only know PHP. How do I write a Web application in Python? by damncabbage on Sunday May 06, 2012 @08:52AM (#3934987)
> (and if you do not write in "pure" functional way - you will never see this problem)

Could you explain this a little more, please?

Re:I only know PHP. How do I write a Web application in Python? by eevee on Sunday May 06, 2012 @07:18PM (#3936760)
I assume he's talking about the `nonlocal` keyword introduced in py3, which allows overwriting names defined in outer-but-not-global scopes.
Re:I only know PHP. How do I write a Web application in Python? by Ingaz on Wednesday May 09, 2012 @06:59PM (#3950940)
Yes, eevee is right.

I'm talking about http://www.python.org/dev/peps/pep-3104

New keyword nonlocal and ability to have better closures.