Last active
August 29, 2015 13:55
-
-
Save ritksm/8767690 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
__author__ = 'Jack River' | |
class Radio: | |
def __init__(self, user=None): | |
self.user = user | |
def play_radio(self, fm): | |
if user: | |
play_fav() | |
else: | |
play_random() | |
# some other example | |
class Demo: | |
@classmethod | |
def from_string(self, string): | |
pass | |
@classmethod | |
def debug(cls, msg): | |
print msg + 'debug' | |
@classmethod | |
def warn(cls, msg): | |
print msg + 'warn' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment