MHN

th

karma 1,013·joined March 16, 2010·profile on HN

My name is Trey Hunner. I help Python developers & teams level-up their skills.

https://www.pythonmorsels.com
http://truthful.technology
http://www.treyhunner.com

[ my public key: https://keybase.io/treyhunner; my proof: https://keybase.io/treyhunner/sigs/BZJaTqLkF7FN0VfkNWSvBpSYH0KUmIsrTshacYyW-to ]

Recent activity

  1. It seems like a number of the "DEI is anti-merit discrimination" messages in this...
  2. I created a tool over the weekend to guess the f-string you seek:...
  3. Perplexity AI Is Lying About Their User Agent (daringfireball.net)
    12 points by th·893 days ago·1 comment
  4. Thank you so much for your kind words! I'm really glad you found Python Morsels useful.
  5. Something important to note: many folks take their masks off for a picture, then put...
    th·910 days ago·on PyCon US 2024 Recap
  6. This is such a thorough post. Thanks Kati! I think this post will be great for PyCon...
    th·910 days ago·on PyCon US 2024 Recap
  7. Al Sweigart, Eric Matthes, Reuven Lerner (also in this comment section), and so many...
    th·910 days ago·on PyCon US 2024 Recap
  8. Until the 3.13 release, here's a trick on pasting: the paste function from...
  9. Time complexities of Python's data structures (pythonmorsels.com)
    1 point by th·957 days ago·discuss
  10. > Trey, if you're reading this, hello from a former TA! Hi former TA! It's been a long...
  11. I've never seen a ___tunder___ method, but I've definitely seen a _sunder_ method...
  12. Disallow import * for your Python package (pypi.org)
    3 points by th·1339 days ago·discuss
  13. Using Python's List Constructor (pythonmorsels.com)
    3 points by th·1370 days ago·discuss
  14. Great point. I do agree that those who use sets heavily should probably know about...
  15. Thanks for noting this. I rarely look at my site on mobile and hadn't noticed how big...
  16. Thanks Santiago! :)
  17. Python built-ins worth learning (treyhunner.com)
    288 points by th·2750 days ago·68 comments
  18. Overusing list comprehensions and generator expressions in Python (treyhunner.com)
    4 points by th·2805 days ago·discuss
  19. Unique sentinel values and identity checks in Python (treyhunner.com)
    2 points by th·2812 days ago·discuss
  20. Why you should be using pathlib (Python) (treyhunner.com)
    3 points by th·2901 days ago·discuss
  21. I'm curious about what browser you're using. Side note: I typically bold many...
    th·2971 days ago·on Asterisks in Python
  22. It's also not an issue in Python's dictionary literal syntax: >>> {{'a': 1}, {'a': 2}}...
    th·2971 days ago·on Asterisks in Python
  23. Thanks for reporting this issue!
    th·2971 days ago·on Asterisks in Python
  24. How to make an iterator in Python (treyhunner.com)
    2 points by th·3082 days ago·discuss
  25. How to have a great first PyCon (treyhunner.com)
    2 points by th·3136 days ago·discuss
  26. Keyword (Named) Arguments in Python: How to Use Them (treyhunner.com)
    4 points by th·3162 days ago·1 comment
  27. Loop better: A deeper look at iteration in Python (opensource.com)
    10 points by th·3163 days ago·discuss
  28. Multiple assignment and tuple unpacking improve Python code readability (treyhunner.com)
    3 points by th·3189 days ago·discuss
  29. Python: range is not an iterator (treyhunner.com)
    1 point by th·3195 days ago·discuss
  30. I think you may be taking the word oddity different than I meant it. These are things...
    th·3402 days ago·on Python Oddities