On 16/03/2011 21:01, farcat wrote:
I have an error i cant figure out (likely a beginners error):
Beginners should not be using metaclasses.
What's your use case here?
Chris
--
Simplistix - Content Management, Batch Processing & Python Consulting
- http://www.simplistix.co.uk
--
Y
> -Original Message-
> From: sqlalchemy@googlegroups.com [mailto:sqlalchemy@googlegroups.com]
> On Behalf Of farcat
> Sent: 16 March 2011 21:01
> To: sqlalchemy
> Subject: [sqlalchemy] trouble with metaclass
>
> I have an error i cant figure out (
I have an error i cant figure out (likely a beginners error):
#
Base = declarative_base()
class tablemeta(DeclarativeMeta):
def __new__(mcls, name):
return DeclarativeMeta.__new__(mcls, name, (Base,), {})
def _init__(cls, nam