New submission from Su Zhu <[email protected]>:
The filter become empty after serving as an argument of list(). Python 3.6.7 (default, Oct 22 2018, 11:32:17) [GCC 8.2.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> a = filter(lambda x:x, [1,2,3]) >>> list(a) [1, 2, 3] >>> list(a) [] ---------- components: Demos and Tools messages: 348864 nosy: zhusu.china priority: normal severity: normal status: open title: list(filter) returns [] ??? type: behavior versions: Python 3.6 _______________________________________ Python tracker <[email protected]> <https://bugs.python.org/issue37739> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
