lp:~cjwatson/storm/py3-dict
Created by
Colin Watson
and last modified
- Get this branch:
- bzr branch lp:~cjwatson/storm/py3-dict
Only
Colin Watson
can upload to this branch. If you are
Colin Watson
please log in for upload directions.
Branch merges
Propose for merging
No branches
dependent on this one.
- Kristian Glass (community): Approve
- Storm Developers: Pending requested
-
Diff: 385 lines (+49/-31)14 files modifiedstorm/cache.py (+6/-3)
storm/cextensions.c (+1/-1)
storm/expr.py (+1/-1)
storm/info.py (+3/-1)
storm/references.py (+4/-2)
storm/sqlobject.py (+6/-4)
storm/store.py (+3/-3)
storm/tz.py (+3/-1)
storm/uri.py (+2/-1)
storm/zope/testing.py (+4/-2)
storm/zope/zstorm.py (+4/-3)
tests/mocker.py (+8/-7)
tests/store/base.py (+1/-1)
tests/zope/testing.py (+3/-1)
Branch information
Recent revisions
- 511. By Colin Watson
-
Handle Python 3's changes to dict iteration methods.
In most cases I opted for a somewhat pedantic translation of d.iterfoo() to
six.iterfoo(d) and d.foo() to list(six.iterfoo( d)), since there are enough
cases where this matters either for performance or to avoid iterating over a
dictionary while modifying it that it's simplest to be consistent.There were a few cases where the Python 2 code was iterating over something
like d.items() when it didn't need to do a copy; I left those cases alone,
since they'll just become slightly more efficient under Python 3.
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)
- Stacked on:
- lp:storm