> >
> >>>> from sqlalchemy import *
> >>>> db = create_engine('mysql://web:[EMAIL PROTECTED]/db_name')
> >>>> metadata = MetaData()
> >
> >>>> metadata.bind(db)
> > TypeError: 'NoneType' object is not callable
> >
> > However this still works:
> > metadata = MetaData(db)
> >
> > The tutorial still says the two are equivalent, so I guess something's
> > fishy?
> >
> 
> the correct syntax is metadata.bind = db.    Im not seeing  
> metadata.bind(db) anywhere ?

Well that's what I get for trying to stay up as late as my studying
girlfriend. My sincere apologies! :/

Sheepish Iain


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalchemy@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to