Skip to content

Instantly share code, notes, and snippets.

View funkaoshi's full-sized avatar
🏠
Working from home

Ramanan Sivaranjan funkaoshi

🏠
Working from home
View GitHub Profile
@funkaoshi
funkaoshi / classproperty.py
Created August 10, 2015 18:28
classproperty
class classproperty(property):
"""
Marries @property and @classmethod
Why doesn't python have this? Grr..
"""
def __new__(cls, fget, *args):
return super(classproperty, cls).__new__(cls, classmethod(fget), *args)
def __get__(self, obj, type=None):
return self.fget(type)
<opml version="2.0">
<body>
<outline text="Subscriptions" title="Subscriptions">
<outline xmlUrl='https://1d30.wordpress.com/feed/' />
<outline xmlUrl='https://3toadstools.blogspot.com/feeds/posts/default?alt=rss' />
<outline xmlUrl='https://9and30kingdoms.blogspot.com/feeds/posts/default?alt=rss' />
<outline xmlUrl='https://abominablefancy.blogspot.com/feeds/posts/default?alt=rss' />
<outline xmlUrl='https://aeonsnaugauries.blogspot.com/feeds/posts/default?alt=rss' />
<outline xmlUrl='https://alexschroeder.ch/wiki/feed/full/RPG' />
<outline xmlUrl='https://antiledo.blogspot.com/feeds/posts/default?alt=rss' />