bpo-11572: Make several minor improvements to copy module#207
bpo-11572: Make several minor improvements to copy module#207berkerpeksag wants to merge 1 commit into
Conversation
|
Another possible cleanup opportunity (added in https://hg.python.org/cpython/rev/c4715c9f442f) try:
issc = issubclass(cls, type)
except TypeError: # cls is not a class
issc = False
if issc:
# treat it as a regular class:
return _copy_immutable(x) |
Sorry, something went wrong.
|
To try and help move older pull requests forward, we are going through and backfilling 'awaiting' labels on pull requests that are lacking the label. Based on the current reviews, the best we can tell in an automated fashion is that a core developer requested changes to be made to this pull request. If/when the requested changes have been made, please leave a comment that says, |
Sorry, something went wrong.
569fdda to
90d74b3
Compare
June 14, 2018 00:44
|
Thanks for the review, Serhiy. I've addressed all of your review comments except the ones about Also, I still need to a NEWS entry. |
Sorry, something went wrong.
|
@serhiy-storchaka can you take a look at the latest version of this PR? |
Sorry, something went wrong.
serhiy-storchaka
left a comment
There was a problem hiding this comment.
The PR contains not just cleanup, but leads to some user-visible behavior changes. They are not consistent with pickle implementations, and it is not obvious that they are purposed. I suggest to revert these changes, and open a separate issue for discussing about the meaning of setting None to special methods like __reduce_ex__, __getstate__ and __setstate__.
Sorry, something went wrong.
90d74b3 to
3b49327
Compare
July 9, 2018 17:59
|
@serhiy-storchaka thanks for the review! Reverted them in 3b49327. Do you think we need a NEWS entry after 3b49327? |
Sorry, something went wrong.
|
Thank you @berkerpeksag. I have no opinion about the NEWS entry. |
Sorry, something went wrong.
|
Ok, I'm not going to add a NEWS entry since it's just a cleanup PR. |
Sorry, something went wrong.
* When doing getattr lookups with a default of "None", it now uses an "is" comparison against None which is more correct * Removed outdated code Patch by Brandon Rhodes.
3b49327 to
0a88fde
Compare
July 9, 2018 19:31
Addressed Serhiy's review comments.
|
@serhiy-storchaka do you know what the problem with the build? I can't reproduce it locally. It looks like something is wrong with the patchcheck script. |
Sorry, something went wrong.
cframeobject.h and channelobject.h are now empty and obsolete. They will be removed by the next commit.
Move the headers to Include and Include/internal, fix the #include directives and update Makefile.in.pre and PCbuild-files.
…ols/msi Remove the special handling of Stackless include files from the msi-installer.
Remove the Stackless source dir from the include-path.
Remove the Stackless specific include-path.
…c headers Move the definition of the macro SLP_SEH32 to stackless_struct.h
Names of "public" header files use prefix "stackless", all other use "slp". This is consistent with symbol names.
now uses an "is" comparison against None which is both
faster and more correct
called in Python 3
Patch by Brandon Rhodes.
https://bugs.python.org/issue11572