Re: Casting classes WAS: Documenting builtin methods

2013-07-11 Thread Christian Heimes
Am 12.07.2013 02:23, schrieb Mark Janssen: > A user was wondering why they can't change a docstring in a module's class. For CPython builtin types (classes) and function have read-only doc strings for multiple reasons. Internally the doc strings are stored as constant C string literals. The __doc_

Casting classes WAS: Documenting builtin methods

2013-07-11 Thread Mark Janssen
A user was wondering why they can't change a docstring in a module's class. This made me think: why not have a casting operator ("reciprocal"?) to transform a bonafide class into a mere carcass of a class which can then modified and reanimated back into its own type with the type function? Such t