question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add `"".join()` to checker `C407`

See original GitHub issue

"".join() accepts generators

>>> ",".join(str(i) for i in range(3))
'0,1,2'

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
dvorapacommented, Apr 5, 2020

Actually the linter should enforce ",".join([str(i) for i in range(3)]) this is faster because join internally converts all generators to lists

It seems it is not much faster these days (the original measurement in SO is 8 years old)

1reaction
graingertcommented, Aug 28, 2019

Actually the linter should enforce ",".join([str(i) for i in range(3)]) this is faster because join internally converts all generators to lists

Read more comments on GitHub >

github_iconTop Results From Across the Web

Check constraint on join - sql - Stack Overflow
Add a check constraint to utilize the function. ALTER TABLE Event ADD CONSTRAINT CHK_Event CHECK( dbo.CheckEvent(id_param , id_calendar) = 1).
Read more >
Ricoh Customer Support - How to configure scan to folder
www.ricoh.com.auRicoh Customer Support - How to configure scan to folderhttp://www.visualdomain.com.au - Video Production.
Read more >
Best practice between using LEFT JOIN or NOT EXISTS
Perform the two test SELECT statement variants: SELECT * FROM dbo.A LEFT JOIN dbo.B ON A.A_ID = B.B_ID WHERE B.B_ID IS NULL; SELECT...
Read more >
Joining Data with dplyr - RPubs
Add the correct verb, table, and joining column parts ... You joined together multiple tables using inner_join() and the pipe!
Read more >
The London Chronicle - Volume 111 - Page 77 - Google Books Result
1 to join the troops in his Majefty's fhip Modelte , which the Admiral ... As any check of the attempt of our...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found