Skip to content

Commit fe012b6

Browse files
pauleverittjimbakerlysnikolaoudavidfstrwarsaw
authored
Last two comments from Carol (#6)
* Include three comments from @Carreau (drop two bullets, *args in example, explain *args.) * Lambda-wrapped expressions use annotation scope * Clarify use of annotation scope * Mention what happens to named unicodes followed by text * Use DecodedConcrete in assertion * Rewrite why annotation scope is needed (#4) * Rewrite why annotation scope is needed * Minor copyediting * PEP 747: Fix rules related to UnionType (T1 | T2). Contrast TypeExpr with TypeAlias. Apply other feedback. (python#3856) * PEP 694: Fix typo (python#3859) * PEP 2026: Update following discussion (python#3860) Co-authored-by: Erlend E. Aasland <[email protected]> * PEP 101: Remove outdated info and add new info (python#3863) * PEP 101: Remove outdated info * PEP 101: Update make command for running tests * PEP 101: Replace '#python-dev and/or python-committers' with 'Discord and/or Discourse * PEP 101: Add Hugo as 3.14 RM * PEP 101: Add to PSRT * PEP 11: Add Russell as an iOS contact (python#3865) * Meta: Document the PEPs API (python#3864) Co-authored-by: Adam Turner <[email protected]> * PEP 719: Update for today's release of 3.13.0b4 (python#3868) * PEP 740: Mark as Provisional (python#3848) Signed-off-by: William Woodruff <[email protected]> * PEP 749: Add section on metaclasses (python#3847) Co-authored-by: Carl Meyer <[email protected]> * PEP 8: Update a Wikipedia link (python#3552) * PEP 635: Minor typo fix in code sample (python#3871) Looks like an unclosed f-string. * PEP 751: A file format to list Python dependencies for installation reproducibility (python#3870) Co-authored-by: Hugo van Kemenade <[email protected]> Co-authored-by: Adam Turner <[email protected]> Co-authored-by: Jelle Zijlstra <[email protected]> Co-authored-by: Carol Willing <[email protected]> * PEP 743: Rewrite to hide (soft-)deprecated API (pythonGH-3869) Co-authored-by: Victor Stinner <[email protected]> * PEP 751: Add Discussions-To and Post-History (python#3872) * PEP 639: Incorporate the latest discussion feedback (python#3866) * Remove the requirement of license-files defaults * Cover all rejected subkeysideas in one paragraph * Change the deprecation policy around classifiers * Flatten the value of the license-files key, only globs are specified * Update the Rejected ideas to match the current license-files proposal --------- Co-authored-by: Miro Hrončok <[email protected]> * PEP 715: clarify what `[package.tool]` is (python#3873) * PEP 665: Superseded-By: 751 (python#3875) * PEP 751: update based on feedback (python#3877) * PEP 751: update based on feedback * Fix a section underline * Include three comments from @Carreau (drop two bullets, *args in example, explain *args.) * From Carol, move the point about import to the following paragraph. * Per Carol: Remove paragraph about lifecycles as that is about *a* DSL, not DSLs in general. --------- Signed-off-by: William Woodruff <[email protected]> Co-authored-by: pauleveritt <[email protected]> Co-authored-by: Jim Baker <[email protected]> Co-authored-by: Lysandros Nikolaou <[email protected]> Co-authored-by: David Foster <[email protected]> Co-authored-by: Barry Warsaw <[email protected]> Co-authored-by: Hugo van Kemenade <[email protected]> Co-authored-by: Erlend E. Aasland <[email protected]> Co-authored-by: Adam Turner <[email protected]> Co-authored-by: T. Wouters <[email protected]> Co-authored-by: William Woodruff <[email protected]> Co-authored-by: Jelle Zijlstra <[email protected]> Co-authored-by: Carl Meyer <[email protected]> Co-authored-by: Lavrentiy Rubtsov <[email protected]> Co-authored-by: Mariatta <[email protected]> Co-authored-by: Brett Cannon <[email protected]> Co-authored-by: Carol Willing <[email protected]> Co-authored-by: Petr Viktorin <[email protected]> Co-authored-by: Victor Stinner <[email protected]> Co-authored-by: Karolina Surma <[email protected]> Co-authored-by: Miro Hrončok <[email protected]>
1 parent d42b8e4 commit fe012b6

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

peps/pep-0750.rst

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -736,12 +736,12 @@ Consumers can look at tag strings as starting from f-strings:
736736

737737
- They look familiar
738738
- Scoping and syntax rules are the same
739-
- You just need to import the tag function
740739

741740
They first thing they need to absorb: unlike f-strings, the string isn't
742741
immediately evaluated "in-place". Something else (the tag function) happens.
743742
That's the second thing to teach: the tag functions do something particular.
744-
Thus the concept of "domain specific languages" (DSLs).
743+
Thus the concept of "domain specific languages" (DSLs). What's extra to
744+
teach: you need to import the tag function before tagging a string.
745745

746746
Tag function authors think in terms of making a DSL. They have
747747
business policies they want to provide in a Python-familiar way. With tag
@@ -751,10 +751,6 @@ the bar for making a DSL.
751751
Tag authors can begin with simple use cases. After authors gain experience, tag strings can be used to add larger
752752
patterns: lazy evaluation, intermediate representations, registries, and more.
753753

754-
Finally, framework authors can provide contact points with their lifecycles.
755-
For example, decorators which tag function authors can use to memoize
756-
interpolations in the function args.
757-
758754
Each of these points also match the teaching of decorators. In that case,
759755
a learner consumes something which applies to the code just after it. They
760756
don't need to know too much about decorator theory to take advantage of the

0 commit comments

Comments
 (0)