~cjwatson/storm/py3-dict

  • Committer: Colin Watson
  • Date: 2019-08-11 09:48:05 UTC
  • Revision ID: cjwatson@canonical.com-20190811094805-wcnd0h1j2gjpix0p
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.
Filename Latest Rev Last Changed Committer Comment Size
..
dev 424.2.1 12 years ago David Britton Adding some dev setup scripts. Diff
storm 1 17 years ago Gustavo Niemeyer Adding initial infrastructure. Diff
tests 1 17 years ago Gustavo Niemeyer Adding initial infrastructure. Diff
.bzrignore 487.2.1 4 years ago Colin Watson Add tox testing support. 288 bytes Diff Download File
LICENSE 129 16 years ago Gustavo Niemeyer Added LGPL version 2.1 in the LICENSE file, and a 25.9 KB Diff Download File
Makefile 487.2.1 4 years ago Colin Watson Add tox testing support. 740 bytes Diff Download File
MANIFEST.in 487.2.1 4 years ago Colin Watson Add tox testing support. 153 bytes Diff Download File
NEWS 507.1.1 4 years ago Colin Watson Wrap DB-API exceptions rather than injecting virtu 24.7 KB Diff Download File
README 480.2.2 7 years ago Alberto Donato Drop extra space. 6.2 KB Diff Download File
setup.cfg 413 12 years ago Barry Warsaw Add .tar.gz format. 32 bytes Diff Download File
File setup.py 500.1.1 4 years ago Colin Watson Use zope.interface class decorators rather than cl 2.1 KB Diff Download File
File test 485.1.1 4 years ago Colin Watson Work around circular import bug in twisted.trial.r 2.4 KB Diff Download File
TODO 274 15 years ago Gustavo Niemeyer Updated TODO file with Gavin Panella's suggestion 2.4 KB Diff Download File
tox.ini 500.3.1 4 years ago Colin Watson Fix reversed logic for (no)cextensions factors in 354 bytes Diff Download File