Path: csiph.com!usenet.pasdenom.info!goblin2!goblin.stu.neva.ru!newsfeed.xs4all.nl!newsfeed3.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.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'subject:Python': 0.06; 'rename': 0.07; 'subject:missing': 0.07; 'tries': 0.07; 'lines.': 0.09; 'parameter': 0.09; 'trailing': 0.09; 'runs': 0.10; 'creates': 0.14; "'.py'": 0.16; 'expecting': 0.16; 'from:addr:timgolden.me.uk': 0.16; 'from:name:tim golden': 0.16; 'message-id:@timgolden.me.uk': 0.16; 'mimetypes': 0.16; 'received:74.55.86': 0.16; 'received:74.55.86.74': 0.16; 'received:smtp.webfaction.com': 0.16; 'received:webfaction.com': 0.16; 'tjg': 0.16; 'for?': 0.16; 'wrote:': 0.18; 'obviously': 0.18; 'header:User-Agent:1': 0.23; 'header:In-Reply-To:1': 0.27; 'andrew': 0.30; 'code': 0.31; 'lines': 0.31; 'keys': 0.31; "skip:' 40": 0.31; 'strip': 0.31; 'file': 0.32; 'probably': 0.32; 'open': 0.33; 'problem': 0.35; 'something': 0.35; 'but': 0.35; 'possible': 0.36; 'should': 0.36; 'to:addr:python-list': 0.38; 'fact': 0.38; 'anything': 0.39; 'embedded': 0.39; 'to:addr:python.org': 0.39; 'skip:p 20': 0.39; 'middle': 0.60; 'temporarily': 0.60; 'first': 0.61; 'charset:windows-1252': 0.65; 'within': 0.65; 'from:addr:mail': 0.83; 'suspicious': 0.91 Date: Mon, 12 Jan 2015 22:00:22 +0000 From: Tim Golden User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: python-list@python.org Subject: Re: I must be missing something obvious in installing Python 3.4.2... References: <4723ce7c-53ec-463b-b270-63241305f867@googlegroups.com> In-Reply-To: <4723ce7c-53ec-463b-b270-63241305f867@googlegroups.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit 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: 47 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1421100022 news.xs4all.nl 2929 [2001:888:2000:d::a6]:57978 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:83639 On 12/01/2015 21:45, Andrew Koenig wrote: > It runs and creates a classes.txt file with 803 lines. The first few: > > -> '$cpfile12' > -> '$crfile12' > -> '$cxfile12' > -> '*' > -> '.$cp' > -> '.$cr' > -> '.$cx' > -> '.386' > -> '.3ds' > > A few lines in the middle that might be relevant: > > -> '.py' > -> '.pyc' > -> '.pyo' > -> '.pys' > -> '.pyw' > > And the last few: > > -> '{C7A40493-BF23-4B53-AB2A-4A923B3EE34B}\x00' > -> '{E14E55A7-29C8-4389-8E5A-3EF964510FCA}\x00' > -> '{F5E30566-7C8F-4037-A8FF-A7382E251C56}\x00' > > Anything in particular I should be looking for? > I was actually expecting to see something like a byestring, but in fact those last few items look suspicious with their trailing NULs. The mimetypes code tries to open each key to find its associated mimetype(s) and would probably fail on those. The PyArg_ParseTupleAndKeywords in OpenKey is using the "Z" pattern for its first parameter which disallows embedded NULs. Obviously we can trap-and-skip within the mimetypes code but that won't help you immediately (short of your patching your own lib/mimetypes). Is it possible to temporarily rename those keys out of the way, or to strip their trailing NULs to see if the problem goes away? TJG