[Sqlalchemy-tickets] Issue #3475: OrderedProperties suffers from clashes between table columns name
Brought to you by:
zzzeek
|
From: Alessandro M. <iss...@bi...> - 2015-07-04 23:50:06
|
New issue 3475: OrderedProperties suffers from clashes between table columns names and its own methods https://bitbucket.org/zzzeek/sqlalchemy/issue/3475/orderedproperties-suffers-from-clashes Alessandro Molina: OrderedProperties provides the __getattr__ method which allows to lookup for column information using the dot notation, the issue is that in case my column was actually called like a method of OrderedProperties it returns the method instead of the column. This is probably not a bug, but it's an unexpected behaviour in most cases. See https://github.com/TurboGears/tg2/issues/64 for origin of this issue. Probably dot notation access should be deprecated to avoid confusion and only allow dictionary stile access? |