bpo-39127: Make _Py_HashPointer's argument be const#17690
Conversation
|
Hello, and thanks for your contribution! I'm a bot set up to make sure that the project can legally accept this contribution by verifying everyone involved has signed the PSF contributor agreement (CLA). CLA MissingOur records indicate the following people have not signed the CLA: For legal reasons we need all the people listed to sign the CLA before we can look at your contribution. Please follow the steps outlined in the CPython devguide to rectify this issue. If you have recently signed the CLA, please wait at least one business day You can check yourself to see if the CLA has been received. Thanks again for the contribution, we look forward to reviewing it! |
|
I have indeed signed the CLA, but it was just earlier this evening. |
|
@serhiy-storchaka If I find more instances of changes like this, should I submit each one individually, or put them all together in a single PR? |
Ignore leading dots and no longer ignore a trailing newline.
…H-17618) No longer import the re module if it is not needed.
tkinter.ttk.Scale().configure([name]) now returns a configuration tuple for name or a list thereof for all options. Based on patch Giovanni Lombardo.
…H-17813) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Signed-off-by: Oleg Höfling <oleg.hoefling@gmail.com>
…s well (GH-17694) To be consistent with document layout, it should say when the feature was added. Although it's mentioned few other places in the doc but it's not explicitly say that at that place. https://bugs.python.org/issue39130
…17864) Fixes error attempting to bind to IPv4 address.
…-17872) * `enum.auto()` initial value is now specified as being `1`.
|
I verified that bpo has user Properly merging the master into this (with The latter was for a duplicate blurb for another issue, which I removed. I don't think that this needs a news item, but however merges can decide. |
|
@serhiy-storchaka Do you want to merge as is or should Andy look for other places to add |
There are plenty of other places to add |
|
Sorry for the delay. I approved the PR, but I was going to look whether previous additions of They did not. So this PR does not need a NEWS entry. As for other places to add I am merging this PR now because it was open enough time and I do not want to lost it again. Thank you for your contribution @petdance. |
|
I'm glad to help. i'll keep looking for other |
_Py_HashPointerin Python/pyhash.c takes a pointer argument that can be madeconst. This will let compiler and static analyzers know that the pointer's target is not modified. You can also change calls to_Py_HashPointerthat are down-casting pointers.For example, in
meth_hashin Objects/methodobject.c, this call can have thevoid *changed toconst void *.https://bugs.python.org/issue39127