simple array question

Discussion in 'Python' started by purna chandra, Nov 18, 2005.

  1. 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/googlegroups/tour/index.html
    from the array :
    array('c',
    '\x00=http://groups.google.com/intl/en/googlegroups/tour/index.html'))

    Thanks in advance,

    regards,
    purna.
     
    purna chandra, Nov 18, 2005
    #1
    1. Advertising

  2. purna chandra wrote:
    > 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/googlegroups/tour/index.html
    > from the array :
    > array('c',
    > '\x00=http://groups.google.com/intl/en/googlegroups/tour/index.html'))
    >
    > Thanks in advance,
    >
    > regards,
    > purna.
    >


    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
     
    =?ISO-8859-1?Q?Daniel_Sch=FCle?=, Nov 18, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    0
    Views:
    589
  2. Kevin Spencer

    Re: Simple Simple question!!!

    Kevin Spencer, Jun 25, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    696
    Kevin Spencer
    Jun 25, 2004
  3. Daniel Frey

    Simple Question - Simple Answer?

    Daniel Frey, Dec 28, 2004, in forum: XML
    Replies:
    4
    Views:
    873
    Daniel Frey
    Jan 12, 2005
  4. Oli

    simple simple question

    Oli, Jan 26, 2004, in forum: ASP General
    Replies:
    10
    Views:
    393
    Roland Hall
    Jan 26, 2004
  5. Peter Bailey

    simple, simple array question

    Peter Bailey, Apr 8, 2008, in forum: Ruby
    Replies:
    7
    Views:
    238
    Peter Bailey
    Apr 8, 2008
Loading...

Share This Page