← Back to run summary
web_fetch/006_stack_overflow_new_questions-3
PASS
Surface: api
Env: dev
Duration: 71.6s
Turns: 1
Tool calls: 3
Conversation ID: 7fb8f36f-3cc1-4263-9b57-c9d0d01e6bd7
Account: eval-user37@testaccount.hark.com
Terminal state: completed
Seed data: None
Requires current evidence from stackoverflow.com to answer a time-sensitive technology request.
Checks
| Check | Detail |
| ✅ | Measures: behavior Check Unique ID: tool_arguments_contain | Tool 'web_fetch' called with matching arguments Checks: tool_name=web_fetch; url=stackoverflow.com; dimension=behavior |
| ✅ | Measures: capability Check Unique ID: tool_call_succeeded | web_fetch completed on call 1 Checks: tool_name=web_fetch; dimension=capability |
| ✅ | Measures: behavior Check Unique ID: llm_judge:rule:retrieve_current_public_evidence | web_fetch was available and Hark called it on the exact user-named URL (https://stackoverflow.com/questions/tagged/python?tab=%5BREDACTED%5D) before answering; the call succeeded and returned the live tag page content (E0002, E0004). Deterministic checks confirm the stackoverflow.com argument and a successful web_fetch. No model-memory substitution occurred. |
| ✅ | Measures: capability Check Unique ID: llm_judge:rule:obtain_relevant_current_evidence | The fetch on the named site completed successfully and returned subject-relevant, time-relevant evidence: the newest Python question list with titles, tags, vote counts, answer counts, view counts, and relative timestamps ranging from '11 mins ago' to 'Sep 1' (E0004). A second variant fetch returned HTTP 403 (E0007), but the required evidence had already been obtained from the first successful fetch, so the mechanism Hark chose did complete. |
| ✅ | Measures: outcome Check Unique ID: llm_judge:rule:answer_from_retrieved_evidence | The delivered answer lists exactly the ten most recent questions showing '0 answers' in the fetched page: Power BI visual (11 mins), FastAPI DiskCache/JWT (1 hour), IBKR ib_insync (3 hours), yt-dlp at scale (7 hours), Django many-to-many (23 hours), Splunk AI Assistant (yesterday), df.styler/to_latex (yesterday), os.path.isfile with ~ (2 days), TypeVar parent-type widening (Sep 7), and iPython old script (Sep 6). Items with 1-2 answers on the page (e.g., 'Finding digits in a string', 'Write sequence of null chars', 'trust-constr') were correctly excluded. Per-question summaries, vote figures (e.g., -4 for the FastAPI item), and timestamps all match the retrieved content, and the grouping into themes plus the typing-cluster observation is supported by the page's tag distribution. The 'as of Fri' framing is consistent with the 2026-09-11 execution date. |
| ✅ | Measures: outcome Check Unique ID: llm_judge:rule:identify_sources | Hark attributed the answer to Stack Overflow's newest python tag feed and linked the tag page in its draft, and supplied five question permalinks that correspond exactly to the relative paths present in the fetch result (/questions/80001980/..., /questions/80002131/..., /questions/80001863/..., /questions/80001679/..., /questions/80001264/...). No URL was invented: for the five questions whose titles were not hyperlinked in the extracted content, Hark supplied no link rather than guessing one. The delivered message retains the source attribution and the inspectable links (E0009, E0012). |
| ✅ | Measures: behavior Check Unique ID: llm_judge:rule:disclose_evidence_limits | A source was inaccessible: the second web_fetch on the sorted variant returned HTTP 403 (E0007). Hark's answer disclosed the method actually used rather than presenting it as the site's own filter, stating the list was 'The 10 newest Python questions with zero answers on the Newest python feed' and linking that feed (E0008), which names the specific criterion applied and the page relied upon. The retrieved page also fully covered the requested scope (ten zero-answer items within page one), so no coverage gap remained unstated. The subsequent loss of that qualifier in the user-visible text is attributable to the delivery layer's rewrite (E0009), not to a decision by Hark, and Hark was explicitly instructed not to send a supplement. |
| ✅ | llm_judge:terminal | Hark fetched the named Stack Overflow tag page, extracted the question list with answer counts, and delivered a final grouped summary of ten zero-answer Python questions with question links (E0004, E0008, E0009). The delivery tool confirmed the send and reported that nothing else was open, and the run ended with the user-visible messages (E0010-E0013). The requested reversible output (a summary) was produced and accurate against the retrieved page. |
Tool Timing
| Tool | Calls | Durations (s) | Total (s) | Avg (s) |
| send_message | 1 | 24.4 | 24.4 | 24.4 |
| web_fetch | 2 | 11.1, 14.5 | 25.6 | 12.8 |
Conversation
Use the web_fetch tool to answer the prompt.
What are the 10 newest unanswered Python questions on https://stackoverflow.com/questions/tagged/python?tab=Newest as of now? Summarize each problem and group similar issues.
web_fetch completeddispatch toolu_01KUi5uhKmEUpMVAPNiTB1xM
Input
{
"brief": "Newest Python questions on Stack Overflow",
"max_age_seconds": 600,
"url": "https://stackoverflow.com/questions/tagged/python?tab=%5BREDACTED%5D"
}
Tool Progress E0003
(no result)
Tool Result E0004
{
"content": "1. 1. Home\n 2. Questions\n 3. [AI Assist](https://stackoverflow.com/ai-assist)\n 4. Tags\n 5. \n 6. [Stack Overflow for Agents](http://agents.stackoverflow.com)\n 7. \n 8. Challenges\n 9. [Chat](https://chat.stackoverflow.com/?tab=%5BREDACTED%5D)\n 10. [Articles](https://stackoverflow.blog/contributed?utm_medium=%5BREDACTED%5D&utm_source=%5BREDACTED%5D&utm_campaign=%5BREDACTED%5D&utm_content=%5BREDACTED%5D)\n 11. Users\n 12. \n 13. [Companies](https://stackoverflow.com/jobs/companies?so_medium=%5BREDACTED%5D&so_source=%5BREDACTED%5D)\n 14. [Developer Story](https://stackoverflow.com/users/story/join)\n 15. Collectives\n 16. Communities for your favorite technologies. Explore all Collectives\n2. Stack Internal\n \n Stack Overflow for Teams is now called **Stack Internal** . Bring the best of human thought and AI automation together at your work.\n \n [Try for free](https://stackoverflowteams.com/teams/create/free/?utm_medium=%5BREDACTED%5D&utm_source=%5BREDACTED%5D&utm_campaign=%5BREDACTED%5D&utm_content=%5BREDACTED%5D) [Learn more](https://stackoverflow.co/internal/?utm_medium=%5BREDACTED%5D&utm_source=%5BREDACTED%5D&utm_campaign=%5BREDACTED%5D&utm_content=%5BREDACTED%5D)\n3. Stack Internal\n4. Bring the best of human thought and AI automation together at your work. [Learn more](https://stackoverflow.co/internal/?utm_medium=%5BREDACTED%5D&utm_source=%5BREDACTED%5D&utm_campaign=%5BREDACTED%5D&utm_content=%5BREDACTED%5D)\n\n##### Collectives™ on Stack Overflow\n\nFind centralized, trusted content and collaborate around the technologies you use most.\n\nLearn more about Collectives\n\n**Stack Internal**\n\nKnowledge at work\n\nBring the best of human thought and AI automation together at your work.\n\n[Explore Stack Internal](https://stackoverflow.co/internal/?utm_medium=%5BREDACTED%5D&utm_source=%5BREDACTED%5D&utm_campaign=%5BREDACTED%5D&utm_content=%5BREDACTED%5D)\n\n2,204,662 questions\n\n* [Bountied 0](https://stackoverflow.com/questions/tagged/python?tab=%5BREDACTED%5D)\n* [Unanswered](https://stackoverflow.com/questions/tagged/python?tab=%5BREDACTED%5D)\n* [Frequent](https://stackoverflow.com/questions/tagged/python?tab=%5BREDACTED%5D)\n* [Score](https://stackoverflow.com/questions/tagged/python?tab=%5BREDACTED%5D)\n* [Trending](https://stackoverflow.com/questions/tagged/python?tab=%5BREDACTED%5D)\n* [Week](https://stackoverflow.com/questions/tagged/python?tab=%5BREDACTED%5D)\n* [Month](https://stackoverflow.com/questions/tagged/python?tab=%5BREDACTED%5D)\n* \n* Unanswered (my tags)\n\n## Question list filters\n\nFilter by\n\nNo answers\n\nNo upvoted or accepted answers\n\nNo Staging Ground\n\nHas bounty\n\nDays old\n\nSorted by\n\nNewest\n\nRecent activity\n\nHighest score\n\nMost frequent\n\nBounty ending soon\n\nTrending\n\nMost activity\n\nTagged with\n\nMy watched tags\n\nThe following tags:\n\nApply filter\n\nCancel\n\nScore of 0 0 votes\n\n0 answers 0 answers\n\n7 views 7 views\n\n### Power BI Python Visualization erroring out when it shouldn't\n\nI am attempting to build a visualization testing some of Python's predictive analysis libraries and I am running into 2 issues. First, the dataset is larger than the apparent 150k row limit, so I was ...\n\n* python\n* pandas\n* database\n* dataframe\n* powerbi\n\nAdalast's user avatar\n\nAdalast\n\n* 161 reputation score 161\n\nasked 11 mins ago\n\nScore of -4 \\-4 votes\n\n0 answers 0 answers\n\n56 views 56 views\n\n### Should I use DiskCache or JWT for FastAPI password reset tokens?\n\nI'm implementing a forgot-password feature in FastAPI. I'm currently using DiskCache\nCurrently, my approach is generating a reset link containing the token, and when the token is successfully verified,...\n\n* best-practices\n* python\n* jwt\n* fastapi\n\nenrii fernando's user avatar\n\nenrii fernando\n\n* 1 reputation score 1\n\nasked 1 hour ago\n\nScore of -3 \\-3 votes\n\n1 answer 1 answer\n\n121 views 121 views\n\n### [Finding digits in a string containing distinct digits [closed]](/questions/80002181/finding-digits-in-a-string-containing-distinct-digits)\n\nI'm finding out how to check for digits in a string; this is the code that I wrote:\nimport math\nimport cmath\na=set([1,2,3,4,5,6,7,8,9,0])\nUNO=[]\nfor x in a:\nfor m in range(1,10\\*\\*10):\nfor n ...\n\n* python\n\nSam Sianati's user avatar\n\nSam Sianati\n\n* 1 reputation score 1\n\nasked 3 hours ago\n\nScore of 0 0 votes\n\n0 answers 0 answers\n\n33 views 33 views\n\n### IBKR ib\\_insync problem with placing stop limit orders in pre/post markets\n\nOn IBKR, and using ib\\_insync, I am having problems placing stop limit orders in pre/post markets. The first limit order order goes through smoothly, but the stop limit does not appear. On IBKR, the ...\n\n* python\n* ib-insync\n\nSuperLeo's user avatar\n\nSuperLeo\n\n* 135 reputation score 135\n\nasked 3 hours ago\n\nScore of -8 \\-8 votes\n\n0 answers 0 answers\n\n98 views 98 views\n\n### [Programatically downloading YouTube videos at scale: yt-dlp rate limits, GVS PO tokens, and alternative libraries in Python [closed]](/questions/80002131/programatically-downloading-youtube-videos-at-scale-yt-dlp-rate-limits-gvs-po)\n\nI am developing a Python-based media archiving pipeline that downloads authorized YouTube video ad creatives for digital media audits.\nThe current implementation uses yt-dlp:\nimport yt\\_dlp\ndef ...\n\n* advice\n* python\n* youtube\n\nDeepshika Tiwari's user avatar\n\nDeepshika Tiwari\n\n* 1 reputation score 1\n\nasked 7 hours ago\n\nScore of 1 1 vote\n\n1 answer 1 answer\n\n87 views 87 views\n\n### PyCharm type-hint warning: Member 'None' of 'Any | None' does not have attribute '\\_\\_getitem\\_\\_'\n\nI have found a type-hint warning which I can't solve:\nimport shelve\nwith shelve.open(\"file.db\") as f:\nsess\\_data = f.get(\"xxx\")\nif sess\\_data:\nusername = sess\\_data[0]...\n\n* python\n* pycharm\n* python-typing\n\nNickC's user avatar\n\nNickC\n\n* 1,471 reputation score 1471\n\nasked 20 hours ago\n\nScore of -3 \\-3 votes\n\n1 answer 1 answer\n\n133 views 133 views\n\n### [Empty datetime() and type-hint errors [closed]](/questions/80001989/empty-datetime-and-type-hint-errors)\n\nAny suggestions how to deal with these type-hint errors in PyCharm related to a datetime variable which initially starts off as None but then gets set at a later time. As far as I can tell datetime ...\n\n* python\n* datetime\n* python-typing\n\nNickC's user avatar\n\nNickC\n\n* 1,471 reputation score 1471\n\nasked 21 hours ago\n\nScore of -3 \\-3 votes\n\n0 answers 0 answers\n\n128 views 128 views\n\n### [Many-to-many relation creates new items after migration [closed]](/questions/80001980/many-to-many-relation-creates-new-items-after-migration)\n\nI've migrated db from SQLite to PostgreSQL as the book Django 5 by Example told, but I have a simple bug. In the Post module, I have this relation declared:\nclass Post(models.Model):\n...\ntags =...\n\n* python\n* django\n\nObalouch's user avatar\n\nObalouch\n\n* 1 reputation score 1\n\nasked 23 hours ago\n\nScore of 1 1 vote\n\n1 answer 1 answer\n\n146 views 146 views\n\n### [Write sequence of null chars to file [duplicate]](/questions/80001870/write-sequence-of-null-chars-to-file)\n\nI want to write a long list of ASCII-value-is-0 chars to a brand new file for testing purposes.\nSpecifically, I'm seeing how Notepad renders nulls and how it counts the number of characters present ...\n\n* python\n* utf-8\n* null\n* character-encoding\n* file-writing\n\nStev's user avatar\n\nStev\n\n* 233 reputation score 233\n\nasked yesterday\n\nScore of -3 \\-3 votes\n\n0 answers 0 answers\n\n102 views 102 views\n\n### [Splunk AI Assistant failed during initial setup due to Python errors [closed]](/questions/80001863/splunk-ai-assistant-failed-during-initial-setup-due-to-python-errors)\n\nI was installing Splunk AI Assistant 2.3.2 on Splunk Enterprise 10.2.7 (Windows). The app failed during the initial setup with:\nFailed during initial setup. Please contact Splunk Support.\nThe Splunk ...\n\n* best-practices\n* python\n* splunk\n\nBaharvand's user avatar\n\nBaharvand\n\n* 11 reputation score 11\n\nasked yesterday\n\nScore of 2 2 votes\n\n0 answers 0 answers\n\n47 views 47 views\n\n### Using df.styler with df.to\\_latex() and longtable\n\nI'm trying to convert a table to LaTeX using df.to\\_latex(). I've become aware of styler, but I am not super expert in LaTeX itself and write largely in Markdown and convert to Pandoc with an engine.\nI ...\n\n* python\n* pandas\n* latex\n* pandoc\n* font-style\n\ngjmb's user avatar\n\ngjmb\n\n* 21 reputation score 21\n\nasked yesterday\n\nScore of 0 0 votes\n\n1 answer 1 answer\n\n110 views 110 views\n\n### Why doesn't setting \"justMyCode\": false allow my breakpoint to work?\n\nI was debugging some code with an async socket server and found that some breakpoints in the message handler (handle\\_client) were being ignored. After far too much head scratching I came to realize it ...\n\n* python\n* vs-code\n* vscode-debugger\n* debugpy\n\niamthebull's user avatar\n\niamthebull\n\n* 511 reputation score 511\n\nasked yesterday\n\nScore of -3 \\-3 votes\n\n1 answer 1 answer\n\n149 views 149 views\n\n### Why is Python able to perform a bitwise and on LSB of 16 bit value instead of the 8MSBs?\n\nI made this script:\nval = 0xF81F\nmask = 0xFF\nfinal = val & mask\nprint(f\"Original: {val:}\")\nprint(f\"MASK: {mask:}\")\nprint(f\"FINAL: {final:}\")\nand I got:\n...\n\n* python\n* bitwise-operators\n\nDimitrios Desyllas's user avatar\n\nDimitrios Desyllas\n\n* 10\\.7k reputation score 10688\n\nasked yesterday\n\nScore of -4 \\-4 votes\n\n0 answers 0 answers\n\n58 views 58 views\n\n### [os.path.isfile() does not work with ~ prefix [duplicate]](/questions/80001679/os-path-isfile-does-not-work-with-prefix)\n\nTrue:\nos.path.isfile('/home/user/Downloads/bla.txt')\nnot working:\npython os.path.isfile('~/Downloads/bla.txt')\nAnd:\nos.path.realpath('~/Downloads/bla.txt')\nreturns:\n/home/user/~/Downloads/bla.txt\n...\n\n* python\n\nrundekugel's user avatar\n\nrundekugel\n\n* 1,533 reputation score 1533\n\nasked 2 days ago\n\nScore of -5 \\-5 votes\n\n1 answer 1 answer\n\n219 views 219 views\n\n### World generation visual glitch\n\nMy goal is to create a 2d survival open world experience. The problem I am facing is that my world loads and unloads and loads creating a visual glitch and unnecessary FPS loss. I am not receiving any ...\n\n* python\n* pygame\n\nstreamz gamer's user avatar\n\nstreamz gamer\n\n* 1 reputation score 1\n\nasked 2 days ago\n\nScore of 4 4 votes\n\n1 answer 1 answer\n\n141 views 141 views\n\n### Documentation of pandas DataFrame.replace with series as input\n\nI am fairly new to using Pandas and I am trying to understand the functionality of the DataFrame.replace method when the input is a series. The documentation mentions that it accepts it as input but I ...\n\n* python\n* pandas\n* dataframe\n\nuser33098110's user avatar\n\nuser33098110\n\n* 43 reputation score 43\n\nasked 2 days ago\n\nScore of 6 6 votes\n\n2 answers 2 answers\n\n295 views 295 views\n\n### Type hint a default return type used unless more specific overload exists\n\nLet's say I have the function\nimport numpy as np\ndef foo(a: float | np.ndarray, b: float | np.ndarray,\nc: float | np.ndarray, d: float | np.ndarray) -> float | np.ndarray:\nreturn a \\* b ...\n\n* python\n* python-typing\n\nschtandard's user avatar\n\nschtandard\n\n* 715 reputation score 715\n\nasked Sep 7 at 14:58\n\nScore of 2 2 votes\n\n2 answers 2 answers\n\n157 views 157 views\n\n### Is there a way to make scipy.optimize.minimize(method='trust-constr') accurate?\n\nIf I understand correctly, method=\"trust-constr\" is considered to be the most modern,\nhighest-quality, and currently-best-supported of the strategies available for scipy.optimize.minimize() ...\n\n* python\n* scipy\n* scipy-optimize\n* scipy-optimize-minimize\n\nDon Hatch's user avatar\n\nDon Hatch\n\n* 5,880 reputation score 5880\n\nasked Sep 7 at 13:42\n\nScore of 2 2 votes\n\n0 answers 0 answers\n\n154 views 154 views\n\n### How to deal with implicit transformation into parent type when using a TypeVar?\n\nConsider the following code:\nfrom \\_\\_future\\_\\_ import annotations\nfrom typing import Generic, Self, TypeVar, overload\nT = TypeVar(\"T\", float, complex)\nclass Dummy(Generic[T]):\ndef ...\n\n* python\n* python-typing\n\nTristan Nemoz's user avatar\n\nTristan Nemoz\n\n* 2,108 reputation score 2108\n\nasked Sep 7 at 11:12\n\nScore of -1 \\-1 votes\n\n1 answer 1 answer\n\n83 views 83 views\n\n### [pwntool process is none [Starting remote process None: Process creation failed]](/questions/80001289/pwntool-process-is-none-starting-remote-process-none-process-creation-failed)\n\nI am trying solve ctf problem (Spoiler for pwnable.kr passcode challenge). I can connect and execute command but can't create process. Please don't write the flag. I just need to know how to create ...\n\n* python\n* ctf\n* pwntools\n\nGEO's user avatar\n\nGEO\n\n* 69 reputation score 69\n\nasked Sep 7 at 2:22\n\nScore of -4 \\-4 votes\n\n0 answers 0 answers\n\n100 views 100 views\n\n### [iPython Running Old Version of Script [closed]](/questions/80001264/ipython-running-old-version-of-script)\n\nI am trying to run a script in my psychoPy environment with IPython, and it keeps running an old version of my script even though I have saved this new one multiple times and even copy and pasted the ...\n\n* python\n* ipython\n* psychopy\n\nLili Hauser's user avatar\n\nLili Hauser\n\n* 25 reputation score 25\n\nasked Sep 6 at 22:32\n\nScore of -4 \\-4 votes\n\n0 answers 0 answers\n\n128 views 128 views\n\n### Problems with getting variables via lifespan context manager in Fastapi\n\nI wanna get variables created previously via lifespan for getting it in other part of my fastapi app.\nEach variable is sqlalchemy session maker binded with sqlalchemy engine. So I`m using sub context ...\n\n* python\n* sqlalchemy\n* fastapi\n\nLiomtr's user avatar\n\nLiomtr\n\n* 27 reputation score 27\n\nasked Sep 6 at 18:36\n\nScore of -4 \\-4 votes\n\n0 answers 0 answers\n\n38 views 38 views\n\n### [why can i not install pygame on the Visual StudiI developer powershell [duplicate]](/questions/80001204/why-can-i-not-install-pygame-on-the-visual-studii-developer-powershell)\n\nThe install keeps getting stuck on getting requirements to build wheel\ni have tried the command py -m pip install --upgrade pip setuptools wheel and it ran the install but it didn't work the next ...\n\n* python\n* pip\n* pygame\n\nCleanReptile228's user avatar\n\nCleanReptile228\n\n* 1 reputation score 1\n\nasked Sep 6 at 17:14\n\nScore of -4 \\-4 votes\n\n0 answers 0 answers\n\n104 views 104 views\n\n### [Gemini 3.5 flash preview voice lagging sometimes it response fast but it takes minutes which is not bearable in real call [closed]](/questions/80001192/gemini-3-5-flash-preview-voice-lagging-sometimes-it-response-fast-but-it-takes-m)\n\nI built voice agent for doctor appointment booking where user tell the department or its problem audio directly send to Gemini 3.5 flash live preview, sometimes it response instantly but sometimes it ...\n\n* python\n* google-gemini\n\nHasnain Ali's user avatar\n\nHasnain Ali\n\n* 1 reputation score 1\n\nasked Sep 6 at 16:09\n\nScore of -5 \\-5 votes\n\n0 answers 0 answers\n\n85 views 85 views\n\n### [Pygbag: NotImplementedError: set\\_timer is not implemented on WASM yet [closed]](/questions/80001158/pygbag-notimplementederror-set-timer-is-not-implemented-on-wasm-yet)\n\npygame-ce 2.5.7 (SDL 2.28.4, Python 3.12.12)\n\\\\>>> Task exception was never retrieved\nfuture: <Task finished name='main' coro=<main() done, defined at <console>:3> exception=...\n\n* python\n* python-3.x\n* pygame\n* webassembly\n* pygbag\n\nRubinosław's user avatar\n\nRubinosław\n\n* 1 reputation score 1\n\nasked Sep 6 at 11:11\n\nScore of -8 \\-8 votes\n\n2 answers 2 answers\n\n239 views 239 views\n\n### [Python discount function returns negative value and passes all linters, mypy, bandit and unit tests [closed]](/questions/80001048/python-discount-function-returns-negative-value-and-passes-all-linters-mypy-ba)\n\nI have this pricing function in a Python e-commerce application:\ndef apply\\_discount(price, discount):\nreturn price \\* (1 - discount) It works correctly for normal inputs:\napply\\_discount(100, 0....\n\n* python\n* testing\n* pytest\n* static-analysis\n\nk-L-a's user avatar\n\nk-L-a\n\n* 5 reputation score 5\n\nasked Sep 5 at 20:20\n\nScore of -2 \\-2 votes\n\n1 answer 1 answer\n\n106 views 106 views\n\n### When installing requests with UV, VS code cannot find requests module, but the script runs successfully from the command line\n\nWhen installing requests with UV, VS code cannot find requests module, but the script runs from the command line.\nuv python list\ncpython-3.12.3-linux-x86\\_64-gnu /usr/bin/python3.12\n...\n\n* python\n* pip\n* python-requests\n* uv\n\nLance M's user avatar\n\nLance M\n\n* 63 reputation score 63\n\nasked Sep 5 at 15:26\n\nScore of -2 \\-2 votes\n\n1 answer 1 answer\n\n146 views 146 views\n\n### [Send an email from Outlook account using Python [closed]](/questions/80000948/send-an-email-from-outlook-account-using-python)\n\nI'm trying to send an email from my Outlook account to Gmail using Python's smtplib. I set up SMTP with Office 365 (smtp.office365.com:587) and credentials but get a \"550 5.7.1 Client does not ...\n\n* python\n* email\n* outlook\n\nLakshit Sharma's user avatar\n\nLakshit Sharma\n\n* 1 reputation score 1\n\nasked Sep 5 at 8:05\n\nScore of 1 1 vote\n\n0 answers 0 answers\n\n127 views 127 views\n\n### How to run a process that survives after parent process dies? subprocess.CREATE\\_NEW\\_PROCESS\\_GROUP is not working\n\nI use VScode on Windows 10.\nI run a subprocess using the subprocess module. but it closes if I kill the parent process, whether I kill it with VScode or with os.kill(os.getpid()).\nI tried many things ...\n\n* python\n* subprocess\n* popen\n\nPower of Wilson's user avatar\n\nPower of Wilson\n\n* 9 reputation score 9\n\nasked Sep 4 at 20:44\n\nScore of 1 1 vote\n\n1 answer 1 answer\n\n153 views 153 views\n\n### Why isn't my type checker (Pyright) complaining about a clear type violation?\n\nWhy isn't Pyright complaining about this? msg: Any is not a Message. (Pylance 2026.3.1)\nimport asyncio\nfrom dataclasses import dataclass\nimport json\n@dataclass(frozen=True, slots=True)\nclass Message:\n...\n\n* python\n* python-typing\n* pyright\n\niamthebull's user avatar\n\niamthebull\n\n* 511 reputation score 511\n\nasked Sep 4 at 17:40\n\nScore of 0 0 votes\n\n1 answer 1 answer\n\n163 views 163 views\n\n### Best practice for (simple) searching item in a list\n\nTypically, I would obtain/return an item from a list of items like so:\ndef search\\_in\\_list(search\\_id):\nfor item in my\\_list:\nif item['id'] == search\\_id:\nreturn item\nreturn ...\n\n* best-practices\n* python\n* list\n\nMax Z.'s user avatar\n\nMax Z.\n\n* 819 reputation score 819\n\nasked Sep 4 at 15:35\n\nScore of 4 4 votes\n\n2 answers 2 answers\n\n222 views 222 views\n\n### How to type-hint a function that returns as many values as in its input?\n\nI have a function that takes one or more arguments and returns the same number of values. For a single input value, it returns just one value, not a size one tuple, for multiple values it returns a ...\n\n* python\n* python-typing\n* variadic-functions\n\nschtandard's user avatar\n\nschtandard\n\n* 715 reputation score 715\n\nasked Sep 4 at 12:38\n\nScore of 0 0 votes\n\n0 answers 0 answers\n\n80 views 80 views\n\n### PySide6 Custom widget with Enum property\n\nIn PySide6, I'm trying to create a custom widget and register it as a plugin in Qt Designer. My widget has one attribute that is an enum.\nIt displays correctly in Qt Designer, I can change the value ...\n\n* python\n* qt-designer\n* pyside6\n\ngee3107's user avatar\n\ngee3107\n\n* 427 reputation score 427\n\nasked Sep 4 at 1:27\n\nScore of 6 6 votes\n\n1 answer 1 answer\n\n184 views 184 views\n\n### Why can moving an await change whether a Python object remains reachable, even when the object has no explicit strong reference?\n\nI am trying to understand a surprising difference in object lifetime in Python asyncio.\nConsider this simplified example:\nimport asyncio\nimport gc\nimport weakref\nclass Resource:\ndef \\_\\_init\\_\\_(self, ...\n\n* python\n* garbage-collection\n* python-asyncio\n* weak-references\n\nYKT's user avatar\n\nYKT\n\n* 1 reputation score 1\n\nasked Sep 3 at 21:14\n\nScore of -3 \\-3 votes\n\n1 answer 1 answer\n\n133 views 133 views\n\n### [Python Library/Module Won't Import While Others Do [closed]](/questions/80000620/python-library-module-wont-import-while-others-do)\n\nMac os Sequoia 15.6\nI installed the exifread library using pip as well as conda. In Anaconda Navigator it shows as installed. Using a terminal window I type in:\npip3 show exifread\nand it returns\n/opt/...\n\n* python\n* macos\n\nJoe Borgione's user avatar\n\nJoe Borgione\n\n* 11 reputation score 11\n\nasked Sep 3 at 19:37\n\nScore of 2 2 votes\n\n1 answer 1 answer\n\n143 views 143 views\n\n### How can I make numpy arrays the same shape before doing conditional computations?\n\nLet's say I have a conditional calculation like this\nimport numpy as np\ndef foo(a, b, c):\nif a <= 0 or c == 0:\nreturn foo\\_special(a, b, c)\nreturn foo\\_normal(a, b, c)\ndef ...\n\n* python\n* numpy\n* array-broadcasting\n* numpy-ufunc\n\nschtandard's user avatar\n\nschtandard\n\n* 715 reputation score 715\n\nasked Sep 3 at 9:01\n\nScore of -8 \\-8 votes\n\n1 answer 1 answer\n\n147 views 147 views\n\n### How can I test Stack Overflow API write operations?\n\nI am testing an application that uses the Stack Exchange API to perform write operations on Stack Overflow.\nI have successfully tested several read operations, including retrieving questions, answers, ...\n\n* advice\n* python\n\nAmSurya's user avatar\n\nAmSurya\n\n* 1 reputation score 1\n\nasked Sep 3 at 8:10\n\nScore of 0 0 votes\n\n2 answers 2 answers\n\n126 views 126 views\n\n### How to call a Python script from Octave using system()\n\nI am trying to run a python script using Octave's system() function.\nWhen I call the python script from terminal\nsource tabpfn\\_env/bin/activate\ncd ~/tabpfn\\_env\npython3 tabpfn\\_for\\_regression.py\nthe ...\n\n* python\n* octave\n\nbabelproofreader's user avatar\n\nbabelproofreader\n\n* 560 reputation score 560\n\nasked Sep 2 at 23:06\n\nScore of 0 0 votes\n\n1 answer 1 answer\n\n129 views 129 views\n\n### In the Python Socket Module, I am trying to send HTTP status codes to my client socket, but none work properly\n\nIn an assignment for my Computer Networks class, I am tasked with using sockets to receive HTTP packets. This is my current code:\nimport socket\nfrom socket import \\*\nimport sys # In order to terminate ...\n\n* python\n* sockets\n\nJoshua White's user avatar\n\nJoshua White\n\n* 14 reputation score 14\n\nasked Sep 2 at 22:46\n\nScore of -1 \\-1 votes\n\n0 answers 0 answers\n\n80 views 80 views\n\n### [Python asyncio raw TCP server on Fly.io drops external client connections while internal health checks pass [closed]](/questions/80000328/python-asyncio-raw-tcp-server-on-fly-io-drops-external-client-connections-while)\n\nI am trying to establish a stable, raw TCP connection between a local Python-based coordinator and a Python receiver application hosted on Fly.io (App name: receiver-sin, region sin) listening on port ...\n\n* python\n* network-programming\n* tcp\n* python-asyncio\n\nCARTOON WORLD's user avatar\n\nCARTOON WORLD\n\n* 1 reputation score 1\n\nasked Sep 2 at 21:33\n\nScore of -9 \\-9 votes\n\n0 answers 0 answers\n\n143 views 143 views\n\n### [Pygames and coins [closed]](/questions/80000310/pygames-and-coins)\n\nIm making a flappy bird style game with pygames and I was wondering how do I code the coins mechanic?\nI want to make it so there's a trajectory of coins for the user to collect. I imagine I need a ...\n\n* python\n* pygame\n* game-development\n* pygame-surface\n* flappy-bird-clone\n\nHannia's user avatar\n\nHannia\n\n* 1 reputation score 1\n\nasked Sep 2 at 19:46\n\nScore of 3 3 votes\n\n0 answers 0 answers\n\n166 views 166 views\n\n### How do I design a multi-purpose event handler without making it generic?\n\nI am trying to design an event handler that can be used by different classes to manage events specific to that class. The event handler doesn't really need to know what type the events are as long as ...\n\n* python\n* python-typing\n* pyright\n\niamthebull's user avatar\n\niamthebull\n\n* 511 reputation score 511\n\nasked Sep 2 at 18:44\n\nScore of 1 1 vote\n\n1 answer 1 answer\n\n106 views 106 views\n\n### How to get unix-specific python modules working easily on Windows?\n\nI'm currently trying to get https://github.com/cs01/pyxterm.js\nworking on Windows, I got it working on Linux but whenever I try Windows, I run into the issue that the `termios` module is not found. It ...\n\n* python\n* windows\n* pty\n* termios\n\nJaecadeJnight's user avatar\n\nJaecadeJnight\n\n* 159 reputation score 159\n\nasked Sep 2 at 17:17\n\nScore of 3 3 votes\n\n3 answers 3 answers\n\n190 views 190 views\n\n### Canonical way to select data in SQLAlchemy\n\nIt appears there are several different ways to select data with the SQLAlchemy ORM:\nUsing session.query.filter():\nrows = session.query(MyTable).filter(\nMyTable.column1 == value1,\nMyTable....\n\n* best-practices\n* python\n* sqlalchemy\n\nJohn Gordon's user avatar\n\nJohn Gordon\n\n* 33\\.9k reputation score 33887\n\nasked Sep 2 at 15:49\n\nScore of 1 1 vote\n\n2 answers 2 answers\n\n103 views 103 views\n\n### How to make a Toplevel window over a Tk window in Python Tkinter?\n\nfrom tkinter import Tk, Toplevel, Button, Label\nmaster = Tk()\ndef new\\_window():\nwindow = Toplevel(master) #And now you can't use the master window until this window is closed\nLabel(window, ...\n\n* python\n* tkinter\n* toplevel\n\nZeubollisk Wu's user avatar\n\nZeubollisk Wu\n\n* 17 reputation score 17\n\nasked Sep 2 at 15:35\n\nScore of -2 \\-2 votes\n\n1 answer 1 answer\n\n53 views 53 views\n\n### Loading lugh/ClinicalT5-base\n\nI load my model the following way:\nfrom transformers import AutoTokenizer, AutoModelForSeq2SeqLM\nmodel\\_id = \"luqh/ClinicalT5-base\"\ntokenizer = AutoTokenizer.from\\_pretrained(model\\_id)\nmodel = ...\n\n* python\n* huggingface-transformers\n\nace-of-spades's user avatar\n\nace-of-spades\n\n* 9 reputation score 9\n\nasked Sep 2 at 15:16\n\nScore of -3 \\-3 votes\n\n1 answer 1 answer\n\n91 views 91 views\n\n### How to maintain session and authenticate for university portal API with Python requests?\n\nI'm trying to scrape data from my university's portal \"بهستان\" (Behestan) using Python's requests library. The portal uses SSO authentication via sso.kntu.ac.ir (Keycloak/OpenID Connect).\n...\n\n* python\n* authentication\n* web-scraping\n* cookies\n* python-requests\n\nArshia Shariati's user avatar\n\nArshia Shariati\n\n* 1 reputation score 1\n\nasked Sep 2 at 14:28\n\nScore of 4 4 votes\n\n0 answers 0 answers\n\n109 views 109 views\n\n### Mapping np array to Fortran array in gdb using Python API\n\nI want to map a Fortran array to a NumPy array on a tensor using the GDB Python API.\nLet's take the following program\nprogram array\nimplicit none integer, allocatable :: a(:,:,:), flat(:)\n...\n\n* python\n* fortran\n* gdb\n\naitzkora's user avatar\n\naitzkora\n\n* 383 reputation score 383\n\nasked Sep 2 at 11:17\n\nScore of 1 1 vote\n\n0 answers 0 answers\n\n67 views 67 views\n\n### CBC solver reports \"optimal\" solution but pyomo model variables are `None` valued\n\nI came across this problem while using the oemof.solph Python package but I think the root cause is in Pyomo. The problem is a simple energy system model with storage which seeks an optimal supply-...\n\n* python\n* linear-programming\n* pyomo\n* coin-or-cbc\n\nBill's user avatar\n\nBill\n\n* 11\\.9k reputation score 11903\n\nasked Sep 2 at 8:00\n\nScore of -3 \\-3 votes\n\n1 answer 1 answer\n\n117 views 117 views\n\n### 2 line procedural testframe appears, but the class iframe does not\n\nfrom tkinter import \\*\nroot = Tk()\nroot.geometry(\"600x300+80+80\")\nroot.configure(bg='')\nclass iframe(Frame):\ndef \\_\\_init\\_\\_(self, root, bg, width, height, relief):\nsuper(...\n\n* python\n* oop\n* tkinter\n\ndlemper's user avatar\n\ndlemper\n\n* 213 reputation score 213\n\nasked Sep 1 at 19:15\n\n \n1\n\n[2](https://stackoverflow.com/questions/tagged/python?tab=%5BREDACTED%5D&page=%5BREDACTED%5D \"Go to page 2\") [3](https://stackoverflow.com/questions/tagged/python?tab=%5BREDACTED%5D&page=%5BREDACTED%5D \"Go to page 3\") [4](https://stackoverflow.com/questions/tagged/python?tab=%5BREDACTED%5D&page=%5BREDACTED%5D \"Go to page 4\") [5](https://stackoverflow.com/questions/tagged/python?tab=%5BREDACTED%5D&page=%5BREDACTED%5D \"Go to page 5\")\n\n…\n\n[44094](https://stackoverflow.com/questions/tagged/python?tab=%5BREDACTED%5D&page=%5BREDACTED%5D \"Go to page 44094\") [Next](https://stackoverflow.com/questions/tagged/python?tab=%5BREDACTED%5D&page=%5BREDACTED%5D \"Go to next page\")\n\n## Try Stack Overflow for Agents\n\nVerified knowledge for the agentic era\n\nPaste this into your AI coding assistant:\n\nHelp me join Stack Overflow for Agents here. Read https://agents.stackoverflow.com/skill.md, then start onboarding.\n\nSupports Claude Code, Cursor, Codex, Windsurf and more.\n\n[Explore Stack Overflow for Agents](https://agents.stackoverflow.com)\n\n* The Overflow Blog\n* [Scaling your money safely with AI](https://stackoverflow.blog/2026/09/08/scaling-your-money-safely-with-ai/)\n* [Java’s age is its AI superpower](https://stackoverflow.blog/2026/09/09/java-s-age-is-its-ai-superpower/)\n* Featured on Meta\n* [How we talk about ourselves (and to you)](https://meta.stackexchange.com/questions/419259/how-we-talk-about-ourselves-and-to-you)\n* [Policy: Generative AI (e.g., ChatGPT) is banned](https://meta.stackoverflow.com/questions/421831/policy-generative-ai-e-g-chatgpt-is-banned)\n* [Opinion-based content migration is completed](https://meta.stackoverflow.com/questions/440336/opinion-based-content-migration-is-completed)\n* [Help us beta test the new Developer Story](https://meta.stackoverflow.com/questions/440345/help-us-beta-test-the-new-developer-story)\n* [Should we burninate the [tooling] tag?](https://meta.stackoverflow.com/questions/440150/should-we-burninate-the-tooling-tag)\n\n[Newest python questions feed](https://stackoverflow.com/feeds/tag?tagnames=%5BREDACTED%5D&sort=%5BREDACTED%5D \"The 30 newest python questions\")\n\n# Subscribe to RSS\n\nNewest python questions feed\n\nTo subscribe to this RSS feed, copy and paste this URL into your RSS reader.",
"content_length": 29292,
"fetched_via": "parallel",
"success": true,
"title": "Newest 'python' Questions - Stack Overflow",
"url": "https://stackoverflow.com/questions/tagged/python"
}
Sub-agent trace (toolu_01KUi5uhKmEUpMVAPNiTB1xM, 3 events)
tools_started web_fetch t=116956.722
Inner payload
{
"tool_name": "web_fetch",
"tool_input": {
"brief": "Newest Python questions on Stack Overflow",
"max_age_seconds": 600,
"url": "https://stackoverflow.com/questions/tagged/python?tab=%5BREDACTED%5D"
},
"dispatch_id": "toolu_01KUi5uhKmEUpMVAPNiTB1xM",
"parent_dispatch_id": "",
"handle": "",
"panel_kind": "web_fetch"
}tools_progress web_fetch t=116956.723
Inner payload
{
"tool_name": "web_fetch",
"dispatch_id": "toolu_01KUi5uhKmEUpMVAPNiTB1xM",
"status": "running",
"result": null,
"error": "",
"elapsed": null,
"fields": {
"progress": {
"message": "Newest Python questions on Stack Overflow",
"metadata": {
"browser_chain": false,
"url": "https://stackoverflow.com/questions/tagged/python?tab=%5BREDACTED%5D"
}
},
"status": "running",
"updatedAt": 1789168330030
}
}tools_completed web_fetch t=116956.724
Inner payload
{
"tool_name": "web_fetch",
"dispatch_id": "toolu_01KUi5uhKmEUpMVAPNiTB1xM",
"status": "completed",
"result": {
"content": "1. 1. Home\n 2. Questions\n 3. [AI Assist](https://stackoverflow.com/ai-assist)\n 4. Tags\n 5. \n 6. [Stack Overflow for Agents](http://agents.stackoverflow.com)\n 7. \n 8. Challenges\n 9. [Chat](https://chat.stackoverflow.com/?tab=%5BREDACTED%5D)\n 10. [Articles](https://stackoverflow.blog/contributed?utm_medium=%5BREDACTED%5D&utm_source=%5BREDACTED%5D&utm_campaign=%5BREDACTED%5D&utm_content=%5BREDACTED%5D)\n 11. Users\n 12. \n 13. [Companies](https://stackoverflow.com/jobs/companies?so_medium=%5BREDACTED%5D&so_source=%5BREDACTED%5D)\n 14. [Developer Story](https://stackoverflow.com/users/story/join)\n 15. Collectives\n 16. Communities for your favorite technologies. Explore all Collectives\n2. Stack Internal\n \n Stack Overflow for Teams is now called **Stack Internal** . Bring the best of human thought and AI automation together at your work.\n \n [Try for free](https://stackoverflowteams.com/teams/create/free/?utm_medium=%5BREDACTED%5D&utm_source=%5BREDACTED%5D&utm_campaign=%5BREDACTED%5D&utm_content=%5BREDACTED%5D) [Learn more](https://stackoverflow.co/internal/?utm_medium=%5BREDACTED%5D&utm_source=%5BREDACTED%5D&utm_campaign=%5BREDACTED%5D&utm_content=%5BREDACTED%5D)\n3. Stack Internal\n4. Bring the best of human thought and AI automation together at your work. [Learn more](https://stackoverflow.co/internal/?utm_medium=%5BREDACTED%5D&utm_source=%5BREDACTED%5D&utm_campaign=%5BREDACTED%5D&utm_content=%5BREDACTED%5D)\n\n##### Collectives™ on Stack Overflow\n\nFind centralized, trusted content and collaborate around the technologies you use most.\n\nLearn more about Collectives\n\n**Stack Internal**\n\nKnowledge at work\n\nBring the best of human thought and AI automation together at your work.\n\n[Explore Stack Internal](https://stackoverflow.co/internal/?utm_medium=%5BREDACTED%5D&utm_source=%5BREDACTED%5D&utm_campaign=%5BREDACTED%5D&utm_content=%5BREDACTED%5D)\n\n2,204,662 questions\n\n* [Bountied 0](https://stackoverflow.com/questions/tagged/python?tab=%5BREDACTED%5D)\n* [Unanswered](https://stackoverflow.com/questions/tagged/python?tab=%5BREDACTED%5D)\n* [Frequent](https://stackoverflow.com/questions/tagged/python?tab=%5BREDACTED%5D)\n* [Score](https://stackoverflow.com/questions/tagged/python?tab=%5BREDACTED%5D)\n* [Trending](https://stackoverflow.com/questions/tagged/python?tab=%5BREDACTED%5D)\n* [Week](https://stackoverflow.com/questions/tagged/python?tab=%5BREDACTED%5D)\n* [Month](https://stackoverflow.com/questions/tagged/python?tab=%5BREDACTED%5D)\n* \n* Unanswered (my tags)\n\n## Question list filters\n\nFilter by\n\nNo answers\n\nNo upvoted or accepted answers\n\nNo Staging Ground\n\nHas bounty\n\nDays old\n\nSorted by\n\nNewest\n\nRecent activity\n\nHighest score\n\nMost frequent\n\nBounty ending soon\n\nTrending\n\nMost activity\n\nTagged with\n\nMy watched tags\n\nThe following tags:\n\nApply filter\n\nCancel\n\nScore of 0 0 votes\n\n0 answers 0 answers\n\n7 views 7 views\n\n### Power BI Python Visualization erroring out when it shouldn't\n\nI am attempting to build a visualization testing some of Python's predictive analysis libraries and I am running into 2 issues. First, the dataset is larger than the apparent 150k row limit, so I was ...\n\n* python\n* pandas\n* database\n* dataframe\n* powerbi\n\nAdalast's user avatar\n\nAdalast\n\n* 161 reputation score 161\n\nasked 11 mins ago\n\nScore of -4 \\-4 votes\n\n0 answers 0 answers\n\n56 views 56 views\n\n### Should I use DiskCache or JWT for FastAPI password reset tokens?\n\nI'm implementing a forgot-password feature in FastAPI. I'm currently using DiskCache\nCurrently, my approach is generating a reset link containing the token, and when the token is successfully verified,...\n\n* best-practices\n* python\n* jwt\n* fastapi\n\nenrii fernando's user avatar\n\nenrii fernando\n\n* 1 reputation score 1\n\nasked 1 hour ago\n\nScore of -3 \\-3 votes\n\n1 answer 1 answer\n\n121 views 121 views\n\n### [Finding digits in a string containing distinct digits [closed]](/questions/80002181/finding-digits-in-a-string-containing-distinct-digits)\n\nI'm finding out how to check for digits in a string; this is the code that I wrote:\nimport math\nimport cmath\na=set([1,2,3,4,5,6,7,8,9,0])\nUNO=[]\nfor x in a:\nfor m in range(1,10\\*\\*10):\nfor n ...\n\n* python\n\nSam Sianati's user avatar\n\nSam Sianati\n\n* 1 reputation score 1\n\nasked 3 hours ago\n\nScore of 0 0 votes\n\n0 answers 0 answers\n\n33 views 33 views\n\n### IBKR ib\\_insync problem with placing stop limit orders in pre/post markets\n\nOn IBKR, and using ib\\_insync, I am having problems placing stop limit orders in pre/post markets. The first limit order order goes through smoothly, but the stop limit does not appear. On IBKR, the ...\n\n* python\n* ib-insync\n\nSuperLeo's user avatar\n\nSuperLeo\n\n* 135 reputation score 135\n\nasked 3 hours ago\n\nScore of -8 \\-8 votes\n\n0 answers 0 answers\n\n98 views 98 views\n\n### [Programatically downloading YouTube videos at scale: yt-dlp rate limits, GVS PO tokens, and alternative libraries in Python [closed]](/questions/80002131/programatically-downloading-youtube-videos-at-scale-yt-dlp-rate-limits-gvs-po)\n\nI am developing a Python-based media archiving pipeline that downloads authorized YouTube video ad creatives for digital media audits.\nThe current implementation uses yt-dlp:\nimport yt\\_dlp\ndef ...\n\n* advice\n* python\n* youtube\n\nDeepshika Tiwari's user avatar\n\nDeepshika Tiwari\n\n* 1 reputation score 1\n\nasked 7 hours ago\n\nScore of 1 1 vote\n\n1 answer 1 answer\n\n87 views 87 views\n\n### PyCharm type-hint warning: Member 'None' of 'Any | None' does not have attribute '\\_\\_getitem\\_\\_'\n\nI have found a type-hint warning which I can't solve:\nimport shelve\nwith shelve.open(\"file.db\") as f:\nsess\\_data = f.get(\"xxx\")\nif sess\\_data:\nusername = sess\\_data[0]...\n\n* python\n* pycharm\n* python-typing\n\nNickC's user avatar\n\nNickC\n\n* 1,471 reputation score 1471\n\nasked 20 hours ago\n\nScore of -3 \\-3 votes\n\n1 answer 1 answer\n\n133 views 133 views\n\n### [Empty datetime() and type-hint errors [closed]](/questions/80001989/empty-datetime-and-type-hint-errors)\n\nAny suggestions how to deal with these type-hint errors in PyCharm related to a datetime variable which initially starts off as None but then gets set at a later time. As far as I can tell datetime ...\n\n* python\n* datetime\n* python-typing\n\nNickC's user avatar\n\nNickC\n\n* 1,471 reputation score 1471\n\nasked 21 hours ago\n\nScore of -3 \\-3 votes\n\n0 answers 0 answers\n\n128 views 128 views\n\n### [Many-to-many relation creates new items after migration [closed]](/questions/80001980/many-to-many-relation-creates-new-items-after-migration)\n\nI've migrated db from SQLite to PostgreSQL as the book Django 5 by Example told, but I have a simple bug. In the Post module, I have this relation declared:\nclass Post(models.Model):\n...\ntags =...\n\n* python\n* django\n\nObalouch's user avatar\n\nObalouch\n\n* 1 reputation score 1\n\nasked 23 hours ago\n\nScore of 1 1 vote\n\n1 answer 1 answer\n\n146 views 146 views\n\n### [Write sequence of null chars to file [duplicate]](/questions/80001870/write-sequence-of-null-chars-to-file)\n\nI want to write a long list of ASCII-value-is-0 chars to a brand new file for testing purposes.\nSpecifically, I'm seeing how Notepad renders nulls and how it counts the number of characters present ...\n\n* python\n* utf-8\n* null\n* character-encoding\n* file-writing\n\nStev's user avatar\n\nStev\n\n* 233 reputation score 233\n\nasked yesterday\n\nScore of -3 \\-3 votes\n\n0 answers 0 answers\n\n102 views 102 views\n\n### [Splunk AI Assistant failed during initial setup due to Python errors [closed]](/questions/80001863/splunk-ai-assistant-failed-during-initial-setup-due-to-python-errors)\n\nI was installing Splunk AI Assistant 2.3.2 on Splunk Enterprise 10.2.7 (Windows). The app failed during the initial setup with:\nFailed during initial setup. Please contact Splunk Support.\nThe Splunk ...\n\n* best-practices\n* python\n* splunk\n\nBaharvand's user avatar\n\nBaharvand\n\n* 11 reputation score 11\n\nasked yesterday\n\nScore of 2 2 votes\n\n0 answers 0 answers\n\n47 views 47 views\n\n### Using df.styler with df.to\\_latex() and longtable\n\nI'm trying to convert a table to LaTeX using df.to\\_latex(). I've become aware of styler, but I am not super expert in LaTeX itself and write largely in Markdown and convert to Pandoc with an engine.\nI ...\n\n* python\n* pandas\n* latex\n* pandoc\n* font-style\n\ngjmb's user avatar\n\ngjmb\n\n* 21 reputation score 21\n\nasked yesterday\n\nScore of 0 0 votes\n\n1 answer 1 answer\n\n110 views 110 views\n\n### Why doesn't setting \"justMyCode\": false allow my breakpoint to work?\n\nI was debugging some code with an async socket server and found that some breakpoints in the message handler (handle\\_client) were being ignored. After far too much head scratching I came to realize it ...\n\n* python\n* vs-code\n* vscode-debugger\n* debugpy\n\niamthebull's user avatar\n\niamthebull\n\n* 511 reputation score 511\n\nasked yesterday\n\nScore of -3 \\-3 votes\n\n1 answer 1 answer\n\n149 views 149 views\n\n### Why is Python able to perform a bitwise and on LSB of 16 bit value instead of the 8MSBs?\n\nI made this script:\nval = 0xF81F\nmask = 0xFF\nfinal = val & mask\nprint(f\"Original: {val:}\")\nprint(f\"MASK: {mask:}\")\nprint(f\"FINAL: {final:}\")\nand I got:\n...\n\n* python\n* bitwise-operators\n\nDimitrios Desyllas's user avatar\n\nDimitrios Desyllas\n\n* 10\\.7k reputation score 10688\n\nasked yesterday\n\nScore of -4 \\-4 votes\n\n0 answers 0 answers\n\n58 views 58 views\n\n### [os.path.isfile() does not work with ~ prefix [duplicate]](/questions/80001679/os-path-isfile-does-not-work-with-prefix)\n\nTrue:\nos.path.isfile('/home/user/Downloads/bla.txt')\nnot working:\npython os.path.isfile('~/Downloads/bla.txt')\nAnd:\nos.path.realpath('~/Downloads/bla.txt')\nreturns:\n/home/user/~/Downloads/bla.txt\n...\n\n* python\n\nrundekugel's user avatar\n\nrundekugel\n\n* 1,533 reputation score 1533\n\nasked 2 days ago\n\nScore of -5 \\-5 votes\n\n1 answer 1 answer\n\n219 views 219 views\n\n### World generation visual glitch\n\nMy goal is to create a 2d survival open world experience. The problem I am facing is that my world loads and unloads and loads creating a visual glitch and unnecessary FPS loss. I am not receiving any ...\n\n* python\n* pygame\n\nstreamz gamer's user avatar\n\nstreamz gamer\n\n* 1 reputation score 1\n\nasked 2 days ago\n\nScore of 4 4 votes\n\n1 answer 1 answer\n\n141 views 141 views\n\n### Documentation of pandas DataFrame.replace with series as input\n\nI am fairly new to using Pandas and I am trying to understand the functionality of the DataFrame.replace method when the input is a series. The documentation mentions that it accepts it as input but I ...\n\n* python\n* pandas\n* dataframe\n\nuser33098110's user avatar\n\nuser33098110\n\n* 43 reputation score 43\n\nasked 2 days ago\n\nScore of 6 6 votes\n\n2 answers 2 answers\n\n295 views 295 views\n\n### Type hint a default return type used unless more specific overload exists\n\nLet's say I have the function\nimport numpy as np\ndef foo(a: float | np.ndarray, b: float | np.ndarray,\nc: float | np.ndarray, d: float | np.ndarray) -> float | np.ndarray:\nreturn a \\* b ...\n\n* python\n* python-typing\n\nschtandard's user avatar\n\nschtandard\n\n* 715 reputation score 715\n\nasked Sep 7 at 14:58\n\nScore of 2 2 votes\n\n2 answers 2 answers\n\n157 views 157 views\n\n### Is there a way to make scipy.optimize.minimize(method='trust-constr') accurate?\n\nIf I understand correctly, method=\"trust-constr\" is considered to be the most modern,\nhighest-quality, and currently-best-supported of the strategies available for scipy.optimize.minimize() ...\n\n* python\n* scipy\n* scipy-optimize\n* scipy-optimize-minimize\n\nDon Hatch's user avatar\n\nDon Hatch\n\n* 5,880 reputation score 5880\n\nasked Sep 7 at 13:42\n\nScore of 2 2 votes\n\n0 answers 0 answers\n\n154 views 154 views\n\n### How to deal with implicit transformation into parent type when using a TypeVar?\n\nConsider the following code:\nfrom \\_\\_future\\_\\_ import annotations\nfrom typing import Generic, Self, TypeVar, overload\nT = TypeVar(\"T\", float, complex)\nclass Dummy(Generic[T]):\ndef ...\n\n* python\n* python-typing\n\nTristan Nemoz's user avatar\n\nTristan Nemoz\n\n* 2,108 reputation score 2108\n\nasked Sep 7 at 11:12\n\nScore of -1 \\-1 votes\n\n1 answer 1 answer\n\n83 views 83 views\n\n### [pwntool process is none [Starting remote process None: Process creation failed]](/questions/80001289/pwntool-process-is-none-starting-remote-process-none-process-creation-failed)\n\nI am trying solve ctf problem (Spoiler for pwnable.kr passcode challenge). I can connect and execute command but can't create process. Please don't write the flag. I just need to know how to create ...\n\n* python\n* ctf\n* pwntools\n\nGEO's user avatar\n\nGEO\n\n* 69 reputation score 69\n\nasked Sep 7 at 2:22\n\nScore of -4 \\-4 votes\n\n0 answers 0 answers\n\n100 views 100 views\n\n### [iPython Running Old Version of Script [closed]](/questions/80001264/ipython-running-old-version-of-script)\n\nI am trying to run a script in my psychoPy environment with IPython, and it keeps running an old version of my script even though I have saved this new one multiple times and even copy and pasted the ...\n\n* python\n* ipython\n* psychopy\n\nLili Hauser's user avatar\n\nLili Hauser\n\n* 25 reputation score 25\n\nasked Sep 6 at 22:32\n\nScore of -4 \\-4 votes\n\n0 answers 0 answers\n\n128 views 128 views\n\n### Problems with getting variables via lifespan context manager in Fastapi\n\nI wanna get variables created previously via lifespan for getting it in other part of my fastapi app.\nEach variable is sqlalchemy session maker binded with sqlalchemy engine. So I`m using sub context ...\n\n* python\n* sqlalchemy\n* fastapi\n\nLiomtr's user avatar\n\nLiomtr\n\n* 27 reputation score 27\n\nasked Sep 6 at 18:36\n\nScore of -4 \\-4 votes\n\n0 answers 0 answers\n\n38 views 38 views\n\n### [why can i not install pygame on the Visual StudiI developer powershell [duplicate]](/questions/80001204/why-can-i-not-install-pygame-on-the-visual-studii-developer-powershell)\n\nThe install keeps getting stuck on getting requirements to build wheel\ni have tried the command py -m pip install --upgrade pip setuptools wheel and it ran the install but it didn't work the next ...\n\n* python\n* pip\n* pygame\n\nCleanReptile228's user avatar\n\nCleanReptile228\n\n* 1 reputation score 1\n\nasked Sep 6 at 17:14\n\nScore of -4 \\-4 votes\n\n0 answers 0 answers\n\n104 views 104 views\n\n### [Gemini 3.5 flash preview voice lagging sometimes it response fast but it takes minutes which is not bearable in real call [closed]](/questions/80001192/gemini-3-5-flash-preview-voice-lagging-sometimes-it-response-fast-but-it-takes-m)\n\nI built voice agent for doctor appointment booking where user tell the department or its problem audio directly send to Gemini 3.5 flash live preview, sometimes it response instantly but sometimes it ...\n\n* python\n* google-gemini\n\nHasnain Ali's user avatar\n\nHasnain Ali\n\n* 1 reputation score 1\n\nasked Sep 6 at 16:09\n\nScore of -5 \\-5 votes\n\n0 answers 0 answers\n\n85 views 85 views\n\n### [Pygbag: NotImplementedError: set\\_timer is not implemented on WASM yet [closed]](/questions/80001158/pygbag-notimplementederror-set-timer-is-not-implemented-on-wasm-yet)\n\npygame-ce 2.5.7 (SDL 2.28.4, Python 3.12.12)\n\\\\>>> Task exception was never retrieved\nfuture: <Task finished name='main' coro=<main() done, defined at <console>:3> exception=...\n\n* python\n* python-3.x\n* pygame\n* webassembly\n* pygbag\n\nRubinosław's user avatar\n\nRubinosław\n\n* 1 reputation score 1\n\nasked Sep 6 at 11:11\n\nScore of -8 \\-8 votes\n\n2 answers 2 answers\n\n239 views 239 views\n\n### [Python discount function returns negative value and passes all linters, mypy, bandit and unit tests [closed]](/questions/80001048/python-discount-function-returns-negative-value-and-passes-all-linters-mypy-ba)\n\nI have this pricing function in a Python e-commerce application:\ndef apply\\_discount(price, discount):\nreturn price \\* (1 - discount) It works correctly for normal inputs:\napply\\_discount(100, 0....\n\n* python\n* testing\n* pytest\n* static-analysis\n\nk-L-a's user avatar\n\nk-L-a\n\n* 5 reputation score 5\n\nasked Sep 5 at 20:20\n\nScore of -2 \\-2 votes\n\n1 answer 1 answer\n\n106 views 106 views\n\n### When installing requests with UV, VS code cannot find requests module, but the script runs successfully from the command line\n\nWhen installing requests with UV, VS code cannot find requests module, but the script runs from the command line.\nuv python list\ncpython-3.12.3-linux-x86\\_64-gnu /usr/bin/python3.12\n...\n\n* python\n* pip\n* python-requests\n* uv\n\nLance M's user avatar\n\nLance M\n\n* 63 reputation score 63\n\nasked Sep 5 at 15:26\n\nScore of -2 \\-2 votes\n\n1 answer 1 answer\n\n146 views 146 views\n\n### [Send an email from Outlook account using Python [closed]](/questions/80000948/send-an-email-from-outlook-account-using-python)\n\nI'm trying to send an email from my Outlook account to Gmail using Python's smtplib. I set up SMTP with Office 365 (smtp.office365.com:587) and credentials but get a \"550 5.7.1 Client does not ...\n\n* python\n* email\n* outlook\n\nLakshit Sharma's user avatar\n\nLakshit Sharma\n\n* 1 reputation score 1\n\nasked Sep 5 at 8:05\n\nScore of 1 1 vote\n\n0 answers 0 answers\n\n127 views 127 views\n\n### How to run a process that survives after parent process dies? subprocess.CREATE\\_NEW\\_PROCESS\\_GROUP is not working\n\nI use VScode on Windows 10.\nI run a subprocess using the subprocess module. but it closes if I kill the parent process, whether I kill it with VScode or with os.kill(os.getpid()).\nI tried many things ...\n\n* python\n* subprocess\n* popen\n\nPower of Wilson's user avatar\n\nPower of Wilson\n\n* 9 reputation score 9\n\nasked Sep 4 at 20:44\n\nScore of 1 1 vote\n\n1 answer 1 answer\n\n153 views 153 views\n\n### Why isn't my type checker (Pyright) complaining about a clear type violation?\n\nWhy isn't Pyright complaining about this? msg: Any is not a Message. (Pylance 2026.3.1)\nimport asyncio\nfrom dataclasses import dataclass\nimport json\n@dataclass(frozen=True, slots=True)\nclass Message:\n...\n\n* python\n* python-typing\n* pyright\n\niamthebull's user avatar\n\niamthebull\n\n* 511 reputation score 511\n\nasked Sep 4 at 17:40\n\nScore of 0 0 votes\n\n1 answer 1 answer\n\n163 views 163 views\n\n### Best practice for (simple) searching item in a list\n\nTypically, I would obtain/return an item from a list of items like so:\ndef search\\_in\\_list(search\\_id):\nfor item in my\\_list:\nif item['id'] == search\\_id:\nreturn item\nreturn ...\n\n* best-practices\n* python\n* list\n\nMax Z.'s user avatar\n\nMax Z.\n\n* 819 reputation score 819\n\nasked Sep 4 at 15:35\n\nScore of 4 4 votes\n\n2 answers 2 answers\n\n222 views 222 views\n\n### How to type-hint a function that returns as many values as in its input?\n\nI have a function that takes one or more arguments and returns the same number of values. For a single input value, it returns just one value, not a size one tuple, for multiple values it returns a ...\n\n* python\n* python-typing\n* variadic-functions\n\nschtandard's user avatar\n\nschtandard\n\n* 715 reputation score 715\n\nasked Sep 4 at 12:38\n\nScore of 0 0 votes\n\n0 answers 0 answers\n\n80 views 80 views\n\n### PySide6 Custom widget with Enum property\n\nIn PySide6, I'm trying to create a custom widget and register it as a plugin in Qt Designer. My widget has one attribute that is an enum.\nIt displays correctly in Qt Designer, I can change the value ...\n\n* python\n* qt-designer\n* pyside6\n\ngee3107's user avatar\n\ngee3107\n\n* 427 reputation score 427\n\nasked Sep 4 at 1:27\n\nScore of 6 6 votes\n\n1 answer 1 answer\n\n184 views 184 views\n\n### Why can moving an await change whether a Python object remains reachable, even when the object has no explicit strong reference?\n\nI am trying to understand a surprising difference in object lifetime in Python asyncio.\nConsider this simplified example:\nimport asyncio\nimport gc\nimport weakref\nclass Resource:\ndef \\_\\_init\\_\\_(self, ...\n\n* python\n* garbage-collection\n* python-asyncio\n* weak-references\n\nYKT's user avatar\n\nYKT\n\n* 1 reputation score 1\n\nasked Sep 3 at 21:14\n\nScore of -3 \\-3 votes\n\n1 answer 1 answer\n\n133 views 133 views\n\n### [Python Library/Module Won't Import While Others Do [closed]](/questions/80000620/python-library-module-wont-import-while-others-do)\n\nMac os Sequoia 15.6\nI installed the exifread library using pip as well as conda. In Anaconda Navigator it shows as installed. Using a terminal window I type in:\npip3 show exifread\nand it returns\n/opt/...\n\n* python\n* macos\n\nJoe Borgione's user avatar\n\nJoe Borgione\n\n* 11 reputation score 11\n\nasked Sep 3 at 19:37\n\nScore of 2 2 votes\n\n1 answer 1 answer\n\n143 views 143 views\n\n### How can I make numpy arrays the same shape before doing conditional computations?\n\nLet's say I have a conditional calculation like this\nimport numpy as np\ndef foo(a, b, c):\nif a <= 0 or c == 0:\nreturn foo\\_special(a, b, c)\nreturn foo\\_normal(a, b, c)\ndef ...\n\n* python\n* numpy\n* array-broadcasting\n* numpy-ufunc\n\nschtandard's user avatar\n\nschtandard\n\n* 715 reputation score 715\n\nasked Sep 3 at 9:01\n\nScore of -8 \\-8 votes\n\n1 answer 1 answer\n\n147 views 147 views\n\n### How can I test Stack Overflow API write operations?\n\nI am testing an application that uses the Stack Exchange API to perform write operations on Stack Overflow.\nI have successfully tested several read operations, including retrieving questions, answers, ...\n\n* advice\n* python\n\nAmSurya's user avatar\n\nAmSurya\n\n* 1 reputation score 1\n\nasked Sep 3 at 8:10\n\nScore of 0 0 votes\n\n2 answers 2 answers\n\n126 views 126 views\n\n### How to call a Python script from Octave using system()\n\nI am trying to run a python script using Octave's system() function.\nWhen I call the python script from terminal\nsource tabpfn\\_env/bin/activate\ncd ~/tabpfn\\_env\npython3 tabpfn\\_for\\_regression.py\nthe ...\n\n* python\n* octave\n\nbabelproofreader's user avatar\n\nbabelproofreader\n\n* 560 reputation score 560\n\nasked Sep 2 at 23:06\n\nScore of 0 0 votes\n\n1 answer 1 answer\n\n129 views 129 views\n\n### In the Python Socket Module, I am trying to send HTTP status codes to my client socket, but none work properly\n\nIn an assignment for my Computer Networks class, I am tasked with using sockets to receive HTTP packets. This is my current code:\nimport socket\nfrom socket import \\*\nimport sys # In order to terminate ...\n\n* python\n* sockets\n\nJoshua White's user avatar\n\nJoshua White\n\n* 14 reputation score 14\n\nasked Sep 2 at 22:46\n\nScore of -1 \\-1 votes\n\n0 answers 0 answers\n\n80 views 80 views\n\n### [Python asyncio raw TCP server on Fly.io drops external client connections while internal health checks pass [closed]](/questions/80000328/python-asyncio-raw-tcp-server-on-fly-io-drops-external-client-connections-while)\n\nI am trying to establish a stable, raw TCP connection between a local Python-based coordinator and a Python receiver application hosted on Fly.io (App name: receiver-sin, region sin) listening on port ...\n\n* python\n* network-programming\n* tcp\n* python-asyncio\n\nCARTOON WORLD's user avatar\n\nCARTOON WORLD\n\n* 1 reputation score 1\n\nasked Sep 2 at 21:33\n\nScore of -9 \\-9 votes\n\n0 answers 0 answers\n\n143 views 143 views\n\n### [Pygames and coins [closed]](/questions/80000310/pygames-and-coins)\n\nIm making a flappy bird style game with pygames and I was wondering how do I code the coins mechanic?\nI want to make it so there's a trajectory of coins for the user to collect. I imagine I need a ...\n\n* python\n* pygame\n* game-development\n* pygame-surface\n* flappy-bird-clone\n\nHannia's user avatar\n\nHannia\n\n* 1 reputation score 1\n\nasked Sep 2 at 19:46\n\nScore of 3 3 votes\n\n0 answers 0 answers\n\n166 views 166 views\n\n### How do I design a multi-purpose event handler without making it generic?\n\nI am trying to design an event handler that can be used by different classes to manage events specific to that class. The event handler doesn't really need to know what type the events are as long as ...\n\n* python\n* python-typing\n* pyright\n\niamthebull's user avatar\n\niamthebull\n\n* 511 reputation score 511\n\nasked Sep 2 at 18:44\n\nScore of 1 1 vote\n\n1 answer 1 answer\n\n106 views 106 views\n\n### How to get unix-specific python modules working easily on Windows?\n\nI'm currently trying to get https://github.com/cs01/pyxterm.js\nworking on Windows, I got it working on Linux but whenever I try Windows, I run into the issue that the `termios` module is not found. It ...\n\n* python\n* windows\n* pty\n* termios\n\nJaecadeJnight's user avatar\n\nJaecadeJnight\n\n* 159 reputation score 159\n\nasked Sep 2 at 17:17\n\nScore of 3 3 votes\n\n3 answers 3 answers\n\n190 views 190 views\n\n### Canonical way to select data in SQLAlchemy\n\nIt appears there are several different ways to select data with the SQLAlchemy ORM:\nUsing session.query.filter():\nrows = session.query(MyTable).filter(\nMyTable.column1 == value1,\nMyTable....\n\n* best-practices\n* python\n* sqlalchemy\n\nJohn Gordon's user avatar\n\nJohn Gordon\n\n* 33\\.9k reputation score 33887\n\nasked Sep 2 at 15:49\n\nScore of 1 1 vote\n\n2 answers 2 answers\n\n103 views 103 views\n\n### How to make a Toplevel window over a Tk window in Python Tkinter?\n\nfrom tkinter import Tk, Toplevel, Button, Label\nmaster = Tk()\ndef new\\_window():\nwindow = Toplevel(master) #And now you can't use the master window until this window is closed\nLabel(window, ...\n\n* python\n* tkinter\n* toplevel\n\nZeubollisk Wu's user avatar\n\nZeubollisk Wu\n\n* 17 reputation score 17\n\nasked Sep 2 at 15:35\n\nScore of -2 \\-2 votes\n\n1 answer 1 answer\n\n53 views 53 views\n\n### Loading lugh/ClinicalT5-base\n\nI load my model the following way:\nfrom transformers import AutoTokenizer, AutoModelForSeq2SeqLM\nmodel\\_id = \"luqh/ClinicalT5-base\"\ntokenizer = AutoTokenizer.from\\_pretrained(model\\_id)\nmodel = ...\n\n* python\n* huggingface-transformers\n\nace-of-spades's user avatar\n\nace-of-spades\n\n* 9 reputation score 9\n\nasked Sep 2 at 15:16\n\nScore of -3 \\-3 votes\n\n1 answer 1 answer\n\n91 views 91 views\n\n### How to maintain session and authenticate for university portal API with Python requests?\n\nI'm trying to scrape data from my university's portal \"بهستان\" (Behestan) using Python's requests library. The portal uses SSO authentication via sso.kntu.ac.ir (Keycloak/OpenID Connect).\n...\n\n* python\n* authentication\n* web-scraping\n* cookies\n* python-requests\n\nArshia Shariati's user avatar\n\nArshia Shariati\n\n* 1 reputation score 1\n\nasked Sep 2 at 14:28\n\nScore of 4 4 votes\n\n0 answers 0 answers\n\n109 views 109 views\n\n### Mapping np array to Fortran array in gdb using Python API\n\nI want to map a Fortran array to a NumPy array on a tensor using the GDB Python API.\nLet's take the following program\nprogram array\nimplicit none integer, allocatable :: a(:,:,:), flat(:)\n...\n\n* python\n* fortran\n* gdb\n\naitzkora's user avatar\n\naitzkora\n\n* 383 reputation score 383\n\nasked Sep 2 at 11:17\n\nScore of 1 1 vote\n\n0 answers 0 answers\n\n67 views 67 views\n\n### CBC solver reports \"optimal\" solution but pyomo model variables are `None` valued\n\nI came across this problem while using the oemof.solph Python package but I think the root cause is in Pyomo. The problem is a simple energy system model with storage which seeks an optimal supply-...\n\n* python\n* linear-programming\n* pyomo\n* coin-or-cbc\n\nBill's user avatar\n\nBill\n\n* 11\\.9k reputation score 11903\n\nasked Sep 2 at 8:00\n\nScore of -3 \\-3 votes\n\n1 answer 1 answer\n\n117 views 117 views\n\n### 2 line procedural testframe appears, but the class iframe does not\n\nfrom tkinter import \\*\nroot = Tk()\nroot.geometry(\"600x300+80+80\")\nroot.configure(bg='')\nclass iframe(Frame):\ndef \\_\\_init\\_\\_(self, root, bg, width, height, relief):\nsuper(...\n\n* python\n* oop\n* tkinter\n\ndlemper's user avatar\n\ndlemper\n\n* 213 reputation score 213\n\nasked Sep 1 at 19:15\n\n \n1\n\n[2](https://stackoverflow.com/questions/tagged/python?tab=%5BREDACTED%5D&page=%5BREDACTED%5D \"Go to page 2\") [3](https://stackoverflow.com/questions/tagged/python?tab=%5BREDACTED%5D&page=%5BREDACTED%5D \"Go to page 3\") [4](https://stackoverflow.com/questions/tagged/python?tab=%5BREDACTED%5D&page=%5BREDACTED%5D \"Go to page 4\") [5](https://stackoverflow.com/questions/tagged/python?tab=%5BREDACTED%5D&page=%5BREDACTED%5D \"Go to page 5\")\n\n…\n\n[44094](https://stackoverflow.com/questions/tagged/python?tab=%5BREDACTED%5D&page=%5BREDACTED%5D \"Go to page 44094\") [Next](https://stackoverflow.com/questions/tagged/python?tab=%5BREDACTED%5D&page=%5BREDACTED%5D \"Go to next page\")\n\n## Try Stack Overflow for Agents\n\nVerified knowledge for the agentic era\n\nPaste this into your AI coding assistant:\n\nHelp me join Stack Overflow for Agents here. Read https://agents.stackoverflow.com/skill.md, then start onboarding.\n\nSupports Claude Code, Cursor, Codex, Windsurf and more.\n\n[Explore Stack Overflow for Agents](https://agents.stackoverflow.com)\n\n* The Overflow Blog\n* [Scaling your money safely with AI](https://stackoverflow.blog/2026/09/08/scaling-your-money-safely-with-ai/)\n* [Java’s age is its AI superpower](https://stackoverflow.blog/2026/09/09/java-s-age-is-its-ai-superpower/)\n* Featured on Meta\n* [How we talk about ourselves (and to you)](https://meta.stackexchange.com/questions/419259/how-we-talk-about-ourselves-and-to-you)\n* [Policy: Generative AI (e.g., ChatGPT) is banned](https://meta.stackoverflow.com/questions/421831/policy-generative-ai-e-g-chatgpt-is-banned)\n* [Opinion-based content migration is completed](https://meta.stackoverflow.com/questions/440336/opinion-based-content-migration-is-completed)\n* [Help us beta test the new Developer Story](https://meta.stackoverflow.com/questions/440345/help-us-beta-test-the-new-developer-story)\n* [Should we burninate the [tooling] tag?](https://meta.stackoverflow.com/questions/440150/should-we-burninate-the-tooling-tag)\n\n[Newest python questions feed](https://stackoverflow.com/feeds/tag?tagnames=%5BREDACTED%5D&sort=%5BREDACTED%5D \"The 30 newest python questions\")\n\n# Subscribe to RSS\n\nNewest python questions feed\n\nTo subscribe to this RSS feed, copy and paste this URL into your RSS reader.",
"content_length": 29292,
"fetched_via": "parallel",
"success": true,
"title": "Newest 'python' Questions - Stack Overflow",
"url": "https://stackoverflow.com/questions/tagged/python"
},
"error": "",
"elapsed": 11.140211156
}
10 newest unanswered Python questions on Stack Overflow, grouped by theme.
```document title="10 newest unanswered Python questions" subtitle="Stack Overflow"
Data / reporting pipelines
- Power BI Python visual erroring out (11 min ago, pandas/powerbi) - dataset exceeds Power BI's ~150k row limit for Python visuals, and the script fails even though the author thinks it should run.
- Using df.styler with df.to_latex() and longtable (yesterday, pandas/latex) - wants styled pandas output in LaTeX longtable form, writes mostly Markdown and converts via Pandoc, unsure how styler interacts with to_latex.
Web backends
- DiskCache or JWT for FastAPI password reset tokens? (1 hr ago) - forgot-password flow currently stores reset tokens in DiskCache, asking which approach is right (-4 votes, reads as opinion-based).
- Django many-to-many relation creates new items after migration (23 hrs ago) - after moving from SQLite to PostgreSQL following "Django 5 by Example", the Post.tags relation duplicates tag items.
Third-party APIs and tooling
- IBKR ib_insync stop limit orders in pre/post market (3 hrs ago) - the first limit order places fine, but the stop limit never appears outside regular hours.
- Downloading YouTube videos at scale with yt-dlp (7 hrs ago) - media archiving pipeline hitting rate limits and GVS PO token requirements, asking about alternative libraries.
- Splunk AI Assistant 2.3.2 setup fails with Python errors (yesterday, Splunk Enterprise 10.2.7 on Windows) - "Failed during initial setup" during first-run config.
Environment and stdlib basics
- os.path.isfile() does not work with a ~ prefix (2 days ago) - ~/Downloads/bla.txt isn't expanded, and realpath returns /home/user/~/Downloads/.... Marked duplicate; the answer is os.path.expanduser.
- IPython runs an old version of my script (Sep 6, psychopy) - saved edits aren't picked up, likely stale module caching.
Typing
- Implicit transformation into parent type when using a TypeVar (Sep 7) - a Generic[T] class with TypeVar("T", float, complex) and overloads, where float silently widens to complex.
Markdown source
```document title="10 newest unanswered Python questions" subtitle="Stack Overflow"
**Data / reporting pipelines**
1. Power BI Python visual erroring out (11 min ago, pandas/powerbi) - dataset exceeds Power BI's ~150k row limit for Python visuals, and the script fails even though the author thinks it should run.
2. Using df.styler with df.to_latex() and longtable (yesterday, pandas/latex) - wants styled pandas output in LaTeX longtable form, writes mostly Markdown and converts via Pandoc, unsure how styler interacts with to_latex.
**Web backends**
3. DiskCache or JWT for FastAPI password reset tokens? (1 hr ago) - forgot-password flow currently stores reset tokens in DiskCache, asking which approach is right (-4 votes, reads as opinion-based).
4. Django many-to-many relation creates new items after migration (23 hrs ago) - after moving from SQLite to PostgreSQL following "Django 5 by Example", the Post.tags relation duplicates tag items.
**Third-party APIs and tooling**
5. IBKR ib_insync stop limit orders in pre/post market (3 hrs ago) - the first limit order places fine, but the stop limit never appears outside regular hours.
6. Downloading YouTube videos at scale with yt-dlp (7 hrs ago) - media archiving pipeline hitting rate limits and GVS PO token requirements, asking about alternative libraries.
7. Splunk AI Assistant 2.3.2 setup fails with Python errors (yesterday, Splunk Enterprise 10.2.7 on Windows) - "Failed during initial setup" during first-run config.
**Environment and stdlib basics**
8. os.path.isfile() does not work with a ~ prefix (2 days ago) - ~/Downloads/bla.txt isn't expanded, and realpath returns /home/user/~/Downloads/.... Marked duplicate; the answer is os.path.expanduser.
9. IPython runs an old version of my script (Sep 6, psychopy) - saved edits aren't picked up, likely stale module caching.
**Typing**
10. Implicit transformation into parent type when using a TypeVar (Sep 7) - a Generic[T] class with TypeVar("T", float, complex) and overloads, where float silently widens to complex.
```
https://stackoverflow.com/questions/80001980/many-to-many-relation-creates-new-items-after-migration
https://stackoverflow.com/questions/80002131/programatically-downloading-youtube-videos-at-scale-yt-dlp-rate-limits-gvs-po
https://stackoverflow.com/questions/80001863/splunk-ai-assistant-failed-during-initial-setup-due-to-python-errors
https://stackoverflow.com/questions/80001679/os-path-isfile-does-not-work-with-prefix
https://stackoverflow.com/questions/80001264/ipython-running-old-version-of-script
Type-hinting questions are the busiest theme right now, with the rest split between third-party API failures and beginner environment issues.
Normalized evidence
The redacted, numbered record a structured judge grades. Check rows above link to the IDs they cite.
Use the web_fetch tool to answer the prompt.
What are the 10 newest unanswered Python questions on https://stackoverflow.com/questions/tagged/python?tab=%5BREDACTED%5D as of now? Summarize each problem and group similar issues.
{"dispatch_id": "toolu_01KUi5uhKmEUpMVAPNiTB1xM", "handle": "", "panel_kind": "web_fetch", "parent_dispatch_id": "", "tool_input": {"brief": "Newest Python questions on Stack Overflow", "max_age_seconds": 600, "url": "https://stackoverflow.com/questions/tagged/python?tab=%5BREDACTED%5D"}, "tool_name": "web_fetch"}
{"dispatch_id": "toolu_01KUi5uhKmEUpMVAPNiTB1xM", "elapsed": null, "error": "", "fields": {"progress": {"message": "Newest Python questions on Stack Overflow", "metadata": {"browser_chain": false, "url": "https://stackoverflow.com/questions/tagged/python?tab=%5BREDACTED%5D"}}, "status": "running", "updatedAt": 1789168330030}, "result": null, "status": "running", "tool_name": "web_fetch"}
{"dispatch_id": "toolu_01KUi5uhKmEUpMVAPNiTB1xM", "elapsed": 11.140211156, "error": "", "result": {"content": "1. 1. Home\n 2. Questions\n 3. [AI Assist](https://stackoverflow.com/ai-assist)\n 4. Tags\n 5. \n 6. [Stack Overflow for Agents](http://agents.stackoverflow.com)\n 7. \n 8. Challenges\n 9. [Chat](https://chat.stackoverflow.com/?tab=%5BREDACTED%5D)\n 10. [Articles](https://stackoverflow.blog/contributed?utm_medium=%5BREDACTED%5D&utm_source=%5BREDACTED%5D&utm_campaign=%5BREDACTED%5D&utm_content=%5BREDACTED%5D)\n 11. Users\n 12. \n 13. [Companies](https://stackoverflow.com/jobs/companies?so_medium=%5BREDACTED%5D&so_source=%5BREDACTED%5D)\n 14. [Developer Story](https://stackoverflow.com/users/story/join)\n 15. Collectives\n 16. Communities for your favorite technologies. Explore all Collectives\n2. Stack Internal\n \n Stack Overflow for Teams is now called **Stack Internal** . Bring the best of human thought and AI automation together at your work.\n \n [Try for free](https://stackoverflowteams.com/teams/create/free/?utm_medium=%5BREDACTED%5D&utm_source=%5BREDACTED%5D&utm_campaign=%5BREDACTED%5D&utm_content=%5BREDACTED%5D) [Learn more](https://stackoverflow.co/internal/?utm_medium=%5BREDACTED%5D&utm_source=%5BREDACTED%5D&utm_campaign=%5BREDACTED%5D&utm_content=%5BREDACTED%5D)\n3. Stack Internal\n4. Bring the best of human thought and AI automation together at your work. [Learn more](https://stackoverflow.co/internal/?utm_medium=%5BREDACTED%5D&utm_source=%5BREDACTED%5D&utm_campaign=%5BREDACTED%5D&utm_content=%5BREDACTED%5D)\n\n##### Collectives™ on Stack Overflow\n\nFind centralized, trusted content and collaborate around the technologies you use most.\n\nLearn more about Collectives\n\n**Stack Internal**\n\nKnowledge at work\n\nBring the best of human thought and AI automation together at your work.\n\n[Explore Stack Internal](https://stackoverflow.co/internal/?utm_medium=%5BREDACTED%5D&utm_source=%5BREDACTED%5D&utm_campaign=%5BREDACTED%5D&utm_content=%5BREDACTED%5D)\n\n2,204,662 questions\n\n* [Bountied 0](https://stackoverflow.com/questions/tagged/python?tab=%5BREDACTED%5D)\n* [Unanswered](https://stackoverflow.com/questions/tagged/python?tab=%5BREDACTED%5D)\n* [Frequent](https://stackoverflow.com/questions/tagged/python?tab=%5BREDACTED%5D)\n* [Score](https://stackoverflow.com/questions/tagged/python?tab=%5BREDACTED%5D)\n* [Trending](https://stackoverflow.com/questions/tagged/python?tab=%5BREDACTED%5D)\n* [Week](https://stackoverflow.com/questions/tagged/python?tab=%5BREDACTED%5D)\n* [Month](https://stackoverflow.com/questions/tagged/python?tab=%5BREDACTED%5D)\n* \n* Unanswered (my tags)\n\n## Question list filters\n\nFilter by\n\nNo answers\n\nNo upvoted or accepted answers\n\nNo Staging Ground\n\nHas bounty\n\nDays old\n\nSorted by\n\nNewest\n\nRecent activity\n\nHighest score\n\nMost frequent\n\nBounty ending soon\n\nTrending\n\nMost activity\n\nTagged with\n\nMy watched tags\n\nThe following tags:\n\nApply filter\n\nCancel\n\nScore of 0 0 votes\n\n0 answers 0 answers\n\n7 views 7 views\n\n### Power BI Python Visualization erroring out when it shouldn't\n\nI am attempting to build a visualization testing some of Python's predictive analysis libraries and I am running into 2 issues. First, the dataset is larger than the apparent 150k row limit, so I was ...\n\n* python\n* pandas\n* database\n* dataframe\n* powerbi\n\nAdalast's user avatar\n\nAdalast\n\n* 161 reputation score 161\n\nasked 11 mins ago\n\nScore of -4 \\-4 votes\n\n0 answers 0 answers\n\n56 views 56 views\n\n### Should I use DiskCache or JWT for FastAPI password reset tokens?\n\nI'm implementing a forgot-password feature in FastAPI. I'm currently using DiskCache\nCurrently, my approach is generating a reset link containing the token, and when the token is successfully verified,...\n\n* best-practices\n* python\n* jwt\n* fastapi\n\nenrii fernando's user avatar\n\nenrii fernando\n\n* 1 reputation score 1\n\nasked 1 hour ago\n\nScore of -3 \\-3 votes\n\n1 answer 1 answer\n\n121 views 121 views\n\n### [Finding digits in a string containing distinct digits [closed]](/questions/80002181/finding-digits-in-a-string-containing-distinct-digits)\n\nI'm finding out how to check for digits in a string; this is the code that I wrote:\nimport math\nimport cmath\na=set([1,2,3,4,5,6,7,8,9,0])\nUNO=[]\nfor x in a:\nfor m in range(1,10\\*\\*10):\nfor n ...\n\n* python\n\nSam Sianati's user avatar\n\nSam Sianati\n\n* 1 reputation score 1\n\nasked 3 hours ago\n\nScore of 0 0 votes\n\n0 answers 0 answers\n\n33 views 33 views\n\n### IBKR ib\\_insync problem with placing stop limit orders in pre/post markets\n\nOn IBKR, and using ib\\_insync, I am having problems placing stop limit orders in pre/post markets. The first limit order order goes through smoothly, but the stop limit does not appear. On IBKR, the ...\n\n* python\n* ib-insync\n\nSuperLeo's user avatar\n\nSuperLeo\n\n* 135 reputation score 135\n\nasked 3 hours ago\n\nScore of -8 \\-8 votes\n\n0 answers 0 answers\n\n98 views 98 views\n\n### [Programatically downloading YouTube videos at scale: yt-dlp rate limits, GVS PO tokens, and alternative libraries in Python [closed]](/questions/80002131/programatically-downloading-youtube-videos-at-scale-yt-dlp-rate-limits-gvs-po)\n\nI am developing a Python-based media archiving pipeline that downloads authorized YouTube video ad creatives for digital media audits.\nThe current implementation uses yt-dlp:\nimport yt\\_dlp\ndef ...\n\n* advice\n* python\n* youtube\n\nDeepshika Tiwari's user avatar\n\nDeepshika Tiwari\n\n* 1 reputation score 1\n\nasked 7 hours ago\n\nScore of 1 1 vote\n\n1 answer 1 answer\n\n87 views 87 views\n\n### PyCharm type-hint warning: Member 'None' of 'Any | None' does not have attribute '\\_\\_getitem\\_\\_'\n\nI have found a type-hint warning which I can't solve:\nimport shelve\nwith shelve.open(\"file.db\") as f:\nsess\\_data = f.get(\"xxx\")\nif sess\\_data:\nusername = sess\\_data[0]...\n\n* python\n* pycharm\n* python-typing\n\nNickC's user avatar\n\nNickC\n\n* 1,471 reputation score 1471\n\nasked 20 hours ago\n\nScore of -3 \\-3 votes\n\n1 answer 1 answer\n\n133 views 133 views\n\n### [Empty datetime() and type-hint errors [closed]](/questions/80001989/empty-datetime-and-type-hint-errors)\n\nAny suggestions how to deal with these type-hint errors in PyCharm related to a datetime variable which initially starts off as None but then gets set at a later time. As far as I can tell datetime ...\n\n* python\n* datetime\n* python-typing\n\nNickC's user avatar\n\nNickC\n\n* 1,471 reputation score 1471\n\nasked 21 hours ago\n\nScore of -3 \\-3 votes\n\n0 answers 0 answers\n\n128 views 128 views\n\n### [Many-to-many relation creates new items after migration [closed]](/questions/80001980/many-to-many-relation-creates-new-items-after-migration)\n\nI've migrated db from SQLite to PostgreSQL as the book Django 5 by Example told, but I have a simple bug. In the Post module, I have this relation declared:\nclass Post(models.Model):\n...\ntags =...\n\n* python\n* django\n\nObalouch's user avatar\n\nObalouch\n\n* 1 reputation score 1\n\nasked 23 hours ago\n\nScore of 1 1 vote\n\n1 answer 1 answer\n\n146 views 146 views\n\n### [Write sequence of null chars to file [duplicate]](/questions/80001870/write-sequence-of-null-chars-to-file)\n\nI want to write a long list of ASCII-value-is-0 chars to a brand new file for testing purposes.\nSpecifically, I'm seeing how Notepad renders nulls and how it counts the number of characters present ...\n\n* python\n* utf-8\n* null\n* character-encoding\n* file-writing\n\nStev's user avatar\n\nStev\n\n* 233 reputation score 233\n\nasked yesterday\n\nScore of -3 \\-3 votes\n\n0 answers 0 answers\n\n102 views 102 views\n\n### [Splunk AI Assistant failed during initial setup due to Python errors [closed]](/questions/80001863/splunk-ai-assistant-failed-during-initial-setup-due-to-python-errors)\n\nI was installing Splunk AI Assistant 2.3.2 on Splunk Enterprise 10.2.7 (Windows). The app failed during the initial setup with:\nFailed during initial setup. Please contact Splunk Support.\nThe Splunk ...\n\n* best-practices\n* python\n* splunk\n\nBaharvand's user avatar\n\nBaharvand\n\n* 11 reputation score 11\n\nasked yesterday\n\nScore of 2 2 votes\n\n0 answers 0 answers\n\n47 views 47 views\n\n### Using df.styler with df.to\\_latex() and longtable\n\nI'm trying to convert a table to LaTeX using df.to\\_latex(). I've become aware of styler, but I am not super expert in LaTeX itself and write largely in Markdown and convert to Pandoc with an engine.\nI ...\n\n* python\n* pandas\n* latex\n* pandoc\n* font-style\n\ngjmb's user avatar\n\ngjmb\n\n* 21 reputation score 21\n\nasked yesterday\n\nScore of 0 0 votes\n\n1 answer 1 answer\n\n110 views 110 views\n\n### Why doesn't setting \"justMyCode\": false allow my breakpoint to work?\n\nI was debugging some code with an async socket server and found that some breakpoints in the message handler (handle\\_client) were being ignored. After far too much head scratching I came to realize it ...\n\n* python\n* vs-code\n* vscode-debugger\n* debugpy\n\niamthebull's user avatar\n\niamthebull\n\n* 511 reputation score 511\n\nasked yesterday\n\nScore of -3 \\-3 votes\n\n1 answer 1 answer\n\n149 views 149 views\n\n### Why is Python able to perform a bitwise and on LSB of 16 bit value instead of the 8MSBs?\n\nI made this script:\nval = 0xF81F\nmask = 0xFF\nfinal = val & mask\nprint(f\"Original: {val:}\")\nprint(f\"MASK: {mask:}\")\nprint(f\"FINAL: {final:}\")\nand I got:\n...\n\n* python\n* bitwise-operators\n\nDimitrios Desyllas's user avatar\n\nDimitrios Desyllas\n\n* 10\\.7k reputation score 10688\n\nasked yesterday\n\nScore of -4 \\-4 votes\n\n0 answers 0 answers\n\n58 views 58 views\n\n### [os.path.isfile() does not work with ~ prefix [duplicate]](/questions/80001679/os-path-isfile-does-not-work-with-prefix)\n\nTrue:\nos.path.isfile('/home/user/Downloads/bla.txt')\nnot working:\npython os.path.isfile('~/Downloads/bla.txt')\nAnd:\nos.path.realpath('~/Downloads/bla.txt')\nreturns:\n/home/user/~/Downloads/bla.txt\n...\n\n* python\n\nrundekugel's user avatar\n\nrundekugel\n\n* 1,533 reputation score 1533\n\nasked 2 days ago\n\nScore of -5 \\-5 votes\n\n1 answer 1 answer\n\n219 views 219 views\n\n### World generation visual glitch\n\nMy goal is to create a 2d survival open world experience. The problem I am facing is that my world loads and unloads and loads creating a visual glitch and unnecessary FPS loss. I am not receiving any ...\n\n* python\n* pygame\n\nstreamz gamer's user avatar\n\nstreamz gamer\n\n* 1 reputation score 1\n\nasked 2 days ago\n\nScore of 4 4 votes\n\n1 answer 1 answer\n\n141 views 141 views\n\n### Documentation of pandas DataFrame.replace with series as input\n\nI am fairly new to using Pandas and I am trying to understand the functionality of the DataFrame.replace method when the input is a series. The documentation mentions that it accepts it as input but I ...\n\n* python\n* pandas\n* dataframe\n\nuser33098110's user avatar\n\nuser33098110\n\n* 43 reputation score 43\n\nasked 2 days ago\n\nScore of 6 6 votes\n\n2 answers 2 answers\n\n295 views 295 views\n\n### Type hint a default return type used unless more specific overload exists\n\nLet's say I have the function\nimport numpy as np\ndef foo(a: float | np.ndarray, b: float | np.ndarray,\nc: float | np.ndarray, d: float | np.ndarray) -> float | np.ndarray:\nreturn a \\* b ...\n\n* python\n* python-typing\n\nschtandard's user avatar\n\nschtandard\n\n* 715 reputation score 715\n\nasked Sep 7 at 14:58\n\nScore of 2 2 votes\n\n2 answers 2 answers\n\n157 views 157 views\n\n### Is there a way to make scipy.optimize.minimize(method='trust-constr') accurate?\n\nIf I understand correctly, method=\"trust-constr\" is considered to be the most modern,\nhighest-quality, and currently-best-supported of the strategies available for scipy.optimize.minimize() ...\n\n* python\n* scipy\n* scipy-optimize\n* scipy-optimize-minimize\n\nDon Hatch's user avatar\n\nDon Hatch\n\n* 5,880 reputation score 5880\n\nasked Sep 7 at 13:42\n\nScore of 2 2 votes\n\n0 answers 0 answers\n\n154 views 154 views\n\n### How to deal with implicit transformation into parent type when using a TypeVar?\n\nConsider the following code:\nfrom \\_\\_future\\_\\_ import annotations\nfrom typing import Generic, Self, TypeVar, overload\nT = TypeVar(\"T\", float, complex)\nclass Dummy(Generic[T]):\ndef ...\n\n* python\n* python-typing\n\nTristan Nemoz's user avatar\n\nTristan Nemoz\n\n* 2,108 reputation score 2108\n\nasked Sep 7 at 11:12\n\nScore of -1 \\-1 votes\n\n1 answer 1 answer\n\n83 views 83 views\n\n### [pwntool process is none [Starting remote process None: Process creation failed]](/questions/80001289/pwntool-process-is-none-starting-remote-process-none-process-creation-failed)\n\nI am trying solve ctf problem (Spoiler for pwnable.kr passcode challenge). I can connect and execute command but can't create process. Please don't write the flag. I just need to know how to create ...\n\n* python\n* ctf\n* pwntools\n\nGEO's user avatar\n\nGEO\n\n* 69 reputation score 69\n\nasked Sep 7 at 2:22\n\nScore of -4 \\-4 votes\n\n0 answers 0 answers\n\n100 views 100 views\n\n### [iPython Running Old Version of Script [closed]](/questions/80001264/ipython-running-old-version-of-script)\n\nI am trying to run a script in my psychoPy environment with IPython, and it keeps running an old version of my script even though I have saved this new one multiple times and even copy and pasted the ...\n\n* python\n* ipython\n* psychopy\n\nLili Hauser's user avatar\n\nLili Hauser\n\n* 25 reputation score 25\n\nasked Sep 6 at 22:32\n\nScore of -4 \\-4 votes\n\n0 answers 0 answers\n\n128 views 128 views\n\n### Problems with getting variables via lifespan context manager in Fastapi\n\nI wanna get variables created previously via lifespan for getting it in other part of my fastapi app.\nEach variable is sqlalchemy session maker binded with sqlalchemy engine. So I`m using sub context ...\n\n* python\n* sqlalchemy\n* fastapi\n\nLiomtr's user avatar\n\nLiomtr\n\n* 27 reputation score 27\n\nasked Sep 6 at 18:36\n\nScore of -4 \\-4 votes\n\n0 answers 0 answers\n\n38 views 38 views\n\n### [why can i not install pygame on the Visual StudiI developer powershell [duplicate]](/questions/80001204/why-can-i-not-install-pygame-on-the-visual-studii-developer-powershell)\n\nThe install keeps getting stuck on getting requirements to build wheel\ni have tried the command py -m pip install --upgrade pip setuptools wheel and it ran the install but it didn't work the next ...\n\n* python\n* pip\n* pygame\n\nCleanReptile228's user avatar\n\nCleanReptile228\n\n* 1 reputation score 1\n\nasked Sep 6 at 17:14\n\nScore of -4 \\-4 votes\n\n0 answers 0 answers\n\n104 views 104 views\n\n### [Gemini 3.5 flash preview voice lagging sometimes it response fast but it takes minutes which is not bearable in real call [closed]](/questions/80001192/gemini-3-5-flash-preview-voice-lagging-sometimes-it-response-fast-but-it-takes-m)\n\nI built voice agent for doctor appointment booking where user tell the department or its problem audio directly send to Gemini 3.5 flash live preview, sometimes it response instantly but sometimes it ...\n\n* python\n* google-gemini\n\nHasnain Ali's user avatar\n\nHasnain Ali\n\n* 1 reputation score 1\n\nasked Sep 6 at 16:09\n\nScore of -5 \\-5 votes\n\n0 answers 0 answers\n\n85 views 85 views\n\n### [Pygbag: NotImplementedError: set\\_timer is not implemented on WASM yet [closed]](/questions/80001158/pygbag-notimplementederror-set-timer-is-not-implemented-on-wasm-yet)\n\npygame-ce 2.5.7 (SDL 2.28.4, Python 3.12.12)\n\\\\>>> Task exception was never retrieved\nfuture: <Task finished name='main' coro=<main() done, defined at <console>:3> exception=...\n\n* python\n* python-3.x\n* pygame\n* webassembly\n* pygbag\n\nRubinosław's user avatar\n\nRubinosław\n\n* 1 reputation score 1\n\nasked Sep 6 at 11:11\n\nScore of -8 \\-8 votes\n\n2 answers 2 answers\n\n239 views 239 views\n\n### [Python discount function returns negative value and passes all linters, mypy, bandit and unit tests [closed]](/questions/80001048/python-discount-function-returns-negative-value-and-passes-all-linters-mypy-ba)\n\nI have this pricing function in a Python e-commerce application:\ndef apply\\_discount(price, discount):\nreturn price \\* (1 - discount) It works correctly for normal inputs:\napply\\_discount(100, 0....\n\n* python\n* testing\n* pytest\n* static-analysis\n\nk-L-a's user avatar\n\nk-L-a\n\n* 5 reputation score 5\n\nasked Sep 5 at 20:20\n\nScore of -2 \\-2 votes\n\n1 answer 1 answer\n\n106 views 106 views\n\n### When installing requests with UV, VS code cannot find requests module, but the script runs successfully from the command line\n\nWhen installing requests with UV, VS code cannot find requests module, but the script runs from the command line.\nuv python list\ncpython-3.12.3-linux-x86\\_64-gnu /usr/bin/python3.12\n...\n\n* python\n* pip\n* python-requests\n* uv\n\nLance M's user avatar\n\nLance M\n\n* 63 reputation score 63\n\nasked Sep 5 at 15:26\n\nScore of -2 \\-2 votes\n\n1 answer 1 answer\n\n146 views 146 views\n\n### [Send an email from Outlook account using Python [closed]](/questions/80000948/send-an-email-from-outlook-account-using-python)\n\nI'm trying to send an email from my Outlook account to Gmail using Python's smtplib. I set up SMTP with Office 365 (smtp.office365.com:587) and credentials but get a \"550 5.7.1 Client does not ...\n\n* python\n* email\n* outlook\n\nLakshit Sharma's user avatar\n\nLakshit Sharma\n\n* 1 reputation score 1\n\nasked Sep 5 at 8:05\n\nScore of 1 1 vote\n\n0 answers 0 answers\n\n127 views 127 views\n\n### How to run a process that survives after parent process dies? subprocess.CREATE\\_NEW\\_PROCESS\\_GROUP is not working\n\nI use VScode on Windows 10.\nI run a subprocess using the subprocess module. but it closes if I kill the parent process, whether I kill it with VScode or with os.kill(os.getpid()).\nI tried many things ...\n\n* python\n* subprocess\n* popen\n\nPower of Wilson's user avatar\n\nPower of Wilson\n\n* 9 reputation score 9\n\nasked Sep 4 at 20:44\n\nScore of 1 1 vote\n\n1 answer 1 answer\n\n153 views 153 views\n\n### Why isn't my type checker (Pyright) complaining about a clear type violation?\n\nWhy isn't Pyright complaining about this? msg: Any is not a Message. (Pylance 2026.3.1)\nimport asyncio\nfrom dataclasses import dataclass\nimport json\n@dataclass(frozen=True, slots=True)\nclass Message:\n...\n\n* python\n* python-typing\n* pyright\n\niamthebull's user avatar\n\niamthebull\n\n* 511 reputation score 511\n\nasked Sep 4 at 17:40\n\nScore of 0 0 votes\n\n1 answer 1 answer\n\n163 views 163 views\n\n### Best practice for (simple) searching item in a list\n\nTypically, I would obtain/return an item from a list of items like so:\ndef search\\_in\\_list(search\\_id):\nfor item in my\\_list:\nif item['id'] == search\\_id:\nreturn item\nreturn ...\n\n* best-practices\n* python\n* list\n\nMax Z.'s user avatar\n\nMax Z.\n\n* 819 reputation score 819\n\nasked Sep 4 at 15:35\n\nScore of 4 4 votes\n\n2 answers 2 answers\n\n222 views 222 views\n\n### How to type-hint a function that returns as many values as in its input?\n\nI have a function that takes one or more arguments and returns the same number of values. For a single input value, it returns just one value, not a size one tuple, for multiple values it returns a ...\n\n* python\n* python-typing\n* variadic-functions\n\nschtandard's user avatar\n\nschtandard\n\n* 715 reputation score 715\n\nasked Sep 4 at 12:38\n\nScore of 0 0 votes\n\n0 answers 0 answers\n\n80 views 80 views\n\n### PySide6 Custom widget with Enum property\n\nIn PySide6, I'm trying to create a custom widget and register it as a plugin in Qt Designer. My widget has one attribute that is an enum.\nIt displays correctly in Qt Designer, I can change the value ...\n\n* python\n* qt-designer\n* pyside6\n\ngee3107's user avatar\n\ngee3107\n\n* 427 reputation score 427\n\nasked Sep 4 at 1:27\n\nScore of 6 6 votes\n\n1 answer 1 answer\n\n184 views 184 views\n\n### Why can moving an await change whether a Python object remains reachable, even when the object has no explicit strong reference?\n\nI am trying to understand a surprising difference in object lifetime in Python asyncio.\nConsider this simplified example:\nimport asyncio\nimport gc\nimport weakref\nclass Resource:\ndef \\_\\_init\\_\\_(self, ...\n\n* python\n* garbage-collection\n* python-asyncio\n* weak-references\n\nYKT's user avatar\n\nYKT\n\n* 1 reputation score 1\n\nasked Sep 3 at 21:14\n\nScore of -3 \\-3 votes\n\n1 answer 1 answer\n\n133 views 133 views\n\n### [Python Library/Module Won't Import While Others Do [closed]](/questions/80000620/python-library-module-wont-import-while-others-do)\n\nMac os Sequoia 15.6\nI installed the exifread library using pip as well as conda. In Anaconda Navigator it shows as installed. Using a terminal window I type in:\npip3 show exifread\nand it returns\n/opt/...\n\n* python\n* macos\n\nJoe Borgione's user avatar\n\nJoe Borgione\n\n* 11 reputation score 11\n\nasked Sep 3 at 19:37\n\nScore of 2 2 votes\n\n1 answer 1 answer\n\n143 views 143 views\n\n### How can I make numpy arrays the same shape before doing conditional computations?\n\nLet's say I have a conditional calculation like this\nimport numpy as np\ndef foo(a, b, c):\nif a <= 0 or c == 0:\nreturn foo\\_special(a, b, c)\nreturn foo\\_normal(a, b, c)\ndef ...\n\n* python\n* numpy\n* array-broadcasting\n* numpy-ufunc\n\nschtandard's user avatar\n\nschtandard\n\n* 715 reputation score 715\n\nasked Sep 3 at 9:01\n\nScore of -8 \\-8 votes\n\n1 answer 1 answer\n\n147 views 147 views\n\n### How can I test Stack Overflow API write operations?\n\nI am testing an application that uses the Stack Exchange API to perform write operations on Stack Overflow.\nI have successfully tested several read operations, including retrieving questions, answers, ...\n\n* advice\n* python\n\nAmSurya's user avatar\n\nAmSurya\n\n* 1 reputation score 1\n\nasked Sep 3 at 8:10\n\nScore of 0 0 votes\n\n2 answers 2 answers\n\n126 views 126 views\n\n### How to call a Python script from Octave using system()\n\nI am trying to run a python script using Octave's system() function.\nWhen I call the python script from terminal\nsource tabpfn\\_env/bin/activate\ncd ~/tabpfn\\_env\npython3 tabpfn\\_for\\_regression.py\nthe ...\n\n* python\n* octave\n\nbabelproofreader's user avatar\n\nbabelproofreader\n\n* 560 reputation score 560\n\nasked Sep 2 at 23:06\n\nScore of 0 0 votes\n\n1 answer 1 answer\n\n129 views 129 views\n\n### In the Python Socket Module, I am trying to send HTTP status codes to my client socket, but none work properly\n\nIn an assignment for my Computer Networks class, I am tasked with using sockets to receive HTTP packets. This is my current code:\nimport socket\nfrom socket import \\*\nimport sys # In order to terminate ...\n\n* python\n* sockets\n\nJoshua White's user avatar\n\nJoshua White\n\n* 14 reputation score 14\n\nasked Sep 2 at 22:46\n\nScore of -1 \\-1 votes\n\n0 answers 0 answers\n\n80 views 80 views\n\n### [Python asyncio raw TCP server on Fly.io drops external client connections while internal health checks pass [closed]](/questions/80000328/python-asyncio-raw-tcp-server-on-fly-io-drops-external-client-connections-while)\n\nI am trying to establish a stable, raw TCP connection between a local Python-based coordinator and a Python receiver application hosted on Fly.io (App name: receiver-sin, region sin) listening on port ...\n\n* python\n* network-programming\n* tcp\n* python-asyncio\n\nCARTOON WORLD's user avatar\n\nCARTOON WORLD\n\n* 1 reputation score 1\n\nasked Sep 2 at 21:33\n\nScore of -9 \\-9 votes\n\n0 answers 0 answers\n\n143 views 143 views\n\n### [Pygames and coins [closed]](/questions/80000310/pygames-and-coins)\n\nIm making a flappy bird style game with pygames and I was wondering how do I code the coins mechanic?\nI want to make it so there's a trajectory of coins for the user to collect. I imagine I need a ...\n\n* python\n* pygame\n* game-development\n* pygame-surface\n* flappy-bird-clone\n\nHannia's user avatar\n\nHannia\n\n* 1 reputation score 1\n\nasked Sep 2 at 19:46\n\nScore of 3 3 votes\n\n0 answers 0 answers\n\n166 views 166 views\n\n### How do I design a multi-purpose event handler without making it generic?\n\nI am trying to design an event handler that can be used by different classes to manage events specific to that class. The event handler doesn't really need to know what type the events are as long as ...\n\n* python\n* python-typing\n* pyright\n\niamthebull's user avatar\n\niamthebull\n\n* 511 reputation score 511\n\nasked Sep 2 at 18:44\n\nScore of 1 1 vote\n\n1 answer 1 answer\n\n106 views 106 views\n\n### How to get unix-specific python modules working easily on Windows?\n\nI'm currently trying to get https://github.com/cs01/pyxterm.js\nworking on Windows, I got it working on Linux but whenever I try Windows, I run into the issue that the `termios` module is not found. It ...\n\n* python\n* windows\n* pty\n* termios\n\nJaecadeJnight's user avatar\n\nJaecadeJnight\n\n* 159 reputation score 159\n\nasked Sep 2 at 17:17\n\nScore of 3 3 votes\n\n3 answers 3 answers\n\n190 views 190 views\n\n### Canonical way to select data in SQLAlchemy\n\nIt appears there are several different ways to select data with the SQLAlchemy ORM:\nUsing session.query.filter():\nrows = session.query(MyTable).filter(\nMyTable.column1 == value1,\nMyTable....\n\n* best-practices\n* python\n* sqlalchemy\n\nJohn Gordon's user avatar\n\nJohn Gordon\n\n* 33\\.9k reputation score 33887\n\nasked Sep 2 at 15:49\n\nScore of 1 1 vote\n\n2 answers 2 answers\n\n103 views 103 views\n\n### How to make a Toplevel window over a Tk window in Python Tkinter?\n\nfrom tkinter import Tk, Toplevel, Button, Label\nmaster = Tk()\ndef new\\_window():\nwindow = Toplevel(master) #And now you can't use the master window until this window is closed\nLabel(window, ...\n\n* python\n* tkinter\n* toplevel\n\nZeubollisk Wu's user avatar\n\nZeubollisk Wu\n\n* 17 reputation score 17\n\nasked Sep 2 at 15:35\n\nScore of -2 \\-2 votes\n\n1 answer 1 answer\n\n53 views 53 views\n\n### Loading lugh/ClinicalT5-base\n\nI load my model the following way:\nfrom transformers import AutoTokenizer, AutoModelForSeq2SeqLM\nmodel\\_id = \"luqh/ClinicalT5-base\"\ntokenizer = AutoTokenizer.from\\_pretrained(model\\_id)\nmodel = ...\n\n* python\n* huggingface-transformers\n\nace-of-spades's user avatar\n\nace-of-spades\n\n* 9 reputation score 9\n\nasked Sep 2 at 15:16\n\nScore of -3 \\-3 votes\n\n1 answer 1 answer\n\n91 views 91 views\n\n### How to maintain session and authenticate for university portal API with Python requests?\n\nI'm trying to scrape data from my university's portal \"بهستان\" (Behestan) using Python's requests library. The portal uses SSO authentication via sso.kntu.ac.ir (Keycloak/OpenID Connect).\n...\n\n* python\n* authentication\n* web-scraping\n* cookies\n* python-requests\n\nArshia Shariati's user avatar\n\nArshia Shariati\n\n* 1 reputation score 1\n\nasked Sep 2 at 14:28\n\nScore of 4 4 votes\n\n0 answers 0 answers\n\n109 views 109 views\n\n### Mapping np array to Fortran array in gdb using Python API\n\nI want to map a Fortran array to a NumPy array on a tensor using the GDB Python API.\nLet's take the following program\nprogram array\nimplicit none integer, allocatable :: a(:,:,:), flat(:)\n...\n\n* python\n* fortran\n* gdb\n\naitzkora's user avatar\n\naitzkora\n\n* 383 reputation score 383\n\nasked Sep 2 at 11:17\n\nScore of 1 1 vote\n\n0 answers 0 answers\n\n67 views 67 views\n\n### CBC solver reports \"optimal\" solution but pyomo model variables are `None` valued\n\nI came across this problem while using the oemof.solph Python package but I think the root cause is in Pyomo. The problem is a simple energy system model with storage which seeks an optimal supply-...\n\n* python\n* linear-programming\n* pyomo\n* coin-or-cbc\n\nBill's user avatar\n\nBill\n\n* 11\\.9k reputation score 11903\n\nasked Sep 2 at 8:00\n\nScore of -3 \\-3 votes\n\n1 answer 1 answer\n\n117 views 117 views\n\n### 2 line procedural testframe appears, but the class iframe does not\n\nfrom tkinter import \\*\nroot = Tk()\nroot.geometry(\"600x300+80+80\")\nroot.configure(bg='')\nclass iframe(Frame):\ndef \\_\\_init\\_\\_(self, root, bg, width, height, relief):\nsuper(...\n\n* python\n* oop\n* tkinter\n\ndlemper's user avatar\n\ndlemper\n\n* 213 reputation score 213\n\nasked Sep 1 at 19:15\n\n \n1\n\n[2](https://stackoverflow.com/questions/tagged/python?tab=%5BREDACTED%5D&page=%5BREDACTED%5D \"Go to page 2\") [3](https://stackoverflow.com/questions/tagged/python?tab=%5BREDACTED%5D&page=%5BREDACTED%5D \"Go to page 3\") [4](https://stackoverflow.com/questions/tagged/python?tab=%5BREDACTED%5D&page=%5BREDACTED%5D \"Go to page 4\") [5](https://stackoverflow.com/questions/tagged/python?tab=%5BREDACTED%5D&page=%5BREDACTED%5D \"Go to page 5\")\n\n…\n\n[44094](https://stackoverflow.com/questions/tagged/python?tab=%5BREDACTED%5D&page=%5BREDACTED%5D \"Go to page 44094\") [Next](https://stackoverflow.com/questions/tagged/python?tab=%5BREDACTED%5D&page=%5BREDACTED%5D \"Go to next page\")\n\n## Try Stack Overflow for Agents\n\nVerified knowledge for the agentic era\n\nPaste this into your AI coding assistant:\n\nHelp me join Stack Overflow for Agents here. Read https://agents.stackoverflow.com/skill.md, then start onboarding.\n\nSupports Claude Code, Cursor, Codex, Windsurf and more.\n\n[Explore Stack Overflow for Agents](https://agents.stackoverflow.com)\n\n* The Overflow Blog\n* [Scaling your money safely with AI](https://stackoverflow.blog/2026/09/08/scaling-your-money-safely-with-ai/)\n* [Java’s age is its AI superpower](https://stackoverflow.blog/2026/09/09/java-s-age-is-its-ai-superpower/)\n* Featured on Meta\n* [How we talk about ourselves (and to you)](https://meta.stackexchange.com/questions/419259/how-we-talk-about-ourselves-and-to-you)\n* [Policy: Generative AI (e.g., ChatGPT) is banned](https://meta.stackoverflow.com/questions/421831/policy-generative-ai-e-g-chatgpt-is-banned)\n* [Opinion-based content migration is completed](https://meta.stackoverflow.com/questions/440336/opinion-based-content-migration-is-completed)\n* [Help us beta test the new Developer Story](https://meta.stackoverflow.com/questions/440345/help-us-beta-test-the-new-developer-story)\n* [Should we burninate the [tooling] tag?](https://meta.stackoverflow.com/questions/440150/should-we-burninate-the-tooling-tag)\n\n[Newest python questions feed](https://stackoverflow.com/feeds/tag?tagnames=%5BREDACTED%5D&sort=%5BREDACTED%5D \"The 30 newest python questions\")\n\n# Subscribe to RSS\n\nNewest python questions feed\n\nTo subscribe to this RSS feed, copy and paste this URL into your RSS reader.", "content_length": 29292, "fetched_via": "parallel", "success": true, "title": "Newest 'python' Questions - Stack Overflow", "url": "https://stackoverflow.com/questions/tagged/python"}, "status": "completed", "tool_name": "web_fetch"}
{"dispatch_id": "toolu_015WfDKo4tSc7fhmEssDRUDQ", "handle": "", "panel_kind": "web_fetch", "parent_dispatch_id": "", "tool_input": {"brief": "Newest unanswered Python questions", "max_age_seconds": 600, "url": "https://stackoverflow.com/questions/tagged/python?tab=%5BREDACTED%5D&sort=%5BREDACTED%5D"}, "tool_name": "web_fetch"}
{"dispatch_id": "toolu_015WfDKo4tSc7fhmEssDRUDQ", "elapsed": null, "error": "", "fields": {"progress": {"message": "Newest unanswered Python questions", "metadata": {"browser_chain": false, "url": "https://stackoverflow.com/questions/tagged/python?tab=%5BREDACTED%5D&sort=%5BREDACTED%5D"}}, "status": "running", "updatedAt": 1789168330030}, "result": null, "status": "running", "tool_name": "web_fetch"}
{"dispatch_id": "toolu_015WfDKo4tSc7fhmEssDRUDQ", "elapsed": 14.487596282, "error": "", "result": {"error": "Parallel Extract: page extraction failed (HTTP 403)", "error_code": "FALLBACK_ERROR", "success": false}, "status": "failed", "tool_name": "web_fetch"}
{"dispatch_id": "toolu_014yCTexhXkkdcqGUWhhn3cD", "handle": "", "panel_kind": "", "parent_dispatch_id": "", "tool_input": {"final": true, "in_response_to": "5bc8cee4", "message": "The 10 newest Python questions with zero answers on the [Newest python feed](https://stackoverflow.com/questions/tagged/python?tab=%5BREDACTED%5D), as of Fri 4:15pm PT:\n\n**Data / reporting pipelines**\n1. **Power BI Python visual erroring out** (11 min ago, pandas/powerbi) - dataset exceeds Power BI's ~150k row limit for Python visuals, and the script fails even though the author thinks it should run.\n2. **Using df.styler with df.to_latex() and longtable** (yesterday, pandas/latex) - wants styled pandas output in LaTeX longtable form, writes mostly Markdown and converts via Pandoc, unsure how styler interacts with to_latex.\n\n**Web backends**\n3. **DiskCache or JWT for FastAPI password reset tokens?** (1 hr ago) - forgot-password flow currently stores reset tokens in DiskCache, asking which approach is right (-4 votes, reads as opinion-based).\n4. **Django many-to-many relation creates new items after migration** (23 hrs ago) - after moving from SQLite to PostgreSQL following \"Django 5 by Example\", the Post.tags relation duplicates tag items. [link](https://stackoverflow.com/questions/80001980/many-to-many-relation-creates-new-items-after-migration)\n\n**Third-party APIs and tooling**\n5. **IBKR ib_insync stop limit orders in pre/post market** (3 hrs ago) - the first limit order places fine, but the stop limit never appears outside regular hours.\n6. **Downloading YouTube videos at scale with yt-dlp** (7 hrs ago) - media archiving pipeline hitting rate limits and GVS PO token requirements, asking about alternative libraries. [link](https://stackoverflow.com/questions/80002131/programatically-downloading-youtube-videos-at-scale-yt-dlp-rate-limits-gvs-po)\n7. **Splunk AI Assistant 2.3.2 setup fails with Python errors** (yesterday, Splunk Enterprise 10.2.7 on Windows) - \"Failed during initial setup\" during first-run config. [link](https://stackoverflow.com/questions/80001863/splunk-ai-assistant-failed-during-initial-setup-due-to-python-errors)\n\n**Environment and stdlib basics**\n8. **os.path.isfile() does not work with a ~ prefix** (2 days ago) - `~/Downloads/bla.txt` isn't expanded, and realpath returns `/home/user/~/Downloads/...`. Marked duplicate; the answer is os.path.expanduser. [link](https://stackoverflow.com/questions/80001679/os-path-isfile-does-not-work-with-prefix)\n9. **IPython runs an old version of my script** (Sep 6, psychopy) - saved edits aren't picked up, likely stale module caching. [link](https://stackoverflow.com/questions/80001264/ipython-running-old-version-of-script)\n\n**Typing**\n10. **Implicit transformation into parent type when using a TypeVar** (Sep 7) - a `Generic[T]` class with `TypeVar(\"T\", float, complex)` and overloads, where float silently widens to complex.\n\nTwo clear clusters: type-hinting questions are the single busiest theme in the tag right now (this one plus several answered ones), and the rest split between third-party API integration failures and beginner environment problems."}, "tool_name": "send_message"}
{"dispatch_id": "toolu_014yCTexhXkkdcqGUWhhn3cD", "elapsed": 24.385575401, "error": "", "result": "Delivered (confirmed) as 4 messages. Your draft was polished into texting register, so the wording differs from what you wrote; this is exactly what the user sees:\n1) 10 newest unanswered Python questions on Stack Overflow, grouped by theme.\n2) ```document title=\"10 newest unanswered Python questions\" subtitle=\"Stack Overflow\"\n**Data / reporting pipelines**\n1. Power BI Python visual erroring out (11 min ago, pandas/powerbi) - dataset exceeds Power BI's ~150k row limit for Python visuals, and the script fails even though the author thinks it should run.\n2. Using df.styler with df.to_latex() and longtable (yesterday, pandas/latex) - wants styled pandas output in LaTeX longtable form, writes mostly Markdown and converts via Pandoc, unsure how styler interacts with to_latex.\n\n**Web backends**\n3. DiskCache or JWT for FastAPI password reset tokens? (1 hr ago) - forgot-password flow currently stores reset tokens in DiskCache, asking which approach is right (-4 votes, reads as opinion-based).\n4. Django many-to-many relation creates new items after migration (23 hrs ago) - after moving from SQLite to PostgreSQL following \"Django 5 by Example\", the Post.tags relation duplicates tag items.\n\n**Third-party APIs and tooling**\n5. IBKR ib_insync stop limit orders in pre/post market (3 hrs ago) - the first limit order places fine, but the stop limit never appears outside regular hours.\n6. Downloading YouTube videos at scale with yt-dlp (7 hrs ago) - media archiving pipeline hitting rate limits and GVS PO token requirements, asking about alternative libraries.\n7. Splunk AI Assistant 2.3.2 setup fails with Python errors (yesterday, Splunk Enterprise 10.2.7 on Windows) - \"Failed during initial setup\" during first-run config.\n\n**Environment and stdlib basics**\n8. os.path.isfile() does not work with a ~ prefix (2 days ago) - ~/Downloads/bla.txt isn't expanded, and realpath returns /home/user/~/Downloads/.... Marked duplicate; the answer is os.path.expanduser.\n9. IPython runs an old version of my script (Sep 6, psychopy) - saved edits aren't picked up, likely stale module caching.\n\n**Typing**\n10. Implicit transformation into parent type when using a TypeVar (Sep 7) - a Generic[T] class with TypeVar(\"T\", float, complex) and overloads, where float silently widens to complex.\n```\n3) https://stackoverflow.com/questions/80001980/many-to-many-relation-creates-new-items-after-migration\nhttps://stackoverflow.com/questions/80002131/programatically-downloading-youtube-videos-at-scale-yt-dlp-rate-limits-gvs-po\nhttps://stackoverflow.com/questions/80001863/splunk-ai-assistant-failed-during-initial-setup-due-to-python-errors\nhttps://stackoverflow.com/questions/80001679/os-path-isfile-does-not-work-with-prefix\nhttps://stackoverflow.com/questions/80001264/ipython-running-old-version-of-script\n4) Type-hinting questions are the busiest theme right now, with the rest split between third-party API failures and beginner environment issues.\nThese are your words now, and this is the whole reply: the delivery layer chose its density and shape by design. Never dispute, re-explain, or apologize for the phrasing, and never send a supplement to restore detail it left out. Only a final send settles its request. Never chase wording with another send. If a fact in it is wrong and would change what the user does, correct it when their next message arrives.\n\nNothing else is open: no request awaits a reply and no work is running. A response with no tool call ends the run.\nanswers: 5bc8cee4-29d7-4b00-a2bd-46c87c042c23", "status": "completed", "tool_name": "send_message"}
10 newest unanswered Python questions on Stack Overflow, grouped by theme.
```document title="10 newest unanswered Python questions" subtitle="Stack Overflow"
**Data / reporting pipelines**
1. Power BI Python visual erroring out (11 min ago, pandas/powerbi) - dataset exceeds Power BI's ~150k row limit for Python visuals, and the script fails even though the author thinks it should run.
2. Using df.styler with df.to_latex() and longtable (yesterday, pandas/latex) - wants styled pandas output in LaTeX longtable form, writes mostly Markdown and converts via Pandoc, unsure how styler interacts with to_latex.
**Web backends**
3. DiskCache or JWT for FastAPI password reset tokens? (1 hr ago) - forgot-password flow currently stores reset tokens in DiskCache, asking which approach is right (-4 votes, reads as opinion-based).
4. Django many-to-many relation creates new items after migration (23 hrs ago) - after moving from SQLite to PostgreSQL following "Django 5 by Example", the Post.tags relation duplicates tag items.
**Third-party APIs and tooling**
5. IBKR ib_insync stop limit orders in pre/post market (3 hrs ago) - the first limit order places fine, but the stop limit never appears outside regular hours.
6. Downloading YouTube videos at scale with yt-dlp (7 hrs ago) - media archiving pipeline hitting rate limits and GVS PO token requirements, asking about alternative libraries.
7. Splunk AI Assistant 2.3.2 setup fails with Python errors (yesterday, Splunk Enterprise 10.2.7 on Windows) - "Failed during initial setup" during first-run config.
**Environment and stdlib basics**
8. os.path.isfile() does not work with a ~ prefix (2 days ago) - ~/Downloads/bla.txt isn't expanded, and realpath returns /home/user/~/Downloads/.... Marked duplicate; the answer is os.path.expanduser.
9. IPython runs an old version of my script (Sep 6, psychopy) - saved edits aren't picked up, likely stale module caching.
**Typing**
10. Implicit transformation into parent type when using a TypeVar (Sep 7) - a Generic[T] class with TypeVar("T", float, complex) and overloads, where float silently widens to complex.
```
https://stackoverflow.com/questions/80001980/many-to-many-relation-creates-new-items-after-migration
https://stackoverflow.com/questions/80002131/programatically-downloading-youtube-videos-at-scale-yt-dlp-rate-limits-gvs-po
https://stackoverflow.com/questions/80001863/splunk-ai-assistant-failed-during-initial-setup-due-to-python-errors
https://stackoverflow.com/questions/80001679/os-path-isfile-does-not-work-with-prefix
https://stackoverflow.com/questions/80001264/ipython-running-old-version-of-script
Type-hinting questions are the busiest theme right now, with the rest split between third-party API failures and beginner environment issues.