Connecting Tech Pros Worldwide Help | Site Map

Re: WindowsXP/ CTypes - How to convert ctypes array to a string?

 
LinkBack Thread Tools Search this Thread
  #1  
Old August 21st, 2008, 07:05 AM
dudeja.rajat@gmail.com
Guest
 
Posts: n/a
Default Re: WindowsXP/ CTypes - How to convert ctypes array to a string?

On Tue, Aug 19, 2008 at 8:14 AM, Fredrik Lundh <fredrik@pythonware.comwrote:
Quote:
dudeja.rajat@gmail.com wrote:
>
Quote:
>I also add the letter 'v' same as you suggested. However, I'm looking
>to store this into some variable ( that variable could be be a string,
>tuple or anything, Im not sure which is the suited one)
>
the expression gives you a string object; you'll store it in a variable in
the same way as you'd store any other expression result in Python.
>
version = "v%d.%d.%d.%d" % tuple(version)
>
but when you find yourself getting stuck on things like this, it might a
good idea to take a step back and read the tutorial again:
>
http://docs.python.org/tut/tut.html
>
pay special attention to the parts that discuss how variables work in
Python.
>
if you prefer some other entry level tutorial, the following is said to be
really good:
>
http://www.ibiblio.org/g2swap/byteofpython/read/
>
</F>
>
--
http://mail.python.org/mailman/listinfo/python-list
>
Thanks Fredrik for your support.


Regrads,
Rajat

 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,662 network members.