Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed1.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.017 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'syntax': 0.04; 'debug': 0.07; 'python': 0.11; '-------': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'syntaxerror:': 0.16; 'wrote:': 0.18; 'wed,': 0.18; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'message-id:@mail.gmail.com': 0.30; 'received:209.85': 0.35; 'received:209.85.220': 0.35; 'received:google.com': 0.35; 'received:209': 0.37; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'invalid': 0.68; '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=ICXjAhN7gMrgmL8/mpNtGUxcrdjSSjKzV0RtQkt/+aQ=; b=URBmiWmS6y0KVCgYUSSQN20kBi5NAT7ODwATsumofD/dAXXcOqiVBR0NBor4spMh9a 7yAApZAJgE5E5aMP4n+be5k4AZGtDvwlmPHjleOJGZrZ6wm6l6IIc9tSt6KRAEITjo9C EJ7Hr86XOOU8Ls8WfYS4ELgkEyUsRKa2al0Il+zpswR3+GcwkOp33OkPKpBe8C+Bkfsr nTj40D2UTAb55kRkn2Pna00YCB57Kp/GzR8z3nweBWWuisiazskynr8s3P8nNECtNeND y4D0uZG2mZ1CrteQKzhswCN+oj/pKjSla0gAQgllssG7J9t6XEAt9okRkr2UQbMltSUN IEhA== MIME-Version: 1.0 X-Received: by 10.52.91.71 with SMTP id cc7mr29621315vdb.58.1367336279627; Tue, 30 Apr 2013 08:37:59 -0700 (PDT) In-Reply-To: References: Date: Wed, 1 May 2013 01:37:59 +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: 12 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1367336283 news.xs4all.nl 15917 [2001:888:2000:d::a6]:39992 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:44546 On Wed, May 1, 2013 at 1:27 AM, wrote: > > Please help me to debug > > ------- > shmid = shmget(SHM_KEY, SHM_SIZE, 0o666) > ^ > SyntaxError: invalid syntax In Python 2, just use 0666. ChrisA