Closed ml31415 closed 11 months ago
"Hello"...
So, please, feel free to fork and create a project with all the bells and whistles you need. but i'm not interested AT ALL by someone introducing so much criticism at first without knowing the project history and goals, and without having looking at similar bugs which were answered.
While considering to use
croniter
for my own projects I had a closer look at the source code. Things that came to my mind:croniter
is currently a god-class anti-pattern. It contains many@classmethod
calls and constants, that probably would make more sense as module constants and plain / private functions instead of being part of the class.class CronIter
and a constructor functioncroniter
, preserving the same interface as currently presented while sticking with PEP8 naming. All the setup / string parsing code could go to the constructor function then.ret_type
keyword should be part of the init.get_next
has astart_time
argument,get_prev
doesn't. This should be symmetrical.If there is any interest in these changes, I'd be happy to provide some patches.