333 matching pages, found in 65 ms

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

  1. discuss.python.orghttps://discuss.python.org › t › add-optional-if-break-suite-to… › 71712
    More about discuss.python.org
    Add optional `if break:` suite to `for/while` - Ideas - Discussions on Python.org

    ForumNov 19, 2024. … a custom exception to break out of deep nesting” approach. for ...: while ...: if condition: break # breaks out of "while" if_break: break # if & only if "break" in "while" was executed Mnemonic value …

    0 points
  2. discuss.python.orghttps://discuss.python.org › t › allow-break-and-return-inside-… › 21858
    More about discuss.python.org
    Allow `break` and `return` inside `except*` clause - Ideas - Discussions on Python.org

    ForumDec 12, 2022. … in ... : try: ... except* SomeError: break # currently not allowed which currently has to be written like this: should_break = False for i in ... : try: ... except* SomeError: should_break = True if should_break: break …

    0 points
  3. discuss.python.orghttps://discuss.python.org › t › adding-a-line-break › 61927
    More about discuss.python.org
    Adding a Line Break? - Python Help - Discussions on Python.org

    ForumAug 25, 2024. Adding a Line Break? Python Help help derekm22098 (derek) August 25, 2024, 4:37pm 1 Hello. I’m wondering if anyone could help me. I’ve tried \n and os.linsep and I cannot get …

    0 points
  4. discuss.python.orghttps://discuss.python.org › t › adding-new-function-in-signal-… › 26941
    More about discuss.python.org
    Adding new function in signal module - Python Help - Discussions on Python.org

    ForumMay 20, 2023. … and corresponds to CTRL_BREAK_EVENT. */ case SIGBREAK: break; #endif case SIGFPE: break; case SIGILL: break; case SIGINT: break; case SIGSEGV: break; case SIGTERM: break; default: PyErr_SetString(PyExc_ValueError, "invalid signal …

    0 points
  5. discuss.python.orghttps://discuss.python.org › t › add-a-global-switch-to-disable… › 109335
    More about discuss.python.org
    Add a global switch to disable the container requirement? - Python Help - Discussions on Python.org

    ForumOct 3, 2026. … this or to potentially break things with --break-system-packages on every pip invocation. A virtual environment is sufficient [1] . This is essentially just a folder with its own set of packages …

    0 points
  6. discuss.python.orghttps://discuss.python.org › t › add-value-factory-parameter-to… › 106041
    More about discuss.python.org
    Add value factory parameter to `dict.fromkeys` to enable use with mutable values - Ideas - Discussions on Python.org

    ForumFeb 6, 2026. … we don’t want to break things. Deprecation is a half-way house to breaking things. It is saying “this will break in the future”. Note for contrast the camelCase names in the …

    0 points
  7. discuss.python.orghttps://discuss.python.org › t › alternate-for-goto-in-python › 14958
    More about discuss.python.org
    Alternate for goto in python - Python Help - Discussions on Python.org

    ForumApr 10, 2022. … using if loops and break / continue statements. Generally not, in Python (and probably most other modern/recent languages). You can use exceptions to do a sort of multi-level “break” but it …

    0 points
  8. discuss.python.orghttps://discuss.python.org › t › allow-defaultdict-factory-func… › 22447
    More about discuss.python.org
    Allow defaultdict factory function to optionally accept input key for dynamic defaults - Ideas - Discussions on Python.org

    ForumJan 4, 2023. … in order to not break existing code the implementation should maintain support for 0-argument factories. Some ambiguity arises with functions that have an optional argument, such int() . Again, we should prefer …

    0 points
  9. discuss.python.orghttps://discuss.python.org › t › atmega8a-python-serial-communi… › 27331
    More about discuss.python.org
    ATmega8a & Python serial communication problem - Python Help - Discussions on Python.org

    ForumJun 1, 2023. ATmega8a & Python serial communication problem Python Help Coffee_Break (Coffee Break) June 1, 2023, 6:31pm 1 I’ve written a C++ application to transmit a character from my PC to ATmega8A and …

    0 points
  10. discuss.python.orghttps://discuss.python.org › t › add-forward-referencing-of-sym… › 19804
    More about discuss.python.org
    Add forward referencing of symbol imports, similar to existing module forward references to break import recursion with "from X import Y" style references - Ideas - Discussions on Python.org

    ForumOct 8, 2022. Add forward referencing of symbol imports, similar to existing module forward references to break import recursion with "from X import Y" style references Ideas LightCC (Mike Leiter) October 8, 2022, 5:33pm …

    0 points

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