I hereby claim:
- I am npilon on github.
- I am npilon (https://keybase.io/npilon) on keybase.
- I have a public key ASBiU6E2WYyVG4ICh2hQ-W7FIYECSYRbRoRTEppEIeHRLAo
To claim this, I am signing this object:
from sqlalchemy import Column, ForeignKey, Integer, and_, create_engine | |
from sqlalchemy.ext.declarative import declarative_base | |
from sqlalchemy.orm import ( | |
backref, foreign, relationship, scoped_session, sessionmaker | |
) | |
Base = declarative_base() | |
"""Celery master is too aggressive about suppressing .get() in eager tasks. | |
test performs no synchronous operations, but fails in eager application:: | |
python minimal_eager_chain.py shell --config=minimal_eager_chain | |
test.delay().get() | |
""" | |
import celery | |
from celery.canvas import chord |
"""Demonstrate inconsistent chord header result values: | |
Run by:: | |
pip install celery redis | |
python minimal_chord_chain.py worker --loglevel INFO --config=minimal_chord_chain | |
# Separate shell | |
python minimal_chord_chain.py shell --config=minimal_chord_chain |
"""Demonstrate how SQLAlchemy 1.2 breaks pickling of ORM objects. | |
This somewhat-contrived example shows a query scenario where: | |
- We have an object (Garply) | |
- It is related to a table of Foos | |
- Foos uses single-table polymorphism to hold multiple types | |
- We query a Garply and eager-load some of its Foos | |
- We then pickle this Garply and its Foos for hand-off to some other process. | |
Since it already has its Foos loaded, we know it won't need further database |
I hereby claim:
To claim this, I am signing this object:
def foo(a, b, c): | |
print 'a', a | |
print 'b', b | |
print 'c', c | |
foo(1, 2, 3) | |
foo(a=1, b=2, c=3) | |
foo(c=1, a=3, b=2) | |
foo(1, b=2, c=3) |