Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block niconico25

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
class Line(object):
def __init__(self, a, b):
self.a = a
self.b = b
def __eq__(self, other):
return all((
self.a == other.a,
self.b == other.b
class ClassMethod(object):
"Emulate PyClassMethod_Type() in Objects/funcobject.c"
def __init__(self, f):
self.f = f
def __get__(self, obj, klass=None):
if klass is None:
klass = type(obj)
def newfunc(*args):
You can’t perform that action at this time.