Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
kilink
on Feb 7, 2016
|
parent
|
context
|
favorite
| on:
Records: Python library for making raw SQL queries...
If this were a big deal, it could be optimized using something like a key-sharing dict implementation [1]. You can keep the dict interface to accommodate column names that aren't valid identifiers, and avoid most of the memory overhead.
[1]
https://www.python.org/dev/peps/pep-0412/
jstimpfle
on Feb 7, 2016
[–]
python-sqlite3's RowFactory does this as well.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
[1] https://www.python.org/dev/peps/pep-0412/