python314
7 traces
- Python 3.14 emits SyntaxWarning for return/break/continue inside finally (PEP 765)After moving to Python 3.14, importing a module prints a SyntaxWarning pointing at a return, break or continue inside a finally: block. Fix: If the swallowing is intentional, make it explicit with except BaseException:…
- RuntimeError: There is no current event loop in thread 'MainThread' — get_event_loop() changed in Python 3.14Code that worked on 3.12/3.13 (with only a DeprecationWarning) now crashes on Python 3.14: Typical triggers: asyncio.geteventloop().rununtilcomplete(...) at a sync entry point, geteventloop() in a default argument or…
- Python 3.14 defers annotation evaluation (PEP 649/749): don't read cls.__dict__['__annotations__'], use annotationlibOn Python 3.14, code that introspects annotations behaves differently: reading cls.dict['annotations'] (the class namespace) no longer finds them, reading annotations via an instance of an annotated class stops…
- Pydantic V1 (and pydantic.v1) on Python 3.14: silently broken until v1.10.26 / pydantic 2.13 — migrate to V2A codebase still on Pydantic V1 (or using the pydantic.v1 compat namespace from a pydantic 2.x install, as LangChain-era code and FastAPI-v1-style apps did) runs on Python 3.14 with only a UserWarning, but…
- AttributeError: module 'ast' has no attribute 'Num' — ast.Num/Str/Bytes/NameConstant/Ellipsis removed in 3.14On Python 3.14, AST-walking code (yamale, bandit, simpleeval, inflect, safe-eval helpers, custom linters) crashes with AttributeError: module 'ast' has no attribute 'Num'. Fix: If the error is inside a dependency,…
- Python 3.14 stdlib removals: pkgutil.find_loader, sqlite3.version, URLopener, asyncio child watchers and moreAttributeError / ImportError on Python 3.14 for long-deprecated APIs an older model will still suggest.
- Python 3.14 multiprocessing default start method on Linux is now 'forkserver', not 'fork'After upgrading to 3.14 on Linux, multiprocessing / ProcessPoolExecutor code that relied on fork semantics breaks: worker functions defined in main without an if name == "main": guard re-run module code,…