-
-
Notifications
You must be signed in to change notification settings - Fork 31.4k
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
bpo-38539: update demo files #16890
Conversation
- changed 'while 1' usages to 'while True' - rename ss1.py
beer.py Well-known programming example: Bottles of beer. |
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.
Please undo all the gratuitous whitespace changes and stick with the ones we agreed to.
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.
@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.
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 |
return total | ||
|
||
class Sheet: | ||
|
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.
unnecessary line?
SheetParser(self).parsefile(f) | ||
|
||
class SheetParser: | ||
|
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.
unnecessary line?
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.
@eamanu I just renamed that file. Will it be better to remove that line?
SheetParser(self).parsefile(f) | ||
|
||
class SheetParser: | ||
|
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.
@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: |
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.
@eamanu @rhettinger Can we remove this else
? It is right after a return
in its if
.
I have made the requested changes; please review again |
Thanks for making the requested changes! @rhettinger: please review the changes made to this pull request. |
https://bugs.python.org/issue38539