Skip to content

ENH: np.testing.decorators: Use Py3k compatible raise syntax - #353

Merged
charris merged 1 commit into
numpy:masterfrom
bfroehle:py3k_raise
Jul 12, 2012
Merged

charris merged 1 commit into
numpy:masterfrom
bfroehle:py3k_raise

Conversation

@bfroehle

Copy link
Copy Markdown
Contributor

IPython is currently working towards improved Py3k support in the master branch (i.e., reducing the number of necessary 2to3 fixes). As you may know, we maintain a copy of numpy.testing.decorators so as to eliminate external dependencies.

It'd be convenient for us if you were to update the raise syntax in this one file. There is only one instance of raise E, V (the rest use the newer raise E(V) syntax) so it's a simple one line update.

@travisbot

Copy link
Copy Markdown

This pull request passes (merged 18d6b8f into 143fb18).

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.

Good catch. We tried to clean up all the string error syntax, but obviously we missed some.

@charris

charris commented Jul 12, 2012

Copy link
Copy Markdown
Member

Further fixes like this are welcome.

charris added a commit that referenced this pull request Jul 12, 2012
ENH: np.testing.decorators: Use Py3k compatible raise syntax
@charris
charris merged commit 24b74a2 into numpy:master Jul 12, 2012
luyahan pushed a commit to plctlab/numpy that referenced this pull request Apr 25, 2024
feat: Add vcgez[q|d|s]_[s8|s16|s32|s64|f32|f64]
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.

3 participants