Path: csiph.com!usenet.pasdenom.info!gegeweb.org!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!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.033 X-Spam-Evidence: '*H*': 0.94; '*S*': 0.00; 'syntax': 0.04; 'debug': 0.07; '-------': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'octal': 0.16; 'permissions,': 0.16; 'syntaxerror:': 0.16; 'wrote:': 0.18; 'wed,': 0.18; 'header:In- Reply-To:1': 0.27; 'am,': 0.29; 'unix': 0.29; 'message- id:@mail.gmail.com': 0.30; 'file': 0.32; 'supposed': 0.32; 'checking': 0.33; 'guess': 0.33; 'sense': 0.34; 'equal': 0.35; 'received:google.com': 0.35; 'error.': 0.37; 'to:addr:python- list': 0.38; 'to:addr:python.org': 0.39; 'dave': 0.60; 'most': 0.60; 'invalid': 0.68; 'angel': 0.91; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=4xVoK0dKzze0tPLuecoT0vSsJNSPHKyPcSSF5x3Qve0=; b=bvb+VLgIbATBYQb1b1F4pNxCM/I3Y/tb2zckfpaB6kIKm49RAOVR6lIgA/ZFrqbrNH 5dbDr7q9XrVhLZrozOEZsXb2KI65mRCuWlDaNyGrujgUVGzKdeIkg1mu7i58wtuSftbE grzRK89MaZfIln/s9F6m/Kf7Fe7BNOZDoAUuAmsuMxyBnhJewiUTUct4zb9iQksxrgDk qrQPfPCe6Q9ut8uf3DzIE3982DOXXxgQQGmLf3vga6z3mtPi5eUXgID8vtbisT78kJzd z2yai2Meyr1Jow3a/c6dlkDt+2XKgVDdtNW69L6KsWscyMZzR7ccCBk4F4NWf1oyIyrg pKpQ== MIME-Version: 1.0 X-Received: by 10.58.56.161 with SMTP id b1mr35441939veq.42.1367336951650; Tue, 30 Apr 2013 08:49:11 -0700 (PDT) In-Reply-To: <517FE68A.1000703@davea.name> References: <517FE68A.1000703@davea.name> Date: Wed, 1 May 2013 01:49:11 +1000 Subject: Re: shmid = shmget(SHM_KEY, SHM_SIZE, 0o666) - syntax error. From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 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: 19 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1367336960 news.xs4all.nl 15956 [2001:888:2000:d::a6]:50384 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:44548 On Wed, May 1, 2013 at 1:43 AM, Dave Angel wrote: > On 04/30/2013 11:27 AM, tromeo@mdlogix.com wrote: >> >> >> Please help me to debug >> >> ------- >> shmid = shmget(SHM_KEY, SHM_SIZE, 0o666) >> ^ >> SyntaxError: invalid syntax >> > > 0o666 is indeed a syntax error. What is that value supposed to be? If it's > intended to be an int that's equal to octal 666, just use 438 Without checking docs, I would guess that to be Unix file permissions, which make most sense in octal. ChrisA