# PEP 722/723 decision

**URL:** <https://discuss.python.org/t/pep-722-723-decision/36763>\
**Category:** Standards\
**Tags:** pep\
**Created:** [October 21, 2023, 12:23am UTC](https://discuss.python.org/t/pep-722-723-decision/36763 "2023-10-21T00:23:20Z")\
**Posts on this page:** 1\
**Showing post:** 24

<div class="post-metadata">

**Author:** ![h-vetinari](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/h-vetinari/32/1220_2.png) [@h-vetinari](https://discuss.python.org/u/h-vetinari)\
**Post date:** [October 22, 2023, 11:14pm UTC](https://discuss.python.org/t/pep-722-723-decision/36763/24 "2023-10-22T23:14:02Z")

</div>

I’m glad how the decision process turned out (and not just the result!).

W.r.t. the parsing complexity, I think it would be good to keep it as simple as possible. So before we climb down the rabbit hole of fixing all possible corner-cases with `///`, I just wanted to [recall](https://discuss.python.org/t/pep-722-dependency-specification-for-single-file-scripts/29905/173) that there’s some prior art by rust (also mentioned in the PEP) which uses a special comment (`//!` rather than the normal `//`).

Translating that to Python and keeping everything else from PEP 723, we’d have:

```auto
#! /// pyproject
#! [run]
#! requires-python = ">=3.11"
#! dependencies = [
#! "requests<3",
#! "rich",
#! ]
#! ///

```

That would make it unambiguous\[1\] as well as dead-simple\[2\]. It’d also be trivial to adapt the reference regex.

* * *

1. take only (consecutive) lines starting with `#!` and then strip off the first and last line with `///` 

2. e.g. the occurrence of other `# ///` lines in the same comment would be sidestepped completely

---

_[View the full topic](https://discuss.python.org/t/pep-722-723-decision/36763)._
