Release Of Python 3.14 Programming Language

After a year of development, is published a major release of the programming language Python 3.14. The new branch will be supported for one and a half years, after which for another three and a half years, fixes will be generated for it to eliminate vulnerabilities.

Among the innovations added to Python 3.14 (1, 2, 3):

  • Implementedofficial support for building CPython without global interpreter locking (GIL, Global Interpreter Lock). Building without GIL allows to get rid of the problem with parallelizing operations on multi-core systems, caused by the fact that global locking does not allow parallel access to shared objects from different threads. Disabling the GIL introduces additional overhead caused by changes to the garbage collector, memory management system, and locking primitives. For example, due to the use of reference counting for thread isolation, single-threaded scripts experience a performance hit of approximately 10%. Moreover, such overhead costs can be compensated by parallelizing operations.
  • Added support for t-strings (literals with the ‘t’ prefix) allowing the use f-string-like syntax for creating custom pattern handlers in strings.
    Unlike f-strings, t-strings return an object that stores static string data and substituted values ​​separately. Separate storage allows you to bind your own handlers that affect only the substituted values. For example, you can connect a handler to convert the substituted value to upper case or to escape special characters when substituting into a string of external data. variety = ‘Stilton’ template = t’Try some {variety} cheese!’ print(list(template)) print(lower_upper(template)) [‘Try some ‘, Interpolation(‘Stilton’, ‘variety’, None, ”), ‘ cheese!’] Try some STILTON cheese! attributes = {‘src’: ‘limburger.jpg’, ‘alt’: ‘lovely cheese’} template = t’
    ‘ print (html(template))
    lovely cheese
  • To the standard library added
/Reports, release notes, official announcements.