In a very simple example, if a user doesn't implement constructor or destructor in case (e.g. when Type=INPUT), then make sure that user could use the core without refering to the context manager protocol and just initializes the core as an instance using init. Currently, I get:
Traceback (most recent call last):
File "**", line 24, in
for number, odd_or_even in oddity:
File "**", line 101, in next
return next(self.handler)
^^^^^^^^^^^^
In a very simple example, if a user doesn't implement constructor or destructor in case (e.g. when Type=INPUT), then make sure that user could use the core without refering to the context manager protocol and just initializes the core as an instance using init. Currently, I get:
Traceback (most recent call last): File "**", line 24, in
for number, odd_or_even in oddity:
File "**", line 101, in next
return next(self.handler)
^^^^^^^^^^^^