[sqlalchemy] Re: How to map columns into a tuple using SQLAlchemy?

2009-03-13 Thread Stephen Emslie
You could try changing your _limit tuple to a property on the class that returns the tuple you want. For example: class Result(object): def get_limit(self): return (self.upper, self.lower, self.nominal) _limit = property(get_limit) Is this what you were looking for? Stephen Emslie

[sqlalchemy] Re: How to map columns into a tuple using SQLAlchemy?

2009-03-13 Thread batraone
Hi Stephen, Not exactly what I'm looking for (unless I misunderstand you) as I'd like to not have the individual attributes (lower, nominal, upper) in the class directly and carry just the _limits variable. I have a class Result as follows: class Result: def __init__(self):