FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

bpo-30537: use PyNumber in itertools.islice instead of PyLong by wroberts · Pull Request #1918 · python/cpython · GitHub

Repository navigation

bpo-30537: use PyNumber in itertools.islice instead of PyLong - #1918

Merged
rhettinger merged 3 commits into
python:masterfrom
wroberts:bpo-30537-itertools-use-pynumber
Jun 8, 2017
Merged

rhettinger merged 3 commits into
python:masterfrom
wroberts:bpo-30537-itertools-use-pynumber

Conversation

wroberts commented Jun 2, 2017

Copy link
Copy Markdown
Contributor

Taking a stab at addressing bpo-30537; replace PyLong_AsSsize_t in itertools with PyNumber_AsSsize_t.

Copy link
Copy Markdown

Hello, and thanks for your contribution!

I'm a bot set up to make sure that the project can legally accept your contribution by verifying you have signed the PSF contributor agreement (CLA).

Unfortunately we couldn't find an account corresponding to your GitHub username on bugs.python.org (b.p.o) to verify you have signed the CLA (this might be simply due to a missing "GitHub Name" entry in your b.p.o account settings). This is necessary for legal reasons before we can look at your contribution. Please follow the steps outlined in the CPython devguide to rectify this issue.

Thanks again to your contribution and we look forward to looking at it!

wroberts commented Jun 2, 2017

Copy link
Copy Markdown
Contributor Author

Request re-check of CLA (I have signed and should be verified)

wroberts force-pushed the bpo-30537-itertools-use-pynumber branch from 82fd551 to 4c73e4d Compare June 2, 2017 17:41
serhiy-storchaka added the type-feature A feature request or enhancement label Jun 3, 2017

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Needed tests and an entry in Misc/NEWS.

Comment thread Modules/itertoolsmodule.c Outdated
if (robj != Py_None) {
if (!PyLong_Check(robj)) {
PyErr_SetString(PyExc_TypeError, "Expected int as r");
if (!PyNumber_Check(robj)) {

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Use PyIndex_Check.

wroberts changed the title bpo-30537: use PyNumber in itertools instead of PyLong bpo-30537: use PyNumber in itertools.islice instead of PyLong Jun 6, 2017
rhettinger merged commit 0ecdc52 into python:master Jun 8, 2017
wroberts deleted the bpo-30537-itertools-use-pynumber branch June 8, 2017 08:44
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type-feature A feature request or enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants


Back | FazBrowse Home | New Git URL