Rev 4772: (jam) Use __slots__ for the pure-python StaticTuple in file:///home/pqm/archives/thelove/bzr/%2Btrunk/

Canonical.com Patch Queue Manager pqm at pqm.ubuntu.com
Tue Oct 27 13:32:57 GMT 2009


At file:///home/pqm/archives/thelove/bzr/%2Btrunk/

------------------------------------------------------------
revno: 4772 [merge]
revision-id: pqm at pqm.ubuntu.com-20091027133256-ppg47nq6cvqdycze
parent: pqm at pqm.ubuntu.com-20091026155954-r9gw2rizkikw7cg7
parent: john at arbash-meinel.com-20091027033916-ol3lz84kd2ts9h5b
committer: Canonical.com Patch Queue Manager <pqm at pqm.ubuntu.com>
branch nick: +trunk
timestamp: Tue 2009-10-27 13:32:56 +0000
message:
  (jam) Use __slots__ for the pure-python StaticTuple
modified:
  bzrlib/_static_tuple_py.py     _keys_type_py.py-20090908213415-o1ww98k9a8aqm0bm-1
=== modified file 'bzrlib/_static_tuple_py.py'
--- a/bzrlib/_static_tuple_py.py	2009-10-21 16:04:03 +0000
+++ b/bzrlib/_static_tuple_py.py	2009-10-27 03:39:16 +0000
@@ -24,6 +24,8 @@
 class StaticTuple(tuple):
     """A static type, similar to a tuple of strings."""
 
+    __slots__ = ()
+
     def __new__(cls, *args):
         # Make the empty StaticTuple a singleton
         if not args and _empty_tuple is not None:




More information about the bazaar-commits mailing list