This project is archived and is in readonly mode.

#177 new
Laurent Fasnacht

DictRow should behave like an OrderedDict?

Reported by Laurent Fasnacht | August 18th, 2013 @ 02:14 PM | in psycopg3

I think RowDict should behave like an OrderedDict. In particular, I would expect the following to be True:

[row_dict[k] for k in row_dict.keys()] == list(row_dict)

Comments and changes to this ticket

  • Daniele Varrazzo

    Daniele Varrazzo August 20th, 2013 @ 08:55 AM

    • Tag set to feature

    It's a sort of reasonable expectation, yes. If you provide the implementation for it we would merge it to devel. The best way to contribute is to open a feature branch on a github clone.

    Current devel supports Python from 2.5 to 3.3. The branch should include tests and documentation.

    I expect the new feature to not slow down the current implementation.

  • Daniele Varrazzo

    Daniele Varrazzo May 5th, 2014 @ 11:06 PM

    • Milestone set to psycopg3

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

<b>WARNING:</b> the informations in this tracker are archived. Please submit new tickets or comments to <a href="https://github.com/psycopg/psycopg2/issues">the new tracker</a>.
<br/>
Psycopg is the most used PostgreSQL adapter for the Python programming language. At the core it fully implements the Python DB API 2.0 specifications. Several extensions allow access to many of the features offered by PostgreSQL.

Shared Ticket Bins

Tags

Pages