-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
case of variables in autolev parsing #16580
base: master
Are you sure you want to change the base?
Conversation
✅ Hi, I am the SymPy bot (v145). I'm here to help you write a release notes entry. Please read the guide on how to write release notes. Your release notes are in good order. Here is what the release notes will look like:
This will be added to https://github.com/sympy/sympy/wiki/Release-Notes-for-1.5. Note: This comment will be updated with the latest check if you edit the pull request. You need to reload the page to see it. Click here to see the pull request description that was parsed.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I found more than 150 hits for .lower() in _listener_autolev_antlr
Created a PR changing just the .lower() function in the file.
Also, the PR fails build tests for test_autolev
Please fix that
else: | ||
name1 = ctx.ID().getText().lower() + str(i) | ||
name1 = ctx.ID().getText() + str(i) | ||
else: | ||
name1 = ctx.ID().getText().lower() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
name1 = ctx.ID().getText().lower() | |
name1 = ctx.ID().getText() |
@Sc0rpi0n101 I think we don't have to remove |
Wasn't the issue you referenced: #15166 state that you should avoid changing to lowercase at all? Well, it's your patch. You can decide, if you don't want every change and only specific changes, I'll review my PR. For now, focus on the build tests first. It is important to make sure the patch is working and doesn't break SymPy first. |
Codecov Report
@@ Coverage Diff @@
## master #16580 +/- ##
============================================
- Coverage 73.753% 73.62% -0.134%
============================================
Files 619 619
Lines 158816 159308 +492
Branches 37247 37490 +243
============================================
+ Hits 117133 117283 +150
- Misses 36262 36599 +337
- Partials 5421 5426 +5 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Your patch has a syntax error.
Also, there will be many function calls for parse_autolev with only two arguments provided.
So, if you're introducing a new argument, you need to give it a default value whatever is being used now or change every function call.
can someone please review this pr? |
The keyword is not implemented. Whether it is True or False, the same output is going to be generated, right? |
From the OP above and the release note it's not clear to me what this PR does. Can you explain it more? |
Fixes #15166
References to other Issues or PRs
Brief description of what is fixed or changed
The output should not be in lower case
So, removed
.lower()
at some places and includedlower_case=True
Other comments
please let me know which other places
.lower()
is to be removed if I have missed some placesRelease Notes
.lower()
at some placeslower_case