shmid = shmget(SHM_KEY, SHM_SIZE, 0o666) - syntax error.

Chris Angelico rosuav at gmail.com
Tue Apr 30 11:37:59 EDT 2013


On Wed, May 1, 2013 at 1:27 AM,  <tromeo at mdlogix.com> wrote:
>
> Please help me to debug
>
> -------
> shmid = shmget(SHM_KEY, SHM_SIZE, 0o666)
>                                                                    ^
> SyntaxError: invalid syntax

In Python 2, just use 0666.

ChrisA



More information about the Python-list mailing list