How is Python's iterator unpacking (star unpacking) implemented (or, what magic methods are involved in unpacking a custom iterator?)

后端 未结 0 531
我在风中等你
我在风中等你 2020-12-24 00:39

I am writing a class that defines __iter__ and __len__, where the value of __len__ depends on the iterator returned by __iter__<

相关标签:
回答
  • 消灭零回复
提交回复
热议问题