Bryan  <[EMAIL PROTECTED]> wrote:
> >>> s = '\x00'
> >>> s[0] == chr(0)
>True

That's a little excessive when:

>>> s = '\0'
>>> s[0] == chr(0)
True

Oh, and to reassure the OP that that null really is *in* the string:

>>> len(s)
1

-- 
\S -- [EMAIL PROTECTED] -- http://www.chaos.org.uk/~sion/
  ___  |  "Frankly I have no feelings towards penguins one way or the other"
  \X/  |    -- Arthur C. Clarke
   her nu becomeþ se bera eadward ofdun hlæddre heafdes bæce bump bump bump
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to