From 60a3d7c6573c0f60410f0e4e6b7ba8caf3c7455f Mon Sep 17 00:00:00 2001 From: Christoph Groth <christoph.groth@cea.fr> Date: Thu, 3 Dec 2015 17:08:24 +0100 Subject: [PATCH] remove notice about possible optimization that is not worth it (I tried) --- kwant/builder.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/kwant/builder.py b/kwant/builder.py index faf37135..acdeb92d 100644 --- a/kwant/builder.py +++ b/kwant/builder.py @@ -881,9 +881,6 @@ class Builder: def __setitem__(self, key, value): """Set a single site/hopping or a bunch of them.""" - # TODO: Once we can take Python 3 for granted, get rid of the if-clause - # inside the loop by defining a special func that rebinds itself upon - # the first call. func = None for sh in self.expand(key): if func is None: @@ -927,9 +924,6 @@ class Builder: def __delitem__(self, key): """Delete a single site/hopping or bunch of them.""" - # TODO: Once we can take Python 3 for granted, get rid of the if-clause - # inside the loop by defining a special func that rebinds itself upon - # the first call. func = None for sh in self.expand(key): if func is None: -- GitLab