Return new rrule with same attributes except for those attributes given new values by whichever keyword arguments are specified.
(self, **kwargs)
| 760 | return '\n'.join(output) |
| 761 | |
| 762 | def replace(self, **kwargs): |
| 763 | """Return new rrule with same attributes except for those attributes given new |
| 764 | values by whichever keyword arguments are specified.""" |
| 765 | new_kwargs = {"interval": self._interval, |
| 766 | "count": self._count, |
| 767 | "dtstart": self._dtstart, |
| 768 | "freq": self._freq, |
| 769 | "until": self._until, |
| 770 | "wkst": self._wkst, |
| 771 | "cache": False if self._cache is None else True } |
| 772 | new_kwargs.update(self._original_rule) |
| 773 | new_kwargs.update(kwargs) |
| 774 | return rrule(**new_kwargs) |
| 775 | |
| 776 | def _iter(self): |
| 777 | year, month, day, hour, minute, second, weekday, yearday, _ = \ |