Skip to content

Instantly share code, notes, and snippets.

Working from home

Elmar Zander ezander

Working from home
Block or report user

Report or block ezander

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
ezander / gist:5108122
Created Mar 7, 2013
c++ class layout plain
View gist:5108122
#include <iostream>
using namespace std;
class A {
int x;
void f() {};
ezander / gist:1234618
Created Sep 22, 2011
decorator with change of docstring
View gist:1234618
import functools
import unittest
from pydoc import render_doc
def returns(t):
def checktype(func):
def checked_func(*args, **kwargs):
rval = func(*args, **kwargs)
if not isinstance(rval, t):
raise TypeError("Return type is not of type: int but of type "
You can’t perform that action at this time.