GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||
GeezerVison is showing github.com — gh-111489: Add PyTuple_FromArray() function by vstinner · Pull Request #139691 · python/cpython Conversation
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
@serhiy-storchaka: I addressed your comments. Please review the updated PR. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
|
||
| tup = () | ||
| copy = tuple_fromarray(tup) | ||
| self.assertIs(copy, tup) |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Is not the empty tuple singleton a CPython implementation detail?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
The whole file is a CPython implementation detail (_testcapi), no?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Use also UNINITIALIZED_SIZE in test code.
|
I updated the PR for the latest review. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
LGTM. 👍
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| Create a tuple of *size* items and copy references from *array* to the new | ||
| tuple. |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I would prefer to formulate this in words more similar to PyTuple_New() or PyTuple_Pack() ("Return a new tuple object of size ... "), but this is not so important.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Implementation looks good, thanks! Do you want to open a WG vote for this? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
I created capi-workgroup/decisions#79. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
I exchanged
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
caad089 to
89f91fc
Compare
Sorry, I changed my preference back to |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
The C API Working Group accepted this API. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Merged. Thanks for your review @serhiy-storchaka and @encukou! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I added the function to pythoncapi-compat: python/pythoncapi-compat@89e023e |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.