trove/rsdns/client
ChangBo Guo(gcb) 0ee91a5854 Use dict comprehensions instead of dict constructor
PEP-0274 introduced dict comprehensions to replace dict constructor
with a sequence of key-value pair, these are benefits copied
from [1]:
  The dictionary constructor approach has two distinct disadvantages
  from the proposed syntax though.  First, it isn't as legible as a
  dict comprehension.  Second, it forces the programmer to create an
  in-core list object first, which could be expensive.
There is deep dive about PEP-0274[2] and basic tests about
performance[3].
Note: This commit doesn't handle dict constructor with kwagrs.

[1]http://legacy.python.org/dev/peps/pep-0274/
[2]http://doughellmann.com/2012/11/12/the-performance-impact-of-using-dict-instead-of-in-cpython-2-7-2.html
[3]http://paste.openstack.org/show/154798/

Change-Id: I45d0c289ecaf63a343fc9ad935cf2893d67d938a
2015-01-09 22:36:37 +08:00
..
__init__.py s/OpenStack LLC/OpenStack Foundation/ in Copyright. 2013-04-29 18:33:42 -04:00
dns_client.py Rename from reddwarf to trove. 2013-06-24 14:11:15 -07:00
domains.py s/OpenStack LLC/OpenStack Foundation/ in Copyright. 2013-04-29 18:33:42 -04:00
exceptions.py Use dict comprehensions instead of dict constructor 2015-01-09 22:36:37 +08:00
future.py Simple per-user instance quota checking in the create call. PEP8 fixes. 2012-06-21 17:00:25 -05:00
records.py Use six.moves.urllib.parse instead of urlparse 2014-02-21 09:34:39 +08:00