Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #37222
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!us.feeder.erje.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <square.steve@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.051 |
| X-Spam-Evidence | '*H*': 0.90; '*S*': 0.00; 'assign': 0.07; 'though...': 0.09; 'steve': 0.13; 'created.': 0.16; 'discarded': 0.16; 'subject:handling': 0.16; 'wrote:': 0.17; 'basis,': 0.22; 'ctypes': 0.22; 'please?': 0.22; 'cc:2**0': 0.23; 'statement': 0.23; 'cc:no real name:2**0': 0.24; 'header:In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'mike': 0.27; 'correct': 0.28; 'clarify': 0.33; 'to:addr:python-list': 0.33; 'received:google.com': 0.34; 'thanks': 0.34; 'so,': 0.35; 'expected': 0.35; 'received:209.85': 0.35; 'created': 0.36; 'but': 0.36; 'message-id:@gmail.com': 0.36; 'received:209': 0.37; 'subject:: ': 0.38; 'object': 0.38; 'to:addr:python.org': 0.39; 'received:192': 0.39; 'called': 0.39; 'received:192.168': 0.40; 'your': 0.60; "you've": 0.61; 'header:Reply-To:1': 0.68; 'reply- to:no real name:2**0': 0.72; 'reply-to:addr:gmail.com': 0.79; 'mike,': 0.84 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:date:from:reply-to:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=oZZ1UAUcMTFBIj6t+cMaNewP8As6Vk1UssG0aZUHhn8=; b=kFbr9WKX5honSA4vv+xsFnmhp8N2xFJq3DCnCK1mq+2K0t6q7SGdRWKxvV0wyuBNWW TnluV28wu3OGOBJdy4M3WocTMkx1X662cV3hkjJ37iz4WSy9iZIIapxRVN4DTdluMw1v YDF5y0lepOEsmfPKvkvlkOvG8n+00EThoXn3dd1WH+R4ld0UU8fWCuqkzbZ/aOQvLOvg L4SleLLtnY9YcgvbTWpuBgiLhu8B/Q/SRCh5cKeZErheABYe2fmec7X62Zu4r+0E/vmG 0DhC3skyplHl7aAp5rbFh3GwfN3+rqOjRXelLvf7PAnSsJnpj3Dq/1oIfpyr4nGDjXHI XbMw== |
| X-Received | by 10.236.149.45 with SMTP id w33mr20861518yhj.32.1358787161454; Mon, 21 Jan 2013 08:52:41 -0800 (PST) |
| Date | Mon, 21 Jan 2013 16:52:37 +0000 |
| From | Steve Simmons <square.steve@gmail.com> |
| User-Agent | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 |
| MIME-Version | 1.0 |
| To | python-list@python.org |
| Subject | Re: handling return codes from CTYPES |
| References | <50FD1C6F.6030801@gmail.com> <50FD5B47.8030807@vrplumber.com> |
| In-Reply-To | <50FD5B47.8030807@vrplumber.com> |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| Reply-To | square.steve@gmail.com |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.761.1358797637.2939.python-list@python.org> (permalink) |
| Lines | 18 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1358797637 news.xs4all.nl 6853 [2001:888:2000:d::a6]:53352 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:37222 |
Show key headers only | View raw
Mike,
Thanks for your response - I was puzzled by one part of it though...
On 21/01/2013 15:14, Mike C. Fletcher wrote:
> That's because you've just discarded the object you created
I (mis?)understood from the ctypes documentation that '>>> initResult =
c_short(0)' would result in the creation of a ctypes 'short' called
initResult and that this object would be mutable. On that basis, I
expected the following statement '>>> initResult = initScanLib( ... )'
would assign the result of the call to initResult.
So, I can understand that I am not using the correct approach but I
don't understand how I discarded the object I created. Can you clarify
please?
Steve
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: handling return codes from CTYPES Steve Simmons <square.steve@gmail.com> - 2013-01-21 16:52 +0000
csiph-web