333 matching pages, found in 65 ms
Ask StyxWritten on your GPU machine; takes a few seconds the first time.
-
discuss.python.orghttps://discuss.python.org › t › add-optional-if-break-suite-to… › 71712Add optional `if break:` suite to `for/while` - Ideas - Discussions on Python.org
More about discuss.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 …
-
discuss.python.orghttps://discuss.python.org › t › allow-break-and-return-inside-… › 21858Allow `break` and `return` inside `except*` clause - Ideas - Discussions on Python.org
More about discuss.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 …
-
discuss.python.orghttps://discuss.python.org › t › adding-a-line-break › 61927Adding a Line Break? - Python Help - Discussions on Python.org
More about discuss.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 …
-
discuss.python.orghttps://discuss.python.org › t › adding-new-function-in-signal-… › 26941Adding new function in signal module - Python Help - Discussions on Python.org
More about discuss.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 …
-
discuss.python.orghttps://discuss.python.org › t › add-a-global-switch-to-disable… › 109335Add a global switch to disable the container requirement? - Python Help - Discussions on Python.org
More about discuss.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 …
-
discuss.python.orghttps://discuss.python.org › t › add-value-factory-parameter-to… › 106041Add value factory parameter to `dict.fromkeys` to enable use with mutable values - Ideas - Discussions on Python.org
More about discuss.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 …
-
discuss.python.orghttps://discuss.python.org › t › alternate-for-goto-in-python › 14958Alternate for goto in python - Python Help - Discussions on Python.org
More about discuss.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 …
-
discuss.python.orghttps://discuss.python.org › t › allow-defaultdict-factory-func… › 22447Allow defaultdict factory function to optionally accept input key for dynamic defaults - Ideas - Discussions on Python.org
More about discuss.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 …
-
discuss.python.orghttps://discuss.python.org › t › atmega8a-python-serial-communi… › 27331ATmega8a & Python serial communication problem - Python Help - Discussions on Python.org
More about discuss.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 …
-
discuss.python.orghttps://discuss.python.org › t › add-forward-referencing-of-sym… › 19804Add 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
More about discuss.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 …
Search for “break site:discuss.python.org” on Google, or add !ddg, !w and other shortcuts to any search.