Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

MNT: rename internal variable#16425

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

tacaswell
Copy link
Member

PR Summary

When I wrote this code ~4.5 years ago I was a bit cranky and used a
very sarcastic variable name (snowflake) to handle a class of special
cases when parsing math text. It has recently come to light that this
name can make it into user visible error messages. This renames the
variable to a less sarcastic and more descriptive variable name (it
handles the case of symbols who's names start with a valid accent; we
should parse it as the symbol, not an accent on the rest of the symbol
name).

PR Checklist

  • Has Pytest style unit tests
  • Code isFlake 8 compliant

dstansby reacted with thumbs up emojipharshalp and story645 reacted with laugh emoji
@tacaswelltacaswell added this to thev3.3.0 milestoneFeb 6, 2020
@codecov
Copy link

codecovbot commentedFeb 6, 2020
edited
Loading

Codecov Report

Merging#16425 intomaster willdecrease coverage by0.30%.
The diff coverage isn/a.

Impacted file tree graph

@@            Coverage Diff             @@##           master   #16425      +/-   ##==========================================- Coverage   80.85%   80.54%   -0.31%==========================================  Files         307      307                Lines       75745    74407    -1338       Branches     9690     9688       -2     ==========================================- Hits        61245    59933    -1312+ Misses      11961    11934      -27- Partials     2539     2540       +1
Impacted FilesCoverage Δ
lib/matplotlib/testing/jpl_units/StrConverter.py15.55% <0.00%> (-5.28%)⬇️
lib/matplotlib/testing/jpl_units/EpochConverter.py69.69% <0.00%> (-4.67%)⬇️
lib/matplotlib/docstring.py65.00% <0.00%> (-3.19%)⬇️
...b/matplotlib/testing/jpl_units/UnitDblConverter.py65.85% <0.00%> (-2.33%)⬇️
lib/matplotlib/backend_managers.py20.95% <0.00%> (-2.30%)⬇️
lib/matplotlib/pyplot.py71.72% <0.00%> (-1.18%)⬇️
lib/matplotlib/animation.py66.71% <0.00%> (-1.08%)⬇️
lib/matplotlib/units.py88.57% <0.00%> (-1.04%)⬇️
lib/matplotlib/backends/backend_webagg.py59.14% <0.00%> (-0.98%)⬇️
lib/matplotlib/backend_tools.py32.57% <0.00%> (-0.94%)⬇️
... and152 more

Continue to review full report at Codecov.

Legend -Click here to learn more
Δ = absolute <relative> (impact),ø = not affected,? = missing data
Powered byCodecov. Last updatee4dbf4e...9a7ddd3. Read thecomment docs.

When I wrote this code ~4.5 years ago I was a bit cranky and used avery sarcastic variable name (snowflake) to handle a class of specialcases when parsing math text.  It has recently come to light that thisname can make it into user visible error messages.  This renames thevariable to a less sarcastic and more descriptive variable name (ithandles the case of symbols who's names start with a valid accent; weshould parse it as the symbol, not an accent on the rest of the symbolname).
Copy link
Member

@dstansbydstansby left a comment

Choose a reason for hiding this comment

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

if CI passes

@timhoffmtimhoffm merged commitfa21675 intomatplotlib:masterFeb 7, 2020
@tacaswelltacaswell deleted the mnt_rename_internals branchFebruary 7, 2020 22:42
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@anntzeranntzeranntzer left review comments

@jklymakjklymakjklymak approved these changes

@dstansbydstansbydstansby approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
v3.3.0
Development

Successfully merging this pull request may close these issues.

5 participants
@tacaswell@anntzer@jklymak@dstansby@timhoffm

[8]ページ先頭

©2009-2025 Movatter.jp