You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-10Lines changed: 6 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ This repository contains full implementations of the code examples described in
4
4
5
5
## Running This Code
6
6
7
-
This repo has a [devcontainer](https://containers.dev) definition that makes it easy to run the examples. The devcontainer includes a [fork of cpython 3.14](https://github.com/davepeck/tagstr-cpython/tree/dave/ts-iter-fix) that provides a prototype implementation of PEP 750.
7
+
This repo has a [devcontainer](https://containers.dev) definition that makes it easy to run the examples. The devcontainer includes a [fork of cpython 3.14a7+](https://github.com/lysnikolaou/cpython/tree/tstrings) that provides a prototype implementation of PEP 750.
8
8
9
9
It's easy to run this code yourself:
10
10
@@ -16,20 +16,16 @@ After the container is initialized, make sure that everything works by opening u
16
16
17
17
```
18
18
/workspaces/pep750-examples# python --version
19
-
Python 3.14.0a1
19
+
Python 3.14.0a7+
20
20
/workspaces/pep750-examples# pytest
21
21
... (hopefully, all tests pass!) ...
22
22
```
23
23
24
24
Congrats; you're good to go!
25
25
26
-
> **Quick Try**: Want to experiment with just the template string syntax? Try the [browser-based Python console](https://koxudaxi.github.io/pyodide/tstrings/console.html) (powered by [@koxudaxi's Pyodide with template strings support](https://github.com/koxudaxi/pyodide/tree/support-tstrings)).
27
-
28
26
## A Word About the Code
29
27
30
-
This repository builds on top of the @lysnikolaou's [cpython fork implementing t-strings](https://github.com/davepeck/tagstr-cpython/tree/dave/ts-iter-fix).
31
-
32
-
It uses @koxudaxi's [dockerfiles](https://github.com/pauleveritt/tagstr-site/actions/workflows/docker.yml) that package up that fork.
28
+
This repository builds on top of the @lysnikolaou's [cpython branch implementing t-strings](https://github.com/lysnikolaou/cpython/tree/tstrings).
This [example is described in detail](https://pep-previews--4062.org.readthedocs.build/pep-0750/#example-implementing-f-strings-with-t-strings) in PEP 750.
53
+
This [example is described in detail](https://peps.python.org/pep-0750/#example-implementing-f-strings-with-t-strings) in PEP 750.
See the tests in [`test_logging.py`](./pep/test_logging.py).
89
85
90
-
This [example is described in detail](https://pep-previews--4062.org.readthedocs.build/pep-0750/#example-structured-logging) in PEP 750.
86
+
This [example is described in detail](https://peps.python.org/pep-0750/#example-structured-logging) in PEP 750.
91
87
92
88
93
89
### Working with old-style format strings
@@ -108,7 +104,7 @@ The `from_format()` function supports essentially all the features of old-style
108
104
109
105
### HTML Templating
110
106
111
-
There are several short "HTML templating" examples in [PEP 750](https://pep-previews--4062.org.readthedocs.build/pep-0750/).
107
+
There are several short "HTML templating" examples in [PEP 750](https://peps.python.org/pep-0750/).
112
108
113
109
They all use a hypothetical `html()` function that parses template strings to an intermediate type, `Element`, and supports context-dependent processing of interpolations.
0 commit comments