Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Compilation fail because of doc string
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Talanor  
View profile  
 More options Sep 5 2012, 9:39 am
From: Talanor <adron...@gmail.com>
Date: Wed, 05 Sep 2012 15:39:32 +0200
Local: Wed, Sep 5 2012 9:39 am
Subject: Re: [cython-users] Re: Compilation fail because of doc string
On 09/04/2012 09:03 PM, Stefan Behnel wrote:
> Stefan Behnel, 04.09.2012 20:54:
>> Talanor, 04.09.2012 20:25:
>>> Le jeudi 30 août 2012 15:57:36 UTC+2, Talanor a écrit :
>>>> i've been using your tool again. And I randomly found a strange behaviour.
>>>> 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
>>>> didn't found it in the first google results.
>>> The problem is that cython doesn't like variables doc strings.
>>> I mean : cython tries to assign the docstring to the related
>>> fonction/module instead of ignoring it and assigning None as the docstring
>>> like cpython does.
>> Yes, thanks for the report. Looks like a bug in the parser.
> BTW, it would be cool if you could write up a fix for it and send us a pull
> request. Look for "docstring" in Parsing.py.

> Stefan

Ok, i'm on it, i think I have a fix. I'm testing it and i'll send you a
pull request when i'm done.

Thank you


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.