beeware / Python-Apple-support

A meta-package for building a version of Python that can be embedded into a macOS, iOS, tvOS or watchOS project.
MIT License
1.1k stars 159 forks source link

Enable docstrings in Python builds #166

Closed freakboy3742 closed 1 year ago

freakboy3742 commented 1 year ago

It turns out docstrings aren't just there for users - they're used by the inspect module to determine the prototype of builtin methods (via the __text_signature__ attribute, populated by the Argument Clinic).

This PR re-enables docstrings. It also modifies the Python clean command to ensure that build products from the same micro version are removed. Previously, Python3.11rc1 wasn't removed if you were building 3.11rc2.

Fixes #165.

PR Checklist: