marklists at mceahern.com
Thu Jan 30 16:37:08 CET 2003
> for x in aslist(list):
> How aslist is written is obviously quite secondary (at least,
> I _hope_ that's obvious...) -- all of its USES will be just as
> neat as the above example.
As a complement to what Alex wrote, I'd suggest writing unit tests that
document how you expect aslist to work with various types; e.g.,
s = "foo"
alist = [for x in aslist(s)]
More information about the Python-list