Skip to content

bpo-30463 ABC has empty __slots__, with unittest#1822

Merged
serhiy-storchaka merged 5 commits into
python:masterfrom
aaronchall:abc_slots
Jun 6, 2017
Merged

bpo-30463 ABC has empty __slots__, with unittest#1822
serhiy-storchaka merged 5 commits into
python:masterfrom
aaronchall:abc_slots

Conversation

@aaronchall

Copy link
Copy Markdown
Contributor

No description provided.

@mention-bot

Copy link
Copy Markdown

@aaronchall, thanks for your PR! By analyzing the history of the files in this pull request, we identified @benjaminp, @tiran and @ezio-melotti to be potential reviewers.

@ilevkivskyi ilevkivskyi left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is a simple but good idea.

@aaronchall

Copy link
Copy Markdown
Contributor Author

Would be cool to have ABC available in 2.7...

So what happens next, should I or someone else click "Close and comment"?

@ilevkivskyi

Copy link
Copy Markdown
Member

Would be cool to have ABC available in 2.7...

It is not possible at this stage.

So what happens next, should I or someone else click "Close and comment"?

This PR can be approved and merged by someone with commit rights.
Maybe @serhiy-storchaka has time for this?

@serhiy-storchaka

Copy link
Copy Markdown
Member

LGTM. Please add a Misc/NEWS entry. Don't forget "Patch by Aaron Hall." at the end.

Comment thread Misc/NEWS
- Issue #25532: inspect.unwrap() will now only try to unwrap an object
sys.getrecursionlimit() times, to protect against objects which create a new
object on every attribute access.

@ilevkivskyi ilevkivskyi Jun 6, 2017

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please remove the extra whitespace you added?

@aaronchall

Copy link
Copy Markdown
Contributor Author

trailing whitespace removed and tests passed

@serhiy-storchaka serhiy-storchaka left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't much matter, but usually Misc/NEWS entries are added at the start of the section.

In any case the PR LGTM.

@serhiy-storchaka serhiy-storchaka merged commit ff48739 into python:master Jun 6, 2017
@aaronchall aaronchall deleted the abc_slots branch June 6, 2017 20:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants