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 -
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
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
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'
>
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' <=