calendar.busdaycount(wednesday, saturday) causes infinite loop in _workdaycount method, because date2wd is 5 (saturday) but self.weekdaymap[date1wd].nextworkday sets date1wd to 0 (Monday) as soon as the loop hits Friday so it never reaches to situation when date1wd == 5(Saturday)
calendar.busdaycount(wednesday, saturday) causes infinite loop in _workdaycount method, because date2wd is 5 (saturday) but self.weekdaymap[date1wd].nextworkday sets date1wd to 0 (Monday) as soon as the loop hits Friday so it never reaches to situation when date1wd == 5(Saturday)
Related code: https://github.com/antoniobotelho/py-business-calendar/blob/master/business_calendar/business_calendar.py#L412
self.weekdaymap is: