Implicit lists
Erik Max Francis
max at alcyone.com
Thu Jan 30 21:27:00 EST 2003
Dale Strickland-Clark wrote:
> In other words, I want to be able to treat an argument of arbitrary
> type as a list of 1 if it isn't already a list.
>
> Has anyone got a neater way of doing this?
Unfortunately, this technique excludes things that have sequences
interfaces but aren't literally lists or tuples.
--
Erik Max Francis / max at alcyone.com / http://www.alcyone.com/max/
__ San Jose, CA, USA / 37 20 N 121 53 W / &tSftDotIotE
/ \ The only way to get rid of a temptation is to yield to it.
\__/ Oscar Wilde
Bosskey.net: Quake III Arena / http://www.bosskey.net/q3a/
A personal guide to Quake III Arena.
More information about the Python-list
mailing list