Comprehensive Python Cheatsheet (2018)
gto76.github.io
Comprehensive Python Cheatsheet (2018)
1–10 of 83 posts
Re: Comprehensive Python Cheatsheet (2018)
#2I like the clean look and the overall way it is presented. The examples using angle brackets (eg.: .append() ) is highly legible and the one column format is faster to scan.
Re: Comprehensive Python Cheatsheet (2018)
#3Very good page. But the best python cheat sheet is help(the_thing). python has the second best ever help and discoverability (after Matlab of course!)
Re: Comprehensive Python Cheatsheet (2018)
#4Can we please change the current clickbait title (Best Python Cheatsheet Ever!) to the original one (Comprehensive Python Cheatsheet)?
Re: Comprehensive Python Cheatsheet (2018)
#5Very good page. But the best python cheat sheet is help(the_thing) . python has the second best ever help and discoverability (after Matlab of course!)
Yes! And implementing this help text for your library is free. It just assembles the docstrings found in your code. And then your favourite text editor can use this for autocomplete and such as well.
Treating docstrings as an actual reflectable part of a class/function and not just "comments to be ignored by a parser" is brilliant.
Re: Comprehensive Python Cheatsheet (2018)
#6Now, this I understand. I have to sit down and translate it to Rust :-)
Re: Comprehensive Python Cheatsheet (2018)
#7Nice, but why does this needs JS to be rendered ?
Re: Comprehensive Python Cheatsheet (2018)
#8There are several items that are dubious at best. Why would you use
no_duplicates = list(dict.fromkeys())
instead of no_duplicates = list(set())
?Re: Comprehensive Python Cheatsheet (2018)
#9There are several items that are dubious at best. Why would you use no_duplicates = list(dict.fromkeys( )) instead of no_duplicates = list(set( )) ?
>>> list(dict.fromkeys([3, 2, 1]))
[3, 2, 1]
>>> list(set([3, 2, 1]))
[1, 2, 3]