Skip to content

Comments

Use cython's language level 3 and update README and setup.py#2077

Merged
sgillies merged 1 commit intomasterfrom
cython-lang-level-3
Jan 8, 2021
Merged

Use cython's language level 3 and update README and setup.py#2077
sgillies merged 1 commit intomasterfrom
cython-lang-level-3

Conversation

@sgillies
Copy link
Member

@sgillies sgillies commented Jan 8, 2021

Resolves #2064

@sgillies sgillies added this to the 1.2.0 milestone Jan 8, 2021
# If input was empty, WKT can be too; otherwise the conversion
# didn't work properly and indicates an error.
return wkt != NULL and bool(crs) == (wkt[0] != '\0')
return wkt != NULL and bool(crs) == (wkt[0] != 0)
Copy link
Member Author

Choose a reason for hiding this comment

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

With language-level=3, single chars such as wkt[0] are ints.

out, err = p.communicate()
return out


Copy link
Member Author

Choose a reason for hiding this comment

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

No longer needed.

@sgillies sgillies merged commit 176c09d into master Jan 8, 2021
@sgillies sgillies deleted the cython-lang-level-3 branch January 8, 2021 19:32
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.

Python and Numpy version support for 1.2.0

1 participant