simple array question

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • purna chandra

    #1

    simple array question

    Hello,
    I have a simple question.Hoping not to take much of
    your valuable time...:-). I am trying to get the data
    from a string, and am wondering if I get

    from the array :
    array('c',
    '\x00=http://groups.google.c om/intl/en/googlegroups/tour/index.html'))

    Thanks in advance,

    regards,
    purna.

  • Daniel Schüle

    #2
    Re: simple array question

    purna chandra wrote:[color=blue]
    > Hello,
    > I have a simple question.Hoping not to take much of
    > your valuable time...:-). I am trying to get the data
    > from a string, and am wondering if I get
    > http://groups.google.com/intl/en/goo...our/index.html
    > from the array :
    > array('c',
    > '\x00=http://groups.google.c om/intl/en/googlegroups/tour/index.html'))
    >
    > Thanks in advance,
    >
    > regards,
    > purna.
    >[/color]

    i am not sure i understand your question right
    if not just ignore

    import array
    x = array.array("c" , "test")
    s = x.tostring()
    s # => "test"


    hth, Daniel

    Comment

    • Daniel Schüle

      #3
      Re: simple array question

      purna chandra wrote:[color=blue]
      > Hello,
      > I have a simple question.Hoping not to take much of
      > your valuable time...:-). I am trying to get the data
      > from a string, and am wondering if I get
      > http://groups.google.com/intl/en/goo...our/index.html
      > from the array :
      > array('c',
      > '\x00=http://groups.google.c om/intl/en/googlegroups/tour/index.html'))
      >
      > Thanks in advance,
      >
      > regards,
      > purna.
      >[/color]

      i am not sure i understand your question right
      if not just ignore

      import array
      x = array.array("c" , "test")
      s = x.tostring()
      s # => "test"


      hth, Daniel

      Comment

      Working...