Opened 6 years ago

Last modified 5 years ago

#324 new enhancement

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 (1)

cython-pydoc3 (2.0 KB) - added by ehuss 6 years ago.
Wrap docstrings with PyDoc_STRVAR.

Download all attachments as: .zip

Change History (2)

Changed 6 years ago by ehuss

Wrap docstrings with PyDoc_STRVAR.

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