Ticket #324 (new enhancement)

Opened 5 years ago

Last modified 5 years ago

Wrap docstrings with PyDoc_STRVAR macro.

Reported by: ehuss Owned by: somebody
Priority: minor Milestone: wishlist
Component: Code Generation Keywords:
Cc:

Description

The following patch changes it so that docstrings are wrapped with the PyDoc?_STRVAR macro so that docstrings are stripped if you compile Python with --without-doc-strings. This does not cover "class" docstrings due to how they are defined.

Attachments

cython-pydoc3 Download (2.0 KB) - added by ehuss 5 years ago.
Wrap docstrings with PyDoc?_STRVAR.

Change History

Changed 5 years ago by ehuss

Wrap docstrings with PyDoc?_STRVAR.

Changed 5 years ago by scoder

  • priority changed from major to minor

I think this should be merged with the existing ___Pyx_DOCSTR() macro instead.

Note: See TracTickets for help on using tickets.