Message 391210 - Python tracker
Message391210
| Author | gvanrossum |
|---|---|
| Recipients | The Compiler, eric.smith, gvanrossum, kj, larry, levkivskyi |
| Date | 2021-04-16.15:07:25 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1618585645.59.0.116223318374.issue43463@roundup.psfhosted.org> |
| In-reply-to |
| Content | |
|---|---|
Hey Larry, it would seem that PEP 649 as currently specified would make it impossible to access annotations via the inspect module in cases where x.__annotations__ raises (because one of the annotations references an undefined variable). I really think that we need *some* way of accessing partial annotations. Even just leaving the failing key out of __annotations__ (but keeping other keys if their annotation works) would be better than failing to return an __annotations__ dict at all. |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2021-04-16 15:07:25 | gvanrossum | set | recipients: + gvanrossum, larry, eric.smith, The Compiler, levkivskyi, kj |
| 2021-04-16 15:07:25 | gvanrossum | set | messageid: <1618585645.59.0.116223318374.issue43463@roundup.psfhosted.org> |
| 2021-04-16 15:07:25 | gvanrossum | link | issue43463 messages |
| 2021-04-16 15:07:25 | gvanrossum | create | |