logo       

cdef docstrings: msg#00007

python.pyrex

Subject: cdef docstrings

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

Attachment: Parsing.py.patch_string_expression
Description: Text document

Attachment: Parsing.py.patch_with_doc
Description: Text document

_______________________________________________
Pyrex mailing list
Pyrex@xxxxxxxxxxxxxxxxx
http://lists.copyleft.no/mailman/listinfo/pyrex
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise