Re: [pypy-dev] JITability

2012-01-30 Thread Maciej Fijalkowski
On Mon, Jan 30, 2012 at 7:40 PM, Davide Setti wrote: > On Mon, Jan 30, 2012 at 5:05 PM, Maciej Fijalkowski > wrote: >> >> I think it does not matter, and for >> more than one reason in this particular case (on of those being that >> even though bool objects are boxed, there are only two of them -

Re: [pypy-dev] JITability

2012-01-30 Thread Davide Setti
On Mon, Jan 30, 2012 at 5:05 PM, Maciej Fijalkowski wrote: > I think it does not matter, and for > more than one reason in this particular case (on of those being that > even though bool objects are boxed, there are only two of them - True > and False) > Probably this is another question: what ab

Re: [pypy-dev] JITability

2012-01-30 Thread Maciej Fijalkowski
On Mon, Jan 30, 2012 at 5:56 PM, Benjamin Peterson wrote: > 2012/1/30 Serhat Sevki Dincer : >> Hi, >> Suppose you have a function to validate local/international phone numbers >> (one space between number groups, no space at start/end, no zero at start) >> like: >> >> def validatePhone(v): >>    i

Re: [pypy-dev] JITability

2012-01-30 Thread Benjamin Peterson
2012/1/30 Serhat Sevki Dincer : > Hi, > Suppose you have a function to validate local/international phone numbers > (one space between number groups, no space at start/end, no zero at start) > like: > > def validatePhone(v): >    if not (9 < len(v) < 19 and '0' < v[0]): # recall ' ' < '0' >        

[pypy-dev] JITability

2012-01-30 Thread Serhat Sevki Dincer
Hi, Suppose you have a function to validate local/international phone numbers (one space between number groups, no space at start/end, no zero at start) like: def validatePhone(v): if not (9 < len(v) < 19 and '0' < v[0]): *# recall ' ' < '0'* return False for c in v: if '0' <=