Fix CP#35021 - __doc__ should not be read-only in partial.

Copied the __doc__ handling code from PythonProperty.