Skip to content

Conversation

@sbc100
Copy link
Collaborator

@sbc100 sbc100 commented Feb 4, 2021

Run the new test on windows to prove that it works there.

This was reverted in #13410

@sbc100
Copy link
Collaborator Author

sbc100 commented Feb 5, 2021

The updated test seems to pass fine on mac and windows here... without any changed :-/

Do you have any links to the failing builds? Any idea why they failed?

@sbc100
Copy link
Collaborator Author

sbc100 commented Feb 5, 2021

Base automatically changed from master to main March 8, 2021 23:49
@sbc100 sbc100 force-pushed the reland branch 5 times, most recently from a409584 to 68c4178 Compare April 23, 2021 03:18
Run the new test on windows to prove that it works there.

This was reverted in 13410
@sbc100
Copy link
Collaborator Author

sbc100 commented Aug 6, 2021

View with "ignore whitespace" to better see what changed.

return files
except IOError:
return []
files.append(f)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Somewhat indifferent about changing files += [f] to files.append(f), though is there a specific reason to favor append instead of the += form? iiuc the array += [element] syntax has been extensively used in the past in this repo?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah I don't feel strongly about it.

I think its a good habit to get into when building lists in python because it avoids creating the extra lists each time and (sometimes importantly) avoids re-binding the variable each time. (When you do += you end up throwing away both the old list and the single element list on the RHS. Not that is performance not relevant in this particular case :)

@juj
Copy link
Collaborator

juj commented Aug 6, 2021

lgtm, nice cleanups!

@sbc100 sbc100 merged commit 932b3e0 into main Aug 10, 2021
@sbc100 sbc100 deleted the reland branch August 10, 2021 16:47
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.

4 participants