Python Gangsta Rap

12 views
Skip to first unread message

Garrett Smith

unread,
Jul 14, 2011, 11:44:58 PM7/14/11
to Chicago Erlang Users Group
This is totally spam, nothing to do with Erlang, but you might enjoy
it nonetheless.

http://shardingdevnull.com/python-gangsta-rap

Garrett

Tristan Sloughter

unread,
Jul 14, 2011, 11:50:19 PM7/14/11
to ce...@googlegroups.com
Where the Eralng Gangsta Rap!


--
You received this message because you are subscribed to the Google Groups "Chicago Erlang User Group" group.
To post to this group, send email to ce...@googlegroups.com.
To unsubscribe from this group, send email to ceug+uns...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/ceug?hl=en.


Garrett Smith

unread,
Jul 14, 2011, 11:52:04 PM7/14/11
to ce...@googlegroups.com
Python was my practice language ;)

Tristan Sloughter

unread,
Jul 14, 2011, 11:52:54 PM7/14/11
to ce...@googlegroups.com
Hah, it is hilarious by the way!

But Python does not keep it simple ;)

Case in point:

    def __new__(clazz, *args, **kwargs):
        if not clazz.__instance:
            clazz.__instance = super(Se, clazz).__new__(
                clazz, *args, **kwargs)
            clazz.__instance.__singleton_init()
        return clazz.__instance

Garrett Smith

unread,
Jul 15, 2011, 12:00:10 AM7/15/11
to ce...@googlegroups.com
Thanks!

Watch for a Ruby/Python rap battle. I'll use that meta programming
snippet to rip Python :)

On Thu, Jul 14, 2011 at 9:52 PM, Tristan Sloughter

Reply all
Reply to author
Forward
0 new messages