Fixing the code is fine with me, does someone want to help get that patch upstream into CPython so we don't have to worry about losing our modifications when we upgrade the stdlib?
Alex On Fri, Aug 30, 2013 at 9:47 AM, Carl Friedrich Bolz <cfb...@gmx.de> wrote: > On 30/08/13 15:09, Alex Gaynor wrote: > > Hi Carl, > > > > I wonder if there's some sub-set of cases we can still unroll in. The > > particular code this was for is: > > > https://bitbucket.org/pypy/pypy/src/default/lib-python/2.7/uuid.py#cl-130. > > This is a completely indirect and way too clever way to express what is > meant. I have absolutely no pity for this code being slow. Let's > rewrite it to simply be more explicit, even if it's a few lines longer. > > > I wonder if there are cases where the list is both virtual *and* we > > aren't able to constant fold some of the space.eq_w()? > > Yes, there can be, it's easy to write. Even the uuid case has the > combinatorial problem, it's just that we expect people to not pass in > random combinations of arguments. > > Cheers, > > Carl Friedrich > -- "I disapprove of what you say, but I will defend to the death your right to say it." -- Evelyn Beatrice Hall (summarizing Voltaire) "The people's good is the highest law." -- Cicero GPG Key fingerprint: 125F 5C67 DFE9 4084
_______________________________________________ pypy-dev mailing list pypy-dev@python.org http://mail.python.org/mailman/listinfo/pypy-dev