# PEP 712: Adding a "converter" parameter to dataclasses.field

**URL:** <https://discuss.python.org/t/pep-712-adding-a-converter-parameter-to-dataclasses-field/26126>\
**Category:** PEPs\
**Created:** [April 23, 2023, 8:04pm UTC](https://discuss.python.org/t/pep-712-adding-a-converter-parameter-to-dataclasses-field/26126 "2023-04-23T20:04:55Z")\
**Posts on this page:** 1\
**Showing post:** 57

<div class="post-metadata">

**Author:** ![gpshead](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/gpshead/32/54_2.png) [@gpshead](https://discuss.python.org/u/gpshead)\
**Post date:** [November 14, 2023, 2:38am UTC](https://discuss.python.org/t/pep-712-adding-a-converter-parameter-to-dataclasses-field/26126/57 "2023-11-14T02:38:48Z")

</div>

Python Steering Council hat: Thanks for the well written PEP and thorough discussion here. We have reviewed and discussed this PEP and we are unfortunately _not_ finding ourselves leaning towards accepting it today. (The question the SC would like to see answered to change our future selves mind is at the end)

Reasoning:

- A `dataclasses.field` converter adds complexity (additional spooky action at a distance and a concept going further than a “just a struct” mental model).
- There are already multiple ways to do this even if they involve more lines (` __init__ `, alternate constructors, etc).
- For users who really want converters rather than the additional lines of code: They can already use third party dataclass-like libraries (presumably [`attrs`](https://pypi.org/project/attrs/)) providing the feature today instead of waiting for CPython 3.13+.

One of our guiding general themes is that there is less reason for every feature to be done in the standard library now than in years past. Virtually all Python applications are built upon many third party packages from our ecosystem today.

**Q:** Is there a compelling reason for dataclass field converters to be _in the standard library_ that we’re just missing?

It is good to see people piping up on this thread who do want the feature. It would be interesting to know how important that is and if you already do, or why you don’t, use something like `attrs` today just to have it.

We’ll keep [the steering-council pep-712 issue](https://github.com/python/steering-council/issues/206) open for a while as a reminder to observe any further discussion (and let the next elected SC make the final decision).

-gps for the 2023 Python Steering Council

---

_[View the full topic](https://discuss.python.org/t/pep-712-adding-a-converter-parameter-to-dataclasses-field/26126)._
