Christopher Barker wrote:
wouldn't it? once you got to an object that couldn't be iterated, you'd know you had an atomic value.
I'm thinking of things like a function to recursively flatten a nested list. You probably want it to stop when it gets to a string, and not flatten the string into a list of characters. -- Greg _______________________________________________ Python-ideas mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/[email protected]/message/SERL4HR6WC56ZXTNPWBYRGDQLQ7324L2/ Code of Conduct: http://python.org/psf/codeofconduct/
