sadigaxund / pypelineer

Simplistic python framework/library for building stream-like pipelines efficiently and fast. Great for the readability and maintainability.
Apache License 2.0
1 stars 0 forks source link

IngressCore: Simpler implementation #8

Open sadigaxund opened 3 weeks ago

sadigaxund commented 3 weeks ago

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) ^^^^^^^^^^^^

sadigaxund commented 4 days ago

In case of EgressCore, lessen the implementation requirements. sometimes it's unnecesarry just to have other function if not needed.