Page 4, found in 73 ms

  1. discuss.python.orghttps://discuss.python.org › t › combining-two-python-codes › 12246
    More about discuss.python.org
    Combining two python codes - Python Help - Discussions on Python.org

    ForumNov 29, 2021. … write that high level code first: def check_user(rfid_serial, face_cap): ''' Poll a connected serial port `rfid_serial` and a video source `face_cap`. Return `True` if both have valid …

    0 points
  2. discuss.python.orghttps://discuss.python.org › t › can-anyone-help-with-resolving… › 87723
    More about discuss.python.org
    Can anyone help with resolving this error - Python Help - Discussions on Python.org

    ForumApr 9, 2025. … just run the .py source file). Maybe you don’t have the source code? Can you share at least this line and the surrounding lines from the source code

    0 points
  3. discuss.python.orghttps://discuss.python.org › t › automatically-converting-most-… › 56359
    More about discuss.python.org
    Automatically converting (most of?) n bash scripts to Python? - Python Help - Discussions on Python.org

    ForumJun 21, 2024. … pick the language for code, typically that should be up to the people writing/maintaining the code to pick the best tool for the job. If it’s a real requirement, I recommend …

    0 points
  4. discuss.python.orghttps://discuss.python.org › t › ast-transforming-decorators-co… › 41621
    More about discuss.python.org
    AST-transforming decorators, compile(), and nested functions - Python Help - Discussions on Python.org

    ForumDec 21, 2023. … the function, get the source of the entire file (or at least the top most compound statement), traverse it to find the correct node, modify it. Then compile the entire AST, and …

    0 points
  5. discuss.python.orghttps://discuss.python.org › t › a-standard-for-non-displaying-… › 16570
    More about discuss.python.org
    A standard for non-displaying executable lines of code in documentation - Ideas - Discussions on Python.org

    ForumJun 17, 2022. … the ##! 'd lines of code. Example Assume the following code is in a docstring or documentation source file: ##! from typing import Optional, TYPE_CHECKING ##! if TYPE_CHECKING: ##! from mymodule.something import CoolClass def …

    0 points
  6. discuss.python.orghttps://discuss.python.org › t › cannot-install-onewire-missing… › 4064
    More about discuss.python.org
    Cannot install onewire, missing owcapi.h - Python Help - Discussions on Python.org

    ForumMay 2, 2020. … tokenize, ‘open’, open)( file );code=f.read().replace(’\r\n’, ‘\n’);f.close();exec(compile(code, file , ‘exec’))” install --record /tmp/pip-record-8yAxcM/install-record.txt --single-version-externally-managed --compile” failed with error …

    0 points
  7. discuss.python.orghttps://discuss.python.org › t › curious-access-to-datetime-int… › 12232
    More about discuss.python.org
    Curious: access to `datetime` internals - Python Help - Discussions on Python.org

    ForumNov 28, 2021. … day' From reading the source code of the datetime module, I know that day is a property that reads the data stored on the _day attribute. My surprise is that when I …

    0 points
  8. discuss.python.orghttps://discuss.python.org › t › cannot-install-python-from-sou… › 33027
    More about discuss.python.org
    Cannot install Python from source on Apple Silicon M1 - Python Help - Discussions on Python.org

    ForumSep 5, 2023. Cannot install Python from source on Apple Silicon M1 Python Help gernophil (Philipp Schneider) September 5, 2023, 3:57pm 1 I am trying to install Python from source according to the readme …

    0 points
  9. discuss.python.orghttps://discuss.python.org › t › add-hash-eq-built-ins-to-funct… › 19664
    More about discuss.python.org
    Add hash/eq built-ins to functools.partial - Ideas - Discussions on Python.org

    ForumOct 3, 2022. … functions have “the same” source code, ignoring comments, non-significant whitespace and variable names, and so generate the same AST and hence the same byte-code, we could consider those two functions …

    0 points
  10. discuss.python.orghttps://discuss.python.org › t › curious-about-possible-supply-… › 15580
    More about discuss.python.org
    Curious about possible Supply Side Security Vulnerability Scenario using Pip - Packaging - Discussions on Python.org

    ForumMay 6, 2022. … something like a remote code execution vulnerability into their package, and generate a number of wheel files from that vulnerable source. However, before uploading this update to pip, they remove the vulnerability …

    0 points

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