[Python-Dev] python symbolizition

Pynix Wang pynix.wang at gmail.com
Fri Jun 14 15:58:59 CEST 2013


1.lambda expression

c#
a.(x, y) => x == y
b.() => SomeMethod()

ruby:
 -> {|msg| puts msg}

python can use c# like and remove "lambda" keyword.

2.global variable

ruby
$glo_var

python can use $ or @ or another and remove "global".
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20130614/3d4a456f/attachment.html>


More information about the Python-Dev mailing list