Did I find the right examples for you? yes no

All Samples(9)  |  Call(5)  |  Derive(0)  |  Import(4)

src/s/y/Sypy-HEAD/objspace/std/listobject.py   Sypy(Download)
from pypy.objspace.std import slicetype
from pypy.interpreter import gateway, baseobjspace
from pypy.rlib.objectmodel import instantiate, specialize, newlist_hint
from pypy.rlib.listsort import make_timsort_class
from pypy.rlib import rerased, jit, debug
    def get_empty_storage(self, sizehint):
        if sizehint == -1:
            return self.erase([])
        return self.erase(newlist_hint(sizehint))

src/s/y/Sypy-HEAD/interpreter/baseobjspace.py   Sypy(Download)
from pypy.tool.cache import Cache
from pypy.tool.uid import HUGEVAL_BYTES
from pypy.rlib.objectmodel import we_are_translated, newlist_hint,\
from pypy.rlib.debug import make_sure_not_resized
                items = newlist_hint(lgt_estimate)
            except MemoryError:
                items = [] # it might have lied

src/s/y/Sypy-HEAD/rpython/test/test_rlist.py   Sypy(Download)
    def test_hints(self):
        from pypy.rlib.objectmodel import newlist_hint
        strings = ['abc', 'def']
        def f(i):
            z = strings[i]
            x = newlist_hint(sizehint=13)

src/s/y/Sypy-HEAD/jit/metainterp/test/test_list.py   Sypy(Download)
import py
from pypy.rlib.objectmodel import newlist_hint
from pypy.rlib.jit import JitDriver
from pypy.jit.metainterp.test.support import LLJitMixin, OOJitMixin
        def f(i):
            l = newlist_hint(i)
            l[0] = 55
            return len(l)
        def f(i):
            while i > 0:
                l = newlist_hint(5)