Skip to content
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

bpo-38539: update demo files #16890

Merged
merged 2 commits into from
Oct 23, 2019
Merged

Conversation

ju-sh
Copy link
Contributor

@ju-sh ju-sh commented Oct 22, 2019

  • changed 'while 1' usages to 'while True'
  • rename ss1.py

https://bugs.python.org/issue38539

 - changed 'while 1' usages to 'while True'
 - rename ss1.py
@rhettinger rhettinger self-assigned this Oct 22, 2019
beer.py Well-known programming example: Bottles of beer.
Copy link
Contributor

Choose a reason for hiding this comment

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

Please undo all the gratuitous whitespace changes and stick with the ones we agreed to.

Copy link
Contributor Author

@ju-sh ju-sh Oct 22, 2019

Choose a reason for hiding this comment

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

@rhettinger But when ss1.py is renamed to spreadsheet.py in the README, it will touch the next column. How should we go around that?

The original file had 4 spaces between the longest line in the first column and the second column.

@bedevere-bot
Copy link

A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated.

Once you have made the requested changes, please leave a comment on this pull request containing the phrase I have made the requested changes; please review again. I will then notify any core developers who have left a review that you're ready for them to take another look at this pull request.

return total

class Sheet:

Copy link
Contributor

Choose a reason for hiding this comment

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

unnecessary line?

SheetParser(self).parsefile(f)

class SheetParser:

Copy link
Contributor

Choose a reason for hiding this comment

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

unnecessary line?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@eamanu I just renamed that file. Will it be better to remove that line?

SheetParser(self).parsefile(f)

class SheetParser:

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@eamanu I just renamed that file. Will it be better to remove that line?

cell = self.getcell(x, y)
if hasattr(cell, 'recalc'):
return cell.recalc(self.ns)
else:
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@eamanu @rhettinger Can we remove this else? It is right after a return in its if.

@ju-sh
Copy link
Contributor Author

ju-sh commented Oct 22, 2019

I have made the requested changes; please review again

@bedevere-bot
Copy link

Thanks for making the requested changes!

@rhettinger: please review the changes made to this pull request.

@rhettinger rhettinger merged commit a4aeb33 into python:master Oct 23, 2019
jacobneiltaylor pushed a commit to jacobneiltaylor/cpython that referenced this pull request Dec 5, 2019
shihai1991 pushed a commit to shihai1991/cpython that referenced this pull request Jan 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants