Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
th
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
1.
▲
by
th
11mo ago
It seems like a number of the "DEI is anti-merit discrimination" messages in this thread are overlooking how DEI work usually works. A relevant tweet from 2016 ( https://x.com/jessicamckellar/status/737299
2.
▲
by
th
1y ago
I created a tool over the weekend to guess the f-string you seek: http://pym.dev/format I'm also the author of https://fstring.help/cheat/ (though not of the homepage) and I haven't yet linke
3.
▲
Perplexity AI Is Lying About Their User Agent
(daringfireball.net)
12 points
by
th
2y ago
|
1 comments
4.
▲
by
th
2y ago
Thank you so much for your kind words! I'm really glad you found Python Morsels useful.
5.
▲
by
th
2y ago
Something important to note: many folks take their masks off for a picture, then put their masks back on. This leads non-candid photos having far few masks in them.
6.
▲
by
th
2y ago
This is such a thorough post. Thanks Kati! I think this post will be great for PyCon newcomers. Getting the chance to experience a play-by-play of a past PyCon before attending your first PyCon might be even more useful than reading the var
7.
▲
by
th
2y ago
Al Sweigart, Eric Matthes, Reuven Lerner (also in this comment section), and so many folks who've made blog posts, books, code, or something else that's inspired you really do love it when you tell them. I know I'm always ple
8.
▲
by
th
2y ago
Until the 3.13 release, here's a trick on pasting: the paste function from https://nedbatchelder.com/blog/201904/startuppy.html will accept pasted input and then evaluate it as code (after EOF is sent via Ctr
9.
▲
Time complexities of Python's data structures
(pythonmorsels.com)
1 points
by
th
2y ago
|
0 comments
10.
▲
by
th
2y ago
> Trey, if you're reading this, hello from a former TA! Hi former TA! It's been a long time. > Unfortunately in almost every case, dunder methods made it harder for me to collaborate with other people on the same codebase. I
11.
▲
by
th
2y ago
I've never seen a ___tunder___ method, but I've definitely seen a _sunder_ method floating around in some third-party library years back. A simple _wondur method is probably a bit more common though.
12.
▲
Disallow import * for your Python package
(pypi.org)
3 points
by
th
3y ago
|
0 comments
13.
▲
Using Python's List Constructor
(pythonmorsels.com)
3 points
by
th
4y ago
|
0 comments
14.
▲
by
th
7y ago
Great point. I do agree that those who use sets heavily should probably know about frozenset. :) I've never very rarely seen these used in production code though. I'm also not as strongly biased toward them because set objects in
15.
▲
by
th
7y ago
Thanks for noting this. I rarely look at my site on mobile and hadn't noticed how big that widget was. I just spent a few minutes making it less visually obtrusive. I may figure out more ways to improve it later.
16.
▲
by
th
7y ago
Thanks Santiago! :)
17.
▲
Python built-ins worth learning
(treyhunner.com)
288 points
by
th
7y ago
|
68 comments
18.
▲
Overusing list comprehensions and generator expressions in Python
(treyhunner.com)
4 points
by
th
7y ago
|
0 comments
19.
▲
Unique sentinel values and identity checks in Python
(treyhunner.com)
2 points
by
th
8y ago
|
0 comments
20.
▲
Why you should be using pathlib (Python)
(treyhunner.com)
3 points
by
th
8y ago
|
0 comments
21.
▲
by
th
8y ago
I'm curious about what browser you're using. Side note: I typically bold many sentences in my articles, but this is the first article in a while where I actually bolded nearly no words at all. I wonder what my other articles look
22.
▲
by
th
8y ago
It's also not an issue in Python's dictionary literal syntax: >>> { {'a': 1}, {'a': 2}} {'a': 2} So the multiple keyword argument problem isn't an inherent issue with so much as it
23.
▲
by
th
8y ago
Thanks for reporting this issue!
24.
▲
How to make an iterator in Python
(treyhunner.com)
2 points
by
th
8y ago
|
0 comments
25.
▲
How to have a great first PyCon
(treyhunner.com)
2 points
by
th
8y ago
|
0 comments
26.
▲
Keyword (Named) Arguments in Python: How to Use Them
(treyhunner.com)
4 points
by
th
8y ago
|
1 comments
27.
▲
Loop better: A deeper look at iteration in Python
(opensource.com)
10 points
by
th
8y ago
|
0 comments
28.
▲
Multiple assignment and tuple unpacking improve Python code readability
(treyhunner.com)
3 points
by
th
9y ago
|
0 comments
29.
▲
Python: range is not an iterator
(treyhunner.com)
1 points
by
th
9y ago
|
0 comments
30.
▲
by
th
9y ago
I think you may be taking the word oddity different than I meant it. These are things that trip up my students when they're learning Python. I left out error messages (and occasionally other things) because Twitter. I don't think
More ›