/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/_static_tuple_py.py

  • Committer: John Arbash Meinel
  • Date: 2009-10-12 17:07:05 UTC
  • mto: This revision was merged to the branch mainline in revision 4736.
  • Revision ID: john@arbash-meinel.com-20091012170705-g1v51yp2kfve4f0r
Add a comment to help Matthew Nordhoff understand why we have:

_empty_tuple = None
_empty_tuple = StaticTuple()

Show diffs side-by-side

added added

removed removed

Lines of Context:
52
52
        return _interned_tuples.setdefault(self, self)
53
53
 
54
54
 
 
55
# Have to set it to None first, so that __new__ can determine whether
 
56
# the _empty_tuple singleton has been created yet or not.
55
57
_empty_tuple = None
56
58
_empty_tuple = StaticTuple()
57
59
_interned_tuples = {}