¡@

Home 

python Programming Glossary: dto

How to integrate SQLAlchemy and a subclassed Numpy.ndarray smoothly and in a pythonic way?

http://stackoverflow.com/questions/8940802/how-to-integrate-sqlalchemy-and-a-subclassed-numpy-ndarray-smoothly-and-in-a-pyt

class DTONumpy Base __tablename__ 'dtos_numpy' id sa.Column sa.Integer primary_key True amount sa.Column.. relationship Container uselist False backref 'dto_numpy_objects' def __init__ self amount name None self.amount.. np.ndarray _DTO DTONumpy def __new__ cls amount name '' dto cls._DTO amount amount name name return cls.newByDTO dto @classmethod..