X-Git-Url: https://git.llucax.com/software/pymin.git/blobdiff_plain/72406621d84a39c402cbdb36224c880daef1d087..6f9f028c43f77c76a0ac6d4f4f7223e5c6e2ba64:/seqtools.py?ds=sidebyside diff --git a/seqtools.py b/seqtools.py index 13e6eac..d3de929 100644 --- a/seqtools.py +++ b/seqtools.py @@ -92,6 +92,8 @@ def as_table(obj): if hasattr(i, '__iter__'): return obj return (obj,) + else: + return ((),) # empty table if __name__ == '__main__': @@ -128,3 +130,5 @@ if __name__ == '__main__': print f(dict(a=1, b=2)) + print f([]) +