210 matching pages, found in 63 ms
Ask StyxWritten on your GPU machine; takes a few seconds the first time.
-
discuss.python.orghttps://discuss.python.org › t › a-typevar-with-a-bound-is-a-bo… › 69966A TypeVar with a bound is a "bounded TypeVar"? Or a "bound TypeVar"? - Documentation - Discussions on Python.org
More about discuss.python.org
ForumNov 2, 2024. … TypeVars created with a bound should be called “bounded type variables”. (In math, a variable with an upper bound is called a bounded variable.) However, I don’t see the term “bounded type …
-
discuss.python.orghttps://discuss.python.org › t › differences-in-bound-object-vs… › 27052Differences in bound=object vs bound=Any - Python Help - Discussions on Python.org
More about discuss.python.org
ForumMay 24, 2023. … I believe is effectively bound=None per CPython source T = TypeVar('T', bound=Any) T = TypeVar('T', bound=object) In typing — Support for type hints — Python 3.11.3 documentation , it says that not …
-
discuss.python.orghttps://discuss.python.org › t › allowing-specializing-a-bound-… › 107403Allowing specializing a bound, covariant `TypeVar` with a `Protocol` as a limited form of intersection - Typing - Discussions on Python.org
More about discuss.python.org
ForumMay 16, 2026. … worth noting that no bound is equivalent to a bound of object (per the spec, see object ’s usage as the top type and TypeVar upper bound definition ): in this case ( B …
-
discuss.python.orghttps://discuss.python.org › t › actionbar-error › 59054Actionbar error - Python Help - Discussions on Python.org
More about discuss.python.org
ForumJul 24, 2024. … 0x000002A7E3A26EB0>>> <ClockEvent (-1.0) callback=<bound method Label.texture_update of <kivy.uix.actionbar.ActionButton object at 0x000002A7E3A47310>>> <ClockEvent (-1.0) callback=<bound method Label.texture_update of <kivy.uix.actionbar.ActionButton object at 0x000002A7E3A5F770>>> <ClockEvent (-1.0) callback=<bound method Label.texture_update …
-
discuss.python.orghttps://discuss.python.org › t › 3-8-7-nonlocal-referencing-bou… › 96073.8.7 nonlocal referencing bound variable gets "SyntaxError no binding" - Python Help - Discussions on Python.org
More about discuss.python.org
ForumJul 8, 2021. 3.8.7 nonlocal referencing bound variable gets "SyntaxError no binding" Python Help EarthBotV2 (EarthBotV2) July 8, 2021, 10:38pm 1 First post: Please forgive me if this is in the wrong subforum. Module …
-
discuss.python.orghttps://discuss.python.org › t › comparing-class-methods-using-… › 29105Comparing class methods using `is` is wrong? - Python Help - Discussions on Python.org
More about discuss.python.org
ForumJul 6, 2023. … that descriptor returns a “bound” version of original plain function (i.e. that has self ) with the self parameter bound to the instance (think of what functools.partial does). Offhand, I’m not entirely sure …
-
discuss.python.orghttps://discuss.python.org › t › create-a-typevar-bound-to-type… › 96851Create a TypeVar bound to TypedDict - Python Help - Discussions on Python.org
More about discuss.python.org
ForumJun 27, 2025. Create a TypeVar bound to TypedDict Python Help t1m013y (Timofey Fomin) June 27, 2025, 7:23am 1 I’m trying to create a TypeVar that is limited to TypedDict . When I try TV …
-
discuss.python.orghttps://discuss.python.org › t › constrained-type-vars-with-any… › 104799Constrained type vars with `Any` default - Typing - Discussions on Python.org
More about discuss.python.org
ForumNov 10, 2025. … 4 Please note that bounds are not equivalent to constraints, as the former also allow subtypes. (Although I seem to remember some discussion whether constraints are really necessary and couldn’t be replaced …
-
discuss.python.orghttps://discuss.python.org › t › constraining-relationships-bet… › 102013Constraining relationships between type parameters - Typing - Discussions on Python.org
More about discuss.python.org
ForumAug 11, 2025. … except through the type bounds but something like e.get_parent().get_element() needs both type bounds E: Element[P] and P: Parent[E] . oscarbenjamin (Oscar Benjamin) August 12, 2025, 10:25pm 6 …
-
discuss.python.orghttps://discuss.python.org › t › add-inrange-simple-function › 105413Add 'inrange()' simple function - Ideas - Discussions on Python.org
More about discuss.python.org
ForumDec 26, 2025. … that clearly communicates a bounds check. For example, inrange(x, min, max) can be more expressive in validation logic, configuration checks, or APIs, where the concept is “range checking” rather than iteration …
Search for “Bound site:discuss.python.org” on Google, or add !ddg, !w and other shortcuts to any search.