BPO | [43009](https://bugs.python.org/issue43009) --- | :--- Nosy | @vstinner, @shihai1991, @erlend-aasland PRs | python/cpython#24304 *Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.* Show more details GitHub fields: ```python assignee = 'https://github.com/shihai1991' closed_at = None created_at = labels = ['type-feature', '3.10'] title = 'Port curses capi pointer array to a struct' updated_at = user = 'https://github.com/shihai1991' ``` bugs.python.org fields: ```python activity = actor = 'erlendaasland' assignee = 'shihai1991' closed = False closed_date = None closer = None components = [] creation = creator = 'shihai1991' dependencies = [] files = [] hgrepos = [] issue_num = 43009 keywords = ['patch'] message_count = 6.0 messages = ['385532', '385881', '385899', '385900', '385902', '385903'] nosy_count = 3.0 nosy_names = ['vstinner', 'shihai1991', 'erlendaasland'] pr_nums = ['24304'] priority = 'normal' resolution = None stage = 'patch review' status = 'open' superseder = None type = 'enhancement' url = 'https://bugs.python.org/issue43009' versions = ['Python 3.10'] ```
Activity
shihai1991 commentedon Jan 23, 2021
As the title mentioned. A entire py_curses capi struct would be better than pointer array.
Related PR: PR 24186
erlend-aasland commentedon Jan 28, 2021
The _decimal API is also just an array of pointers. Should we change that to a struct as well?
shihai1991 commentedon Jan 29, 2021
+1. IMHO, structure is more directly than pointer array. And there haven't exposing this pointer array to users(no backward compatibility).
erlend-aasland commentedon Jan 29, 2021
Good. I'll open a separate issue and give it a try. Thanks!
shihai1991 commentedon Jan 29, 2021
Hi, victor. Do you have suggestion about it :)
erlend-aasland commentedon Jan 29, 2021
FYI: I've opened bpo-43060 for the decimal module.