13 questions
Advice
1
vote
3
replies
58
views
Can type bounds/constraints be stored in global variables and later used in generic function definitions with Python 3.14+?
With PEP 649 in Python 3.14+ annotations are lazily evaluated by default, and this led me to wonder if it's acceptable to store type bounds or constraints in a global variable at the module level and ...
1
vote
1
answer
324
views
How can I install Pygame on Python 3.14?
I am trying to install Pygame on Python 3.14, but pip install pygame is failing. I've tried restarting the computer, installing the latest version of pip, and uninstalling and reinstalling Python. ...
Advice
0
votes
2
replies
52
views
Edit list and Strikethrough text
So for this ChatBot I'm making to get more used to Python, here's what I wanna do. I want to make it so that for a To-Do list, once you print it out and the bot asks "Anything else you'd like me ...
2
votes
2
answers
126
views
Optimisation peptide molecule structure in RdKit environment
I have two molecules, a peptide (16 aa) and a drug, which I loaded in the rdkit-env from the sequence and SMILES as follows.
import os
from rdkit import Chem
from rdkit.Chem import AllChem
aa_seq = &...
1
vote
0
answers
57
views
"no module named PyQt6" from cmd line, but OK within Eclipse
Any suggestions on fixing or debugging this? Windows 11, Eclipse 2025-12, Python 3.14.2, PyQt6 installed via pip, no virtual env, and a simple PyQt6 app.
The import line in the app is:
from PyQt6....
3
votes
1
answer
145
views
Building Python Wheel without internet connection
I am trying to setup an air-gapped VM (Win10) to build python wheels.
It works for Python versions < 3.14.
With Python 3.14 I can only build the package when I have access to the internet.
Without ...
-1
votes
1
answer
484
views
Why can't I install Jupyter in a conda environment running Python 3.14? [closed]
I've installed miniconda, I've set-up an environment with Python 3.14.2, but I'm struggling to install Jupyter. Here's the code:
Could not solve for environment specs
The following packages are ...
3
votes
0
answers
146
views
PyCharm 2025.3.1 showing incorrect "ctypes.POINTER with string" deprecation in Python 3.14 for Structures
I am currently testing my Windows API wrappers against Python 3.14 using PyCharm 2025.3.1. I have encountered a persistent inspection warning in the IDE that seems to misidentify my ctypes usage as a ...
1
vote
1
answer
141
views
Alt, Shift and Control key bindings in Tkinter
I am struggling with some key bindings in Tkinter.
In my application, to avoid having to make each widget get the focus prior to having the opportunity of capturing KeyPress events, I decided to use ...
Advice
0
votes
3
replies
44
views
How can I split a Python template string into an array like Ruby's %W[...] operator does?
Basically I want to split the template string by literal whitespace (we don't have to worry about escape chars for these purposes) and produce an array of strings, where bracketed arguments with space ...
1
vote
3
answers
143
views
Force a widget to be a square
I am using Python 3.14 on Windows 11. I have 2 frames (left and right) inside a top frame and a bottom frame as status bar. I want the left frame to be a square, giving the rest of the horizontal ...
9
votes
2
answers
906
views
Why does multiprocess with "fork" fail under Python 3.14 but work in 3.13 (works only with "spawn" and "forkserver")?
The following code works fine on Python 3.13, but fails on Python 3.14 with a RuntimeError related to asyncio tasks.
If I switch the multiprocessing start method from "fork" to "spawn&...
16
votes
2
answers
4k
views
How are Python 3.14 t-strings different than f-strings
Python 3.14 is introducing template strings, so-called t-strings. Can someone explain how these differ from f-strings? What new problems are t-strings helping developers solve?