[Python-ideas] Re: extending ast.parse with some lib2to3.pytree features

2021-11-20 Thread Neil Girdhar
I wish this had gotten more attention! :) ___ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://m

[Python-ideas] Re: Runtime-accessible attribute docstrings

2021-11-20 Thread Steven D'Aprano
On Fri, Nov 19, 2021 at 11:23:02PM -, Angelo Kontaxis wrote: > I feel like we could possible use the slots being a dict here, this is > already a supported feature and is able to document attributes > indivually, and dataclasses does have a slots argument now in 3.10 That doesn't help class

[Python-ideas] Re: Runtime-accessible attribute docstrings

2021-11-20 Thread Ricky Teachey
This might be a weird idea but I think it looks nice, is backward compatible, and flexible. It could be a convention to have the type hint syntax location (ie, the syntax location after the colon that usually contains type hints only today) do double duty. It could be used for documentation as lon