Why there is no __dict__
attribute in a pyodbc.Row
instance? __dict__
is a built-in attribute in every Python object; if it was specifically removed by developers, what for?
Asked
Active
Viewed 145 times
0

jonrsharpe
- 115,751
- 26
- 228
- 437
-
Perhaps it uses `__slots__`, for the reasons outlined in e.g. http://stackoverflow.com/q/472000/3001761. **Edit**: or because [it's not a Python class, it's C++](https://github.com/mkleehammer/pyodbc/blob/master/src/row.cpp#L17). – jonrsharpe Nov 17 '16 at 14:35
-
@jonrsharpe, thank you. Those two facts explain this solution very good. – Nov 17 '16 at 14:44