to_iterable

  • full name: tenpy.tools.misc.to_iterable

  • parent module: tenpy.tools.misc

  • type: function

tenpy.tools.misc.to_iterable(a)[source]

If a is a not iterable or a string, return [a], else return a.