Skip to content

Small-scale polishes and cleanups#2

Open
perimosocordiae wants to merge 1 commit into
danclark5:masterfrom
perimosocordiae:patch-1
Open

Small-scale polishes and cleanups#2
perimosocordiae wants to merge 1 commit into
danclark5:masterfrom
perimosocordiae:patch-1

Conversation

@perimosocordiae

Copy link
Copy Markdown
Contributor

Feel free to use any or all of these changes in v0.4 if you don't want to touch v0.3. I didn't change any behavior, but updated some cosmetics:

  • the print message now shows the (i) option.
  • the input carets now have a space before user input starts
  • some Python idioms (while True, if some_string:, generator comprehensions, etc)
  • the command for writing an image now says where the file was created
  • some string concatenation avoided by using str.join

The last bullet should be an efficiency improvement. It's much faster to accumulate strings in a list and then join them all at once than to concatenate each one in a loop.

Feel free to use any or all of these changes in v0.4 if you don't want to touch v0.3. I didn't change any behavior, but updated some cosmetics:

 - the print message now shows the (i) option.
 - the input carets now have a space before user input starts
 - some Python idioms (`while True`, `if some_string:`, generator comprehensions, etc)
 - the command for writing an image now says where the file was created
 - some string concatenation avoided by using `str.join`

The last bullet should be an efficiency improvement. It's much faster to accumulate strings in a list and then join them all at once than to concatenate each one in a loop.
@danclark5

Copy link
Copy Markdown
Owner

Just finally looking at this now. Thanks for the input. I have to concede that your changes are the better way. That said, I'll probably merge them in over the next day or two.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants