Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #63020

Re: Registry Key Value Help

Path csiph.com!usenet.pasdenom.info!news.albasani.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.072
X-Spam-Evidence '*H*': 0.86; '*S*': 0.00; 'cc:addr:python-list': 0.11; 'subject:Help': 0.11; 'python': 0.11; 'jan': 0.12; 'called.': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'wrote:': 0.18; 'cc:addr:python.org': 0.22; 'error': 0.23; '(by': 0.24; 'helpful': 0.24; '(or': 0.24; 'cc:2**0': 0.24; 'post': 0.26; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'errors': 0.30; 'strongly': 0.30; 'message- id:@mail.gmail.com': 0.30; "i'm": 0.30; 'code': 0.31; 'run': 0.32; 'says': 0.33; 'fri,': 0.33; 'problem': 0.35; 'case,': 0.35; 'received:google.com': 0.35; 'version': 0.36; 'keyword': 0.36; 'should': 0.36; 'extremely': 0.39; 'though,': 0.39; 'sure': 0.39; 'full': 0.61; "you're": 0.61; 'here:': 0.62; 'show': 0.63; 'confirm': 0.64; 'can\xe2\x80\x99t': 0.84; 'skip:w 60': 0.84; 'subject:Value': 0.84; 'to:none': 0.92
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:cc :content-type:content-transfer-encoding; bh=W9cJ7Kjp90qWelN9fJK81sQszSoPG7yJqdfZkwYY93s=; b=eXy42M9LSNkRlaTuXMHX+3mQvBonpqGswRdE+hEL8xDO7VkZ3pwhniD5oTPxPzRWSG 8j3LfRiHp8KCBqbKAd6JMRmtfZPPYw+hjvyoqhK1wggcAP2HcUp5iQP7rLhTs7G4vTgX dNFXX84x3gLb+dbBC2CIQwvwf7wx0KW3J19oxA2+lWs5HK8LZiFk1BnIczWE1E8OVJ0W BKmkRlGikGrDWmtkWbBUUlOiXQ0qkAj37JIZN0Kr8E+OQadxhi1r5/yPKx/sZo1RDyNR 9EicyGlTpQh6ey9jL43m3yn4H9pcIL3J4UxihQC98ryQnd9hV+oOsK2Yr0ngeSau5MxS 8K3g==
MIME-Version 1.0
X-Received by 10.68.173.132 with SMTP id bk4mr224901pbc.169.1388718311040; Thu, 02 Jan 2014 19:05:11 -0800 (PST)
In-Reply-To <00ea01cf0818$7b7b01d0$72710570$@com>
References <00ea01cf0818$7b7b01d0$72710570$@com>
Date Fri, 3 Jan 2014 14:05:10 +1100
Subject Re: Registry Key Value Help
From Chris Angelico <rosuav@gmail.com>
Cc "python-list@python.org" <python-list@python.org>
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding quoted-printable
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://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 <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.4822.1388718315.18130.python-list@python.org> (permalink)
Lines 22
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1388718315 news.xs4all.nl 2907 [2001:888:2000:d::a6]:37099
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:63020

Show key headers only | View raw


On Fri, Jan 3, 2014 at 11:12 AM, J. McGaha <j2mcgaha@gmail.com> wrote:
> When I run the this code I get an error that says the ‘int’ can’t be called.
>

Python errors include full backtraces that show exactly what's going
on. They are extremely helpful, so when you post questions like this,
you should copy and paste the whole thing.

In this case, though, I'm pretty sure the problem is here:

wr.KEY_SET_VALUE(aKey,"DisableAutoUpdateChecksCheckboxValue",  1, wr.REG_DWORD)

The all-uppercase keyword strongly suggests that this is a constant,
as I can confirm with my Python 3.3.0 (by the way, it's also helpful
to say what version of Python you're using). I suspect, without
looking at the docs, that what you want is actually wr.SetValue or
wr.SetValueEx, which are named like functions (or classes). Check out
the docs for those functions and see if they're what you need.

ChrisA

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Registry Key Value Help Chris Angelico <rosuav@gmail.com> - 2014-01-03 14:05 +1100

csiph-web