Received: by 10.58.207.43 with SMTP id lt11mr5825154vec.17.1346783154862; Tue, 04 Sep 2012 11:25:54 -0700 (PDT) X-BeenThere: cython-users@googlegroups.com Received: by 10.52.92.207 with SMTP id co15ls1391037vdb.5.gmail; Tue, 04 Sep 2012 11:25:53 -0700 (PDT) Received: by 10.52.35.84 with SMTP id f20mr2448469vdj.3.1346783153599; Tue, 04 Sep 2012 11:25:53 -0700 (PDT) Date: Tue, 4 Sep 2012 11:25:53 -0700 (PDT) From: Talanor To: cython-users@googlegroups.com Message-Id: <76baaed3-c943-42c2-8bb3-3542c8bcd507@googlegroups.com> In-Reply-To: <503F714C.5080000@gmail.com> References: <503F714C.5080000@gmail.com> Subject: Re: Compilation fail because of doc string MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_2722_10350444.1346783153242" ------=_Part_2722_10350444.1346783153242 Content-Type: multipart/alternative; boundary="----=_Part_2723_13626949.1346783153246" ------=_Part_2723_13626949.1346783153246 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Le jeudi 30 ao=C3=BBt 2012 15:57:36 UTC+2, Talanor a =C3=A9crit : > > Hello,=20 > > i've been using your tool again. And I randomly found a strange behaviour= .=20 > Well, in fact, it is not strange, but unexpected..=20 > > The problem can be summarized by this line of python :=20 > > ''.join([])=20 > > When i compiled it, cython told me :=20 > test.py:1:2: Syntax error in doc string=20 > > Is it a normal behaviour?=20 > I must admit I didn't look for this kind of errors on the whole web but= =20 > didn't found it in the first google results.=20 > > Thank you=20 > =20 Hello! I don't know if you saw this :-=C2=B0 Nobody answered me, so I guess you didn't. The problem is that cython doesn't like variables doc strings. I mean : cython tries to assign the docstring to the related=20 fonction/module instead of ignoring it and assigning None as the docstring= =20 like cpython does. ------=_Part_2723_13626949.1346783153246 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable Le jeudi 30 ao=C3=BBt 2012 15:57:36 UTC+2, Talanor a =C3=A9crit :Hello,

i've been using your tool again. And I randomly found a strange behavio= ur.
Well, in fact, it is not strange, but unexpected..

The problem can be summarized by this line of python :

''.join([])

When i compiled it, cython told me :
test.py:1:2: Syntax error in doc string

Is it a normal behaviour?
I must admit I didn't look for this kind of errors on the whole web but= =20
didn't found it in the first google results.

Thank you
 
 Hello!

I don't know if = you saw this :-=C2=B0

Nobody answered me, so I guess you didn't.
=
The problem is that cython doesn't like variables doc strings.
I mea= n : cython tries to assign the docstring to the related fonction/module ins= tead of ignoring it and assigning None as the docstring like cpython does.<= br>
------=_Part_2723_13626949.1346783153246-- ------=_Part_2722_10350444.1346783153242--