Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(1)  |  Call(1)  |  Derive(0)  |  Import(0)

src/i/n/infpy-0.4.13/infpy/dp/infinite_multinomials.py   infpy(Download)
    def __getitem__(self, idx):
        "Get the k'th item, extending lazily if necessary."
        while len(self) <= idx:
            top = self.extender()
            logging.debug("Extending lazy infinite (%d) sequence with %s. Now length = %d.", id(self), str(top), len(self))