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
Compilation fail because of doc string
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  11 messages - Collapse all  -  Translate all to Translated (View all originals)
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 Aug 30 2012, 9:57 am
From: Talanor <adron...@gmail.com>
Date: Thu, 30 Aug 2012 15:57:32 +0200
Local: Thurs, Aug 30 2012 9:57 am
Subject: Compilation fail because of doc string
Hello,

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.

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.
Talanor  
View profile  
 More options Sep 4 2012, 2:25 pm
From: Talanor <adron...@gmail.com>
Date: Tue, 4 Sep 2012 11:25:53 -0700 (PDT)
Local: Tues, Sep 4 2012 2:25 pm
Subject: Re: Compilation fail because of doc string

Le jeudi 30 août 2012 15:57:36 UTC+2, Talanor a écrit :

 Hello!

I don't know if you saw this :-°

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
fonction/module instead of ignoring it and assigning None as the docstring
like cpython does.


 
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.
Stefan Behnel  
View profile  
 More options Sep 4 2012, 2:54 pm
From: Stefan Behnel <stefan...@behnel.de>
Date: Tue, 04 Sep 2012 20:54:30 +0200
Local: Tues, Sep 4 2012 2:54 pm
Subject: Re: [cython-users] Re: Compilation fail because of doc string
Talanor, 04.09.2012 20:25:

Yes, thanks for the report. Looks like a bug in the parser.

Stefan


 
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.
Stefan Behnel  
View profile  
 More options Sep 4 2012, 3:03 pm
From: Stefan Behnel <stefan...@behnel.de>
Date: Tue, 04 Sep 2012 21:03:13 +0200
Local: Tues, Sep 4 2012 3:03 pm
Subject: Re: [cython-users] Re: Compilation fail because of doc string
Stefan Behnel, 04.09.2012 20:54:

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


 
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.
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:

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.
Talanor  
View profile  
 More options Sep 5 2012, 11:21 am
From: Talanor <adron...@gmail.com>
Date: Wed, 05 Sep 2012 17:21:30 +0200
Local: Wed, Sep 5 2012 11:21 am
Subject: Re: [cython-users] Re: Compilation fail because of doc string
On 09/04/2012 09:03 PM, Stefan Behnel wrote:

Here's the pull request: https://github.com/cython/cython/pull/149

Thanks


 
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.
Talanor  
View profile  
 More options Sep 22 2012, 9:45 am
From: Talanor <adron...@gmail.com>
Date: Sat, 22 Sep 2012 15:45:16 +0200
Local: Sat, Sep 22 2012 9:45 am
Subject: Re: Compilation fail because of doc string
On 09/04/2012 09:03 PM, Stefan Behnel wrote:

> 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

Hey, may I remind you that I sent a pull request =)

Here it is : https://github.com/cython/cython/pull/149

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.
Stefan Behnel  
View profile  
 More options Sep 22 2012, 10:33 am
From: Stefan Behnel <stefan...@behnel.de>
Date: Sat, 22 Sep 2012 16:33:27 +0200
Local: Sat, Sep 22 2012 10:33 am
Subject: Re: [cython-users] Re: Compilation fail because of doc string
Talanor, 22.09.2012 15:45:

> On 09/04/2012 09:03 PM, Stefan Behnel wrote:

>> 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

> Hey, may I remind you that I sent a pull request =)

> Here it is : https://github.com/cython/cython/pull/149

> Thank you.

Sorry for the long delay and thanks for insisting. I commented the changes.
I think you're almost there, but the node handling needs to be done
differently.

Stefan


 
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.
Talanor  
View profile  
 More options Oct 1 2012, 6:10 am
From: Talanor <adron...@gmail.com>
Date: Mon, 01 Oct 2012 12:10:05 +0200
Local: Mon, Oct 1 2012 6:10 am
Subject: Re: [cython-users] Re: Compilation fail because of doc string
On 09/22/2012 04:33 PM, Stefan Behnel wrote:

Hey,

is it ok the way I did it?

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.
Talanor  
View profile  
 More options Oct 5 2012, 3:41 am
From: Talanor <adron...@gmail.com>
Date: Fri, 05 Oct 2012 09:40:57 +0200
Local: Fri, Oct 5 2012 3:40 am
Subject: Re: [cython-users] Re: Compilation fail because of doc string
On 10/01/2012 12:10 PM, Talanor wrote:

Hello,

I don't know if you are notified when I push the changes on my branch
for the pull request, if you are, please, tell me, I won't mail you
anymore about it x)

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.
Robert Bradshaw  
View profile  
 More options Oct 5 2012, 4:11 pm
From: Robert Bradshaw <rober...@gmail.com>
Date: Fri, 5 Oct 2012 13:10:33 -0700
Local: Fri, Oct 5 2012 4:10 pm
Subject: Re: [cython-users] Re: Compilation fail because of doc string
Rather than introduce a _visit_DocString method that recursively calls
the right super, I might simply write an extract_docstring(node)
method, but that's just a suggestion.

In any case, can you create a new pull request with just this change
in the history? Also, can you add a test?


 
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.
End of messages
« Back to Discussions « Newer topic     Older topic »