E. Madison Bray wrote:
if I have a function that used to take, say, a list as an argument, and it receives a `map` object, I now have to be able to deal with map()s, and I may have checks I want to perform on the underlying iterables before, say, I try to iterate over the `map`.
This sounds like a backwards way to address the issue. If you have a function that expects a list in particular, it's up to its callers to make sure they give it one. Instead of maing the function do a bunch of looking before it leaps, it would be better to define something like def lmap(f, *args): return list(map(f, *args)) and then replace 'map' with 'lmap' elsewhere in your code. -- Greg _______________________________________________ Python-ideas mailing list Python-ideas@python.org https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/