|
cdef docstrings: msg#00007python.pyrex
Attached are two patches that try to allow the user to enter a docstring for cdef functions, but not have them included in the resulting compiled code. patch_with_doc is more specialized in that it only excludes docstrings for cdef functions. patch_string_expression is more generalized in that any standalone string expression anywhere in your Pyrex code will get optimized out (I have not tested this very thoroughly and I'm also not a fan of using triple quoted strings to comment out code, so I ended up not using it, but I'm including it in case someone else is interested). -Eric
Pyrex mailing list Pyrex@xxxxxxxxxxxxxxxxx http://lists.copyleft.no/mailman/listinfo/pyrex |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Pyrex method 10x slower than Python, any hints why?: 00007, John Machin |
|---|---|
| Next by Date: | Re: Pyrex method 10x slower than Python, any hints why?: 00007, David Chiang |
| Previous by Thread: | Re: Pyrex method 10x slower than Python, any hints why?i: 00007, John Machin |
| Next by Thread: | newbie question: 00007, Philip Smith |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |