[Tutor] small problem with lists/tuples
Thomi Richards
thomi at imail.net.nz
Mon Sep 29 19:59:29 EDT 2003
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
>
> Any chance you can change what the original function returns? It
> seems to me that a function that may return single-item nested lists
> is confusing, and my inclination would be to make the function return
> something sensible, instead of trying to make sense of the mess that
> it currently returns. I'm not sure *why* this function might have
> variable levels of nesting, especially since it seems that you expect
> all of them to have only a single item, but I'd bet that it'd be
> easier to attack this problem by not building the extra levels than by
> stripping them off later.
>
unfortunately no.
The original function actually works very well for other parts of the program,
and I am using it to do something which it was not originally designed to
do ;( However, apart from the various nested list evels, it works just
fine ;)
Gregor's solutions is awesome, I think I'll just stick to that... thanks!
- --
Thomi Richards,
http://once.sourceforge.net/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
iD8DBQE/eMdh2tSuYV7JfuERAm6PAJ9CiYWGjiBONNrYtazzcsFXNIsYMACbBB0F
Hmu6imjGoo/CRVV9u6sO0Yg=
=hEmJ
-----END PGP SIGNATURE-----
More information about the Tutor
mailing list