Inheriting automatic attributes initializer considered harmful?

Thomas Wittek mail at gedankenkonstrukt.de
Wed Oct 17 15:31:36 CEST 2007


Andrew Durdin:
>> Is there already a standard lib class doing (something like) this?
>> Or is it even harmful to do this?
> 
> It depends on your kwargs and where they're coming from.

They should come from my own code.

> Does SQLAlchemy let you get a list of column names?

Generellay, it does.
But it also generates some additional attributes dynamically that are
not directly defined as columns.
So, restricting the attributes to the columns would be too strict.

Thanks!
-- 
Thomas Wittek
Web: http://gedankenkonstrukt.de/
Jabber: streawkceur at jabber.i-pobox.net
GPG: 0xF534E231



More information about the Python-list mailing list