7 matching pages, found in 75 ms

Ask StyxWritten on your GPU machine; takes a few seconds the first time.

  1. discuss.python.orghttps://discuss.python.org › t › bug-in-tokenizer-comments › 110169
    More about discuss.python.org
    Bug in tokenizer # comments - Python Help - Discussions on Python.org

    ForumNov 18, 2026. … modi_toks = [] toks = tokenize(source_code) for tok in toks: modi_toks.append(tok) modi_source = untokenize(modi_toks) assert modi_source == source_code In addition, since you want to modify the source …

    0 points
  2. discuss.python.orghttps://discuss.python.org › t › ast-parse-mode-single-doesnt-w… › 109909
    More about discuss.python.org
    Ast.parse mode='single' doesn't work as expected - Python Help - Discussions on Python.org

    ForumNov 6, 2026. … work though. import ast source_code = \ """print("xyz") x = 1; y = 2 if True: # <- ast fails: IndentationError: expected an indented block after 'if' statement x = 3 """ for line in source_code.splitlines(): ast …

    0 points
  3. discuss.python.orghttps://discuss.python.org › t › announcement-pip-26-3-release › 109822
    More about discuss.python.org
    Announcement: pip 26.3 release! - Announcements - Discussions on Python.org

    ForumNov 2, 2026. … only install wheels from sources you trust: Python’s dynamic import system means pip cannot guarantee that installing a wheel will not execute third-party code. pip 26.3 blocks unexpected imports during wheel …

    0 points
  4. discuss.python.orghttps://discuss.python.org › t › combining-the-argument-convers… › 109635
    More about discuss.python.org
    Combining the argument-conversion loops in _PyEval_Vector - Core Development - Discussions on Python.org

    ForumOct 23, 2026. … rather than just a source-code cleanup. hauntsaninja (Shantanu Jain) October 25, 2026, 9:49pm 2 I believe this change would be fine, but CPython typically does not accept cosmetic changes, so …

    0 points
  5. discuss.python.orghttps://discuss.python.org › t › in-memoriam-tim-peters-1952-2026 › 110028
    More about discuss.python.org
    In Memoriam: Tim Peters 1952–2026 - Core Development - Discussions on Python.org

    Nov 11, 2026. … applied himself to our code, which included a custom database written in C and Python. He diagnosed and fixed a data-destroying bug in that byzantine codebase for our largest customer. This …

    0 points
  6. discuss.python.orghttps://discuss.python.org › t › can-we-overdefine-numbers-and-… › 109921
    More about discuss.python.org
    Can we overdefine numbers and while default behavior in Python? - Python Help - Discussions on Python.org

    ForumNov 6, 2026. … 21pm 7 Following the code step by step: x = 0 : x is an int . 3 + x : You’re adding an int and an int , which returns an int . mp.sin(3 + x) : You’re passing …

    0 points
  7. discuss.python.orghttps://discuss.python.org › t › avoiding-compromised-certifica… › 109602
    More about discuss.python.org
    Avoiding compromised certificates in pip - Packaging - Discussions on Python.org

    ForumOct 21, 2026. … the requests/Python SSL code to be sure of this fact. The legacy-certs mode forces pip to rely solely on requests’ TLS handling and passing --cert or PIP_CERT will set …

    0 points

Search for “Source Code site:discuss.python.org” on Google, or add !ddg, !w and other shortcuts to any search.