Writing a string.ishex function

Steven D'Aprano steve at REMOVE-THIS-cybersource.com.au
Fri Jan 15 18:34:15 EST 2010


On Fri, 15 Jan 2010 00:53:51 +0000, Steven D'Aprano wrote:

> On Thu, 14 Jan 2010 18:36:12 +0000, MRAB wrote:

>> BTW, ishex('') should return False.
> 
> 
> Only if you want to be inconsistent with other isFoo string functions:
> 
>>>> ''.isalpha()
> False

I said what???

Sorry MRAB, what I wrote there was obvious nonsense. I should be agreeing 
with you, not disagreeing!



-- 
Steven



More information about the Python-list mailing list