Hacker GitHub

← All repos

python/cpython

View on GitHub ↗ ★ 77,791 Python

The Python programming language

548 mentions on Hacker News by 400 people: 44 stories, 504 comments · first 2014-12-30 · latest 2026-10-27

Mentions per year 548 mentions · busiest year 2025 (72)
20082026
  1. …have been a right call), and the PEP (if not withdrawn) was the way to exercise that control. [1] https://github.com/python/cpython/pull/113465#issuecomment-1...
    comment by adrian17 · 2026-10-27 · in Python's experimental JIT to be removed
  2. …pip because the built-in `ssl` module has been patched to reject it. The relevant commit is https://github.com/python/cpython/commit/7dd8b4736a1419750b9... , featuring a rather amusing workaround for security scanners that might mistake…
  3. …to preserve ordering: if timestamp_ms < _last_timestamp_v7: timestamp_ms = _last_timestamp_v7 + 1 https://github.com/python/cpython/blob/8d119208074fef0f652f1... But if you did want "monotonically increasing IDs", as the article suggests,…
  4. …all the bugs autonomously? When is that going to happen? https://github.com/rust-lang/rust/issues https://github.com/python/cpython/issues What about new features? In every thread about Rust, people are clamoring for new features and…
  5. …you know better and PGO isn't very suitable for "configurable" code. 8. Computed goto. See https://github.com/python/cpython/issues/128563 , who doesn't like 10% free performance? 9. Exploiting uninitialised memory for classic party tricks…
    comment by Pannoniae · 2026-10-05 · in Beating the compiler (2024)
  6. …terrible in terms of performance [...] I'm trying to fix at least brew's Python performance a bit: https://github.com/python/cpython/issues/158283
  7. It was never possible to sum() strings. https://github.com/python/cpython/commit/a70b19147fd163744be...
  8. …found many bugs, but it also wasn't just recompile on a new platform. We've seen test failures like https://github.com/python/cpython/issues/151040 And perf support needs to be tested and merged https://github.com/python/cpython/issues/1212…
    comment by emmatyping · 2026-08-30 · in RISC-V is now officially supported by CPython
  9. There is a Configure type subsystem, so you'll see stuff like this: https://github.com/python/cpython/pull/156277/changes#diff-4...
  10. …use (yet?) but cpython does internally contain an implementation of the HAMT data structure: https://github.com/python/cpython/blob/main/Python/hamt.c Set/Delete/Lookup are all O(log(n)) See also: https://github.com/MagicStack/immutables…
  11. …the hesitancy to implement this sort of improvement is rather irritating to me. See also https://github.com/python/cpython/issues/90716 .) By the way, `x in range(n)` is only optimized for integer `x`. Not for nonconvertible types (where…
  12. Because the use case is very niche and nobody optimized it yet. https://github.com/python/cpython/issues/135824#issuecomment... `x in range(n)` is already optimized, but that was easier since the `__contains__` method already existed, but…
  13. …modified the implementemention of str.lower(). That would be bonkers, but that's not what they did. https://github.com/python/cpython/commit/7e109d084d55e7eb The important part is: # B.3 is mostly Python's .lower, except for a number # of…
  14. …write up. Took me down some rabbit holes, but interesting to see the chatter about the fix here: https://github.com/python/cpython/issues/80233 Initially you could reassign True,False but that was verboten with the switch to python 3! The…
  15. …have agreed with this, and then they did the `pathlib.Path` bit of cuteness with the `/` operator: https://github.com/python/cpython/blob/5afbb60e0283caaf34990... And despite my misgivings, it’s really ergonomic.
  16. To be fair, https://github.com/python/cpython has over 5k open github issues, and that's still generally considered fairly reliably technology even if a lot of HN users seem to hate it.
    comment by zahlman · 2026-07-20 · in Claude Code uses Bun written in Rust now
  17. …space .. but a worst-case that can reliably be triggered with chosen input! recent example: https://github.com/python/cpython/issues/149079
  18. …such as in Python, despite that the DOM API is in the Python standard library since forever (see https://github.com/python/cpython/blob/3.14/Lib/xml/dom/mini... for example).
    comment by kccqzy · 2026-07-05 · in Do you hate XML? (2010)
  19. …interpreter, with Clang's __attribute__((preserve_none)) ABI, just like Python did recently: https://github.com/python/cpython/issues/128563
    comment by Koromix · 2026-06-24 · in Performance improvements in libffi
  20. …mixing sync and async code. [1] https://pypi.org/project/nest-asyncio/ As explained by Guido: https://github.com/python/cpython/issues/66435#issuecomment-...
    comment by enragedcacti · 2026-05-26 · in What color is your function? (2015)
  21. The Python core team seems to think it's unlikely that anyone's relying on the existing behavior: https://github.com/python/cpython/pull/136212#issuecomment-4...
  22. If I understand correctly, this is one of the changes that caused the regression: https://github.com/python/cpython/pull/117120
  23. See the implementation of Python's math.isclose https://github.com/python/cpython/blob/d61fcf834d197f0113a6a...
  24. …inspired by Trio's nurseries[2]. [1] https://docs.python.org/3/library/asyncio-task.html#id6 [2] https://github.com/python/cpython/issues/90908
  25. …library for Python started in 2011 [2], but the stdlib library hasn’t seen many improvements. [0] https://github.com/python/cpython/blob/6d7e47b8ea1b8cf82927d... [1] https://learn.microsoft.com/en-us/dotnet/api/system.net.webr... [2]…
    comment by Kwpolska · 2026-03-25 · in Why I forked httpx
  26. Update: I put up a PR to document the trace recording interpreter https://github.com/python/cpython/pull/146110
    comment by kenjin4096 · 2026-03-18 · in Python 3.15's JIT is now back on track
  27. If you change this you break a common optimization: https://github.com/python/cpython/blob/3.14/Lib/json/encoder... Default value is evaluated once, and accessing parameter is much cheaper than global
  28. …is first called and reused thereafter. You can check the exact code I'm talking about here: https://github.com/python/cpython/blob/main/Objects/unicodeo... Is it clear enough?
    comment by cloudbonsai · 2026-03-18 · in Python 3.15's JIT is now back on track
  29. …https://github.com/tormol/udplite https://github.com/nplab/packetdrill https://github.com/python/cpython/blob/4e96282ee42ab51cf325b... https://github.com/search?q=repo%3Aviveris%2Frohc%20udplite&...
  30. …news. Python 3.15 adapts Pypy tracing approach to JIT and there are real performance gains now: https://github.com/python/cpython/issues/139109 https://doesjitgobrrr.com/?goals=5,10
    comment by Ralfp · 2026-03-14 · in Python: The Optimization Ladder
  31. Yes. The CPython hash algorithm for floats ( https://github.com/python/cpython/blob/main/Python/pyhash.c#... ) special-cases the non-finite values: floating-point infinities hash to special values modeled on the digits of pi (seriously!…
    comment by zahlman · 2026-03-12 · in NaN Is Weird
  32. …concern anymore. Moreover, I have used PyPy for years to beat the pants off CPython programs. [1] https://github.com/python/cpython
    comment by paulddraper · 2026-03-08 · in Warn about PyPy being unmaintained
  33. …So in CI/CD you can replace all discrete lint/format tool calls with one to pre-commit/prek. E.g. https://github.com/python/cpython/blob/main/.github/workflow... .
  34. …Python/cpython//InternalDocs/README.md > "CPython Internals Documentation": https://github.com/python/cpython/blob/main/InternalDocs/REA...
    comment by westurner · 2026-01-31 · in CPython Internals Explained
  35. …release. It's fairly buried in the "What's New" document, but apparently the original issue is at https://github.com/python/cpython/issues/130704 and corresponding PR https://github.com/python/cpython/pull/130708 .
  36. …negatively affect other compilers. [1]: https://github.com/faster-cpython/ideas/issues/183 [2]: https://github.com/python/cpython/issues/121263
  37. …__attribute__((musttail)) # define Py_PRESERVE_NONE_CC __attribute__((preserve_none)) # endif https://github.com/python/cpython/pull/143068/files#diff-45b... Apparently(?) this also needs to be attached to the function declarator and does…
  38. Here's the relevant diff: https://github.com/python/cpython/pull/137968/files#diff-966... Search is limited to 20 attributes and non-descriptors only to avoid arbitrary code execution. I assume constructing AttributeErrors isn't highly…
    comment by edflsafoiewq · 2025-12-21 · in What's New in Python 3.15
  39. …the folder into the actual release notes. Python and many other large projects handle it like this: https://github.com/python/cpython/tree/main/Misc/NEWS.d/next (The release notes for major releases are crafted manually) On the other hand,…
  40. …useless to them; but nobody seems to care about that sort of thing any more, much to my chagrin.) https://github.com/python/cpython/issues/83534
  41. Sure, all software is terrible if looking at bug frequency history... https://github.com/python/cpython/issues Griefers ranting about years old _closed_ tickets on v1.0.5 versions on a blog as some sort of proof of lameness... is a poorly…
  42. …date. There is some discussion whether or not to add helpers for this to Python‘s uuid7 module: https://github.com/python/cpython/issues/130843#issuecomment...
  43. …object being method-called on and the method, there’s sometimes one less PyObject for the binding: https://github.com/python/cpython/issues/70298 , with additional/somewhat related info in PEP-580 and PEP-590. PyPy improves on this…
    comment by zbentley · 2025-11-11 · in How often does Python allocate?
  44. With respect to tagged pointers, there seems to be some recent movements on that front in CPython: https://github.com/python/cpython/issues/132509
    comment by sushibowl · 2025-11-06 · in How often does Python allocate?
  45. …knew of them only ranging up to 256 ( https://stackoverflow.com/questions/306313 ). It turns out ( https://github.com/python/cpython/commit/7ce25edb8f41e527ed4... ) that the change is barely a month old in the repository; so it's not in…
    comment by zahlman · 2025-11-01 · in How often does Python allocate?
  46. …applies to anything that implements `_iadd_` in C. Which does not appear to include native longs: https://github.com/python/cpython/blob/main/Objects/longobje...
  47. …play. As an example these are the changes that had to be done to the standard library json module: https://github.com/python/cpython/pull/119438/files#diff-efe... This is how much of the standard library has been audited:…
  48. For all those making πthon jokes: https://github.com/python/cpython/pull/125035
    comment by Harmon758 · 2025-10-10 · in Python 3.14 is here. How fast is it?
  49. πthon: https://github.com/python/cpython/pull/125035
    comment by Harmon758 · 2025-10-08 · in Python 3.14.0 is now available
  50. Not entirely missed: https://github.com/python/cpython/pull/125035
    comment by Harmon758 · 2025-10-08 · in What's New in Python 3.14