Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.004 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'python.': 0.02; 'definitions': 0.07; 'subject:help': 0.08; 'correspond': 0.09; 'messing': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; 'jan': 0.12; '2.7': 0.14; '6.x': 0.16; 'ctypes.': 0.16; 'email addr:udel.edu>': 0.16; 'email name:<tjreedy': 0.16; 'reedy': 0.16; 'subject:ctypes': 0.16; 'wrote:': 0.18; 'work,': 0.20; 'help.': 0.21; 'cc:addr:python.org': 0.22; 'install': 0.23; 'mon,': 0.24; 'looks': 0.24; '(or': 0.24; 'cc:2**0': 0.24; 'header :In-Reply-To:1': 0.27; 'point': 0.28; 'dec': 0.30; 'message- id:@mail.gmail.com': 0.30; "i'm": 0.30; 'url:mailman': 0.30; 'getting': 0.31; 'ctypes': 0.31; 'another': 0.32; 'url:python': 0.33; 'subject:with': 0.35; 'possible.': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'version': 0.36; '2.6': 0.36; 'url:listinfo': 0.36; 'url:org': 0.36; 'project': 0.37; 'pm,': 0.38; 'sure': 0.39; 'url:mail': 0.40; 'new': 0.61; 'first': 0.61; 'different': 0.65; 'latest': 0.67; 'default': 0.69; 'joel': 0.91; 'subject:needs': 0.93; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=xy2teCroOZ8qbeFfJr8qs/pFmYzrisNM/McwCl1BO8s=; b=C4M8JNHrzgs27AtSQidyzX4Wy+dUmPei4vvyCOFdSrLUdY9eNDO83YIrI3h7g+TmR1 XZXpphABBlBCD3rUGLrUmecHz+QBr8yU9eslik3ZBsHcc5Dr5xDj3PPn3mb9JbDF5/KW 1LAnozEeeQerOFJ0hQOSN0bRrYVUdlzTpKFUQCTMgAUvgWIjI+lverMgADBeXTNBnJBC xO7ravXl15dDH1OZi7EGuE49cSub73YN4r9wXh5AvRbLz9M1tPOjKFHhVIaNqgI9h2Dc Kf50z7q1+Thw/P/Zt6ccqf5DdyJn1UlRhDizeuPIyF6FeOd0DUgRvyFuq0ScgRDMO+eb kNyw== MIME-Version: 1.0 X-Received: by 10.220.186.202 with SMTP id ct10mr11995570vcb.14.1386620528952; Mon, 09 Dec 2013 12:22:08 -0800 (PST) In-Reply-To: References: Date: Mon, 9 Dec 2013 15:22:08 -0500 Subject: Re: noobie needs help with ctypes From: Joel Goldstick To: Terry Reedy Content-Type: multipart/alternative; boundary=047d7b676fd011470704ed1fc0c2 Cc: "python-list@python.org" X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 85 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1386620531 news.xs4all.nl 2968 [2001:888:2000:d::a6]:43615 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:61410 --047d7b676fd011470704ed1fc0c2 Content-Type: text/plain; charset=UTF-8 On Mon, Dec 9, 2013 at 3:15 PM, Terry Reedy wrote: > On 12/9/2013 2:24 PM, Sells, Fred wrote: > >> I'm using python 2.6 on Linux/CentOs 6.x >> > > I would use the latest 2.7 (or 3.3) for a new project if at all possible. > > I seem to recall that Centos needs 2.6 as default python for its own purposes, so you need to install another version without messing with 2.6. VirtualEnv might help. > I'm getting ctypes to work, but getting stuck on the use of .argtypes. >> Can someone point out what I'm doing. This is my first use of ctypes and >> it looks like I'm getting different definitions in stackoverflow that may >> correspond to different version of python. >> > > In particular, I am sure that there have been bugfixes for ctypes. > > > -- > Terry Jan Reedy > > -- > https://mail.python.org/mailman/listinfo/python-list > -- Joel Goldstick http://joelgoldstick.com --047d7b676fd011470704ed1fc0c2 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On Mon, Dec 9, 2013 at 3:15 PM, Terry Reedy <tjreedy@udel.= edu> wrote:
On 12/9/2013 2:24 PM, Sells, Fred wrote:
I'm using python 2.6 on Linux/CentOs 6.x

I would use the latest 2.7 (or 3.3) for a new project if at all possible.
I seem to recall that Centos needs 2.6 as de= fault python for its own purposes, so you need to install another version w= ithout messing with 2.6.=C2=A0 VirtualEnv might help.
=C2=A0
I'm getting ctypes to work, but getting stuck on the use of =C2=A0.argt= ypes. =C2=A0Can someone point out what I'm doing. =C2=A0This is my firs= t use of ctypes and it looks like I'm getting different definitions in = stackoverflow that may correspond to different version of python.

In particular, I am sure that there have been bugfixes for ctypes.


--
Terry Jan Reedy

--
https://mail.python.org/mailman/listinfo/python-list



--
--047d7b676fd011470704ed1fc0c2--