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

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Fredrik Lundh

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

    dudeja.rajat@gm ail.com wrote:
    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:

    Python is an easy to learn, powerful programming language. It has efficient high-level data structures and a simple but effective approach to object-oriented programming. Python’s elegant syntax an...


    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:

    Abstract This book will help you to learn the Python programming language, whether you are new to computers or are an experienced programmer.


    </F>

Working...