Skip to content

Instantly share code, notes, and snippets.

Nicolas Vivet nizox

Block or report user

Report or block nizox

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
View gist:3561289
>>> def a(order):
... todo = []
... for i in order:
... def g(i):
... return lambda x: x[i]
,,, todo.append(g(i))
... def b(x):
... return [do(x) for do in todo]
... return b
View gist:3176429
class User(Document):
id = IntegerField(aliases=["_id"])
name = StringField()
user = User(name="test")
_id = db.user.insert(user)
user.update_from_dict({ "_id": _id })
class SomeOtherData(Document):
uniqueid = StringField(aliases=["_id"])
You can’t perform that action at this time.