Demo entry 6718268



Submitted by anonymous on Mar 03, 2018 at 12:00
Language: Python 3. Code size: 260 Bytes.

class Descriptor(object):  
    def __get__(self, obj, type=None):  
            return 'get', self, obj, type  
    def __set__(self, obj, val):  
        print 'set', self, obj, val  
    def __delete__(self, obj):  
        print 'delete', self, obj  

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).