From robertwb at math.washington.edu Fri Apr 1 20:50:49 2011 From: robertwb at math.washington.edu (Robert Bradshaw) Date: Fri, 1 Apr 2011 11:50:49 -0700 Subject: [Cython] Docs repository Message-ID: The cython documentation is now part of the main repository, see https://github.com/cython/cython/tree/master/docs . https://github.com/cython/cython-docs should no longer be used (perhaps it should be removed entirely, are there any/many inbound links?) - Robert From dsdale24 at gmail.com Mon Apr 4 21:32:01 2011 From: dsdale24 at gmail.com (Darren Dale) Date: Mon, 4 Apr 2011 15:32:01 -0400 Subject: [Cython] problem building master with python3 Message-ID: I'm attempting to install cython from the git repository to benefit from this fix: http://trac.cython.org/cython_trac/ticket/597 . When I run "python3 setup.py install --user", I get an error: cythoning /Users/darren/Projects/cython/Cython/Compiler/Code.py to /Users/darren/Projects/cython/Cython/Compiler/Code.c Error compiling Cython file: ------------------------------------------------------------ ... self.cname = cname self.text = text self.escaped_value = StringEncoding.escape_byte_string(byte_string) self.py_strings = None def get_py_string_const(self, encoding, identifier=None, is_str=False): ^ ------------------------------------------------------------ Cython/Compiler/Code.py:320:4: Signature not compatible with previous declaration Error compiling Cython file: ------------------------------------------------------------ ... cdef public object text cdef public object escaped_value cdef public dict py_strings @cython.locals(intern=bint, is_str=bint, is_unicode=bint) cpdef get_py_string_const(self, encoding, identifier=*, is_str=*) ^ ------------------------------------------------------------ Cython/Compiler/Code.pxd:64:30: Previous declaration is here building 'Cython.Compiler.Code' extension /usr/bin/gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -O2 -I/opt/local/Library/Frameworks/Python.framework/Versions/3.2/include/python3.2m -c /Users/darren/Projects/cython/Cython/Compiler/Code.c -o build/temp.macosx-10.6-x86_64-3.2/Users/darren/Projects/cython/Cython/Compiler/Code.o /Users/darren/Projects/cython/Cython/Compiler/Code.c:1:2: error: #error Do not use this file, it is the result of a failed Cython compilation. error: command '/usr/bin/gcc-4.2' failed with exit status 1 From dsdale24 at gmail.com Mon Apr 4 21:43:44 2011 From: dsdale24 at gmail.com (Darren Dale) Date: Mon, 4 Apr 2011 15:43:44 -0400 Subject: [Cython] problem building master with python3 In-Reply-To: References: Message-ID: On Mon, Apr 4, 2011 at 3:32 PM, Darren Dale wrote: > I'm attempting to install cython from the git repository to benefit > from this fix: http://trac.cython.org/cython_trac/ticket/597 . When I > run "python3 setup.py install --user", I get an error: > > cythoning /Users/darren/Projects/cython/Cython/Compiler/Code.py to > /Users/darren/Projects/cython/Cython/Compiler/Code.c > > Error compiling Cython file: > ------------------------------------------------------------ > ... > ? ? ? ?self.cname = cname > ? ? ? ?self.text = text > ? ? ? ?self.escaped_value = StringEncoding.escape_byte_string(byte_string) > ? ? ? ?self.py_strings = None > > ? ?def get_py_string_const(self, encoding, identifier=None, is_str=False): > ? ^ > ------------------------------------------------------------ > > Cython/Compiler/Code.py:320:4: Signature not compatible with previous > declaration > > Error compiling Cython file: > ------------------------------------------------------------ > ... > ? ?cdef public object text > ? ?cdef public object escaped_value > ? ?cdef public dict py_strings > > ? ?@cython.locals(intern=bint, is_str=bint, is_unicode=bint) > ? ?cpdef get_py_string_const(self, encoding, identifier=*, is_str=*) > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ^ > ------------------------------------------------------------ > > Cython/Compiler/Code.pxd:64:30: Previous declaration is here > building 'Cython.Compiler.Code' extension > /usr/bin/gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g > -fwrapv -O3 -Wall -Wstrict-prototypes -O2 > -I/opt/local/Library/Frameworks/Python.framework/Versions/3.2/include/python3.2m > -c /Users/darren/Projects/cython/Cython/Compiler/Code.c -o > build/temp.macosx-10.6-x86_64-3.2/Users/darren/Projects/cython/Cython/Compiler/Code.o > /Users/darren/Projects/cython/Cython/Compiler/Code.c:1:2: error: > #error Do not use this file, it is the result of a failed Cython > compilation. > error: command '/usr/bin/gcc-4.2' failed with exit status 1 > Actually, I get this same error when I try to build with python-2.7 as well. Darren From wstein at gmail.com Mon Apr 11 20:53:09 2011 From: wstein at gmail.com (William Stein) Date: Mon, 11 Apr 2011 11:53:09 -0700 Subject: [Cython] "Cython's Users Guide" Message-ID: Hi, I'm teaching Cython in my Sage course yet again, and noticed that again there are some very confusing aspects of the Cython documentation organization, which could probably be improved by a few simple changes. 1. At http://cython.org/ there is a big link in the middle of the page labeled "Cython Users Guide" which goes to http://docs.cython.org/. However, http://docs.cython.org/ is *not* the users guide -- it is "Cython?s Documentation". In fact, the Users Guide is Chapter 3 of the documentation. 2. Looking at http://docs.cython.org, we see that Chapter 2 is "Tutorials". But then looking down to Chapter 3 we see that it is "Cython Users Guide". Of course, that's what one is after having just clicked a link called "Cython Users Guide". So we click on "Cython Users Guide" again. 3. We arrive at a page that again has "Tutorial" as Chapter 2. For some reason this makes me feel even more confused. Recommend changes: 1. Change the link on the main page from "Cython Users Guide" to "Documentation" or put a direct link into the Users Guide, or have two links. 2. At http://docs.cython.org/ rename the "Cython Users Guide" to "Users Guide", since it is obviously the Cython Users Guide at this point and "Cython documentation" is in the upper left of the page everywhere. 3. Possibly rename the tutorial in chapter 2 of the users guide to something like "First Steps" or "Basic Tutorial" or something. William -- William Stein Professor of Mathematics University of Washington http://wstein.org From stuaxo2 at yahoo.com Sat Apr 16 19:44:14 2011 From: stuaxo2 at yahoo.com (Stuart Axon) Date: Sat, 16 Apr 2011 10:44:14 -0700 (PDT) Subject: [Cython] Interpretting cython -a Message-ID: <10374.32454.qm@web112112.mail.gq1.yahoo.com> Do I want things to be yellower or whiter? If I add an annotation and the colours don't change then I guess it's doing nothing, right. S++ From mistobaan at gmail.com Wed Apr 20 20:08:50 2011 From: mistobaan at gmail.com (Fabrizio Milo aka misto) Date: Wed, 20 Apr 2011 11:08:50 -0700 Subject: [Cython] On cdef extern from syntax Message-ID: Hi, I was wondering if has been ever discussed to implement the cython cdef extern from syntax as a with statement: with cython.header_importer("") as cy: cy.ctypedef(" unsigned int uint8 ") cy.cfunc( " void * myfunc() )") or also with cython.header_importer("") as cy: cy(""" ctypdef ... """) Maybe there is already something like that ? Fabrizio -------------------------- Luck favors the prepared mind. (Pasteur)