Page 14, found in 81 ms
-
discuss.python.orghttps://discuss.python.org › t › customizable-repr › 55690Customizable repr() - Python Help - Discussions on Python.org
More about discuss.python.org
ForumJun 13, 2024. … repr=repr @singledispatch def code_repr_dispatch(v): return real_repr(v) def code_repr(obj): with mock.patch("builtins.repr", code_repr): return code_repr_dispatch(obj) @code_repr_dispatch.register def _(v: Enum …
-
discuss.python.orghttps://discuss.python.org › t › announcement-new-dependency-ch… › 53571Announcement: New dependency checker - FawltyDeps - Announcements - Discussions on Python.org
More about discuss.python.org
ForumMay 17, 2024. … imports used in your code, improving reproducibility, security and overall project quality. FawltyDeps analyzes your Python files and Jupyter notebooks to identify external imports, then compares these imports against the declared dependencies …
-
discuss.python.orghttps://discuss.python.org › t › an-analysis-of-return-in-final… › 70633An analysis of return-in-finally in the wild - Core Development - Discussions on Python.org
More about discuss.python.org
ForumNov 9, 2024. … by analysis of real code. The details are in this report . TL;DR: these features are rare (possibly thanks to the linters) where they are used, they are usually used incorrectly code …
-
discuss.python.orghttps://discuss.python.org › t › additional-bdfl-wisdom-for-pep20 › 15909Additional BDFL Wisdom for PEP20? - Ideas - Discussions on Python.org
More about discuss.python.org
ForumMay 22, 2022. … you know if your code is beautiful or ugly? And if you still don’t get the joke, then read the source code to the this.py module and see how many of the …
-
discuss.python.orghttps://discuss.python.org › t › add-http-status-code-450-to-ht… › 95837Add HTTP status code 450 to http module - Ideas - Discussions on Python.org
More about discuss.python.org
ForumJun 17, 2025. … further unofficial/unregistered status codes. A elis.byberi (Elis Byberi) June 17, 2025, 5:40pm 4 the 418 status code is reserved in the IANA HTTP Status Code Registry 1 Like MegaIng (Cornelius …
-
discuss.python.orghttps://discuss.python.org › t › cant-get-python-to-run-in-cmd › 20245Can't get python to run in cmd - Python Help - Discussions on Python.org
More about discuss.python.org
ForumOct 24, 2022. … verbiage is not Python source code, it’s output. Here’s a transcript from my terminal here: [~]fleet2*> python3 Python 3.10.6 (main, Aug 11 2022, 13:47:18) [Clang 12.0.0 (clang-1200.0.32.29)] on darwin …
-
discuss.python.orghttps://discuss.python.org › t › better-way-to-deal-with-except… › 70162Better way to deal with exceptions - Python Help - Discussions on Python.org
More about discuss.python.org
ForumNov 4, 2024. … a bug in our code we didn’t catch. then, only the parts where we explicitly raise ValueError will be caught by the caller. for example, let’s take this snippet from our code …
-
discuss.python.orghttps://discuss.python.org › t › add-a-high-level-frame-hook-ap… › 106583Add a High-Level Frame Hook API to CPython - Ideas - Discussions on Python.org
More about discuss.python.org
ForumMar 18, 2026. … paste segments of CPython’s source code into our codebase, which is not ideal. Some PEP 523-related issues we encountered included: Formerly public APIs going private or being removed, for example, frame …
-
discuss.python.orghttps://discuss.python.org › t › best-practice-to-do-the-same-t… › 24267Best practice to do the same tests in pytest with different classes - Python Help - Discussions on Python.org
More about discuss.python.org
ForumFeb 26, 2023. … common.py") as f: common_code = f.read() exec(common_code) with open(curr_dir / "pippo_only.py") as f: pippo_only_code = f.read() exec(pippo_only_code) pippo_only.py contains tests for only the …
-
discuss.python.orghttps://discuss.python.org › t › dependency-notation-including-… › 5659Dependency notation including the index URL - Packaging - Discussions on Python.org
More about discuss.python.org
ForumNov 5, 2020. … say that if any code that require this mechanism, it is a sign that the code should not be distributed as a Python package in the first place. Not all Python code …
Search for “source code site:discuss.python.org” on Google, or add !ddg, !w and other shortcuts to any search.