Skip to content

bpo-38539: update demo files#16890

Merged
rhettinger merged 2 commits into
python:masterfrom
ju-sh:update-demo-files
Oct 23, 2019
Merged

bpo-38539: update demo files#16890
rhettinger merged 2 commits into
python:masterfrom
ju-sh:update-demo-files

Conversation

@ju-sh

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

Copy link
Copy Markdown
Contributor
  • 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
Comment thread Tools/demo/README
sortvisu.py GUI programming: Visualization of different sort algorithms.
ss1.py GUI/Application programming: A simple spreadsheet application.
vector.py Python basics: A vector class with demonstrating special methods. No newline at end of file
beer.py Well-known programming example: Bottles of beer.

Copy link
Copy Markdown
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.

@ju-sh ju-sh Oct 22, 2019

Copy link
Copy Markdown
Contributor Author

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
Copy Markdown

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.

Comment thread Tools/demo/spreadsheet.py
return total

class Sheet:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

unnecessary line?

Comment thread Tools/demo/spreadsheet.py
SheetParser(self).parsefile(f)

class SheetParser:

Copy link
Copy Markdown
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
Copy Markdown
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?

Comment thread Tools/demo/spreadsheet.py
SheetParser(self).parsefile(f)

class SheetParser:

Copy link
Copy Markdown
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?

Comment thread Tools/demo/spreadsheet.py
cell = self.getcell(x, y)
if hasattr(cell, 'recalc'):
return cell.recalc(self.ns)
else:

Copy link
Copy Markdown
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

ju-sh commented Oct 22, 2019

Copy link
Copy Markdown
Contributor Author

I have made the requested changes; please review again

@bedevere-bot

Copy link
Copy Markdown

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