Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
pizzaburek
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
1.
▲
by
pizzaburek
4y ago
For my personal Python projects I set a hard limit in the 94-96 range. That's wide enough that I actualy adhere to it instead of just ignoring it. PEP8's and Google style guide's limits of 79 and 80 are way to narrow for a la
2.
▲
Best Python Reference Ever
(gto76.github.io)
5 points
by
pizzaburek
6y ago
|
0 comments
3.
▲
Best Python Reference Ever
(github.com)
120 points
by
pizzaburek
7y ago
|
19 comments
4.
▲
Comprehensive Python Cheatsheet (2018)
(github.com)
2 points
by
pizzaburek
7y ago
|
0 comments
5.
▲
Best Python Cheatsheet Ever
(gto76.github.io)
3 points
by
pizzaburek
7y ago
|
0 comments
6.
▲
by
pizzaburek
8y ago
My personal opinion is that `list_` is among the worst possible variable names (together with `bar` and `foo`). It's non-descriptive, ugly, hard to recognize, looks scary to beginners and maybe worst of all it's easy to forget the
7.
▲
by
pizzaburek
8y ago
Yes, although there is a saying that "every generator is an iterator, but not every iterator is a generator". But then again generator has a bunch of methods (close, gi_frame, gi_yieldfrom, throw, gi_code, gi_running, send) that i
8.
▲
by
pizzaburek
8y ago
MIND = BLOWN
9.
▲
by
pizzaburek
8y ago
Will look into it, thanks for info.
10.
▲
by
pizzaburek
8y ago
The whole cheatsheet is clearly in Python 3, where the same doc page that you linked states: Performing list(d) on a dictionary returns a list of all the keys used in the dictionary, in insertion order ...
11.
▲
by
pizzaburek
8y ago
Because it's rendered directly from README.md. That way it's easier for me, because I don't have to render it every time I make a change (I make a lot of little edits all the time), and project's Github page ( https:
12.
▲
by
pizzaburek
8y ago
>>> list(dict.fromkeys([3, 2, 1])) [3, 2, 1] >>> list(set([3, 2, 1])) [1, 2, 3]
13.
▲
Comprehensive Python Cheatsheet (2018)
(gto76.github.io)
335 points
by
pizzaburek
8y ago
|
81 comments
14.
▲
Make Linux Less Painful with Standard Aliases
(github.com)
1 points
by
pizzaburek
11y ago
|
0 comments
15.
▲
200+ Handy Bash Shell Aliases for Linux / Unix / Mac OS X
(github.com)
2 points
by
pizzaburek
11y ago
|
0 comments
16.
▲
by
pizzaburek
11y ago
Too bad that a far more interesting discussion about Libertarian communism got flagged (or at least is not visible on a main page). https://news.ycombinator.com/item?id=10351830
17.
▲
by
pizzaburek
11y ago
It takes too long to compile otherwise, and I didn't want people to give up during compilation... You can run 'make optimize' to use -O1