Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^10: RFC: Simulating Ruby's "yield" and "blocks" in Perl (Python)

by LanX (Saint)
on Apr 27, 2013 at 15:07 UTC ( [id://1030977]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    lanx@nc10-ubuntu:~$ python
    Python 2.5.2 (r252:60911, Jan 20 2010, 23:16:55) 
    ...
        test(lambda a: print("You are in block %s" % a))
                           ^
    SyntaxError: invalid syntax
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1030977]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (2)
As of 2024-04-15 12:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found