# How to proceed with Python version-specific feature development

**URL:** <https://forum.djangoproject.com/t/how-to-proceed-with-python-version-specific-feature-development/41618>\
**Category:** Django Internals\
**Created:** [June 29, 2025, 5:18pm UTC](https://forum.djangoproject.com/t/how-to-proceed-with-python-version-specific-feature-development/41618 "2025-06-29T17:18:32Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![KentaroJay](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/kentarojay/32/29052_2.png) [@KentaroJay](https://forum.djangoproject.com/u/KentaroJay)\
**Post date:** [June 29, 2025, 5:18pm UTC](https://forum.djangoproject.com/t/how-to-proceed-with-python-version-specific-feature-development/41618/1 "2025-06-29T17:18:32Z")

</div>

Hello guys!

Since Python 3.14, it supports partial cookie. Therefore, I am doing this PR: [Fixed #34613 -- Added support for Partitioned cookies by KentaroJay · Pull Request #19603 · django/django · GitHub](https://github.com/django/django/pull/19603)

However I don’t know whether I should drop support for \<= 3.13, or support this new feature only for 3.14, while maintaining support for older versions.

I appreciate it if you could give me any advices! 🙏

---

<div class="post-metadata">

**Author:** ![Lily-Foote](https://avatars.discourse-cdn.com/v4/letter/l/c37758/32.png) [@Lily-Foote](https://forum.djangoproject.com/u/Lily-Foote)\
**Post date:** [June 29, 2025, 6:45pm UTC](https://forum.djangoproject.com/t/how-to-proceed-with-python-version-specific-feature-development/41618/2 "2025-06-29T18:45:22Z")

</div>

If this lands in Django 6.0, it needs to support Python 3.12: [Django 6.0 release notes - UNDER DEVELOPMENT | Django documentation | Django](https://docs.djangoproject.com/en/dev/releases/6.0/#python-compatibility)

---

<div class="post-metadata">

**Author:** ![adamchainz](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/adamchainz/32/26_2.png) [@adamchainz](https://forum.djangoproject.com/u/adamchainz)\
**Post date:** [June 30, 2025, 2:43pm UTC](https://forum.djangoproject.com/t/how-to-proceed-with-python-version-specific-feature-development/41618/3 "2025-06-30T14:43:54Z")

</div>

As it stands, the PR monkey-patches in support for “partitioned” to `SimpleCookie` on Python \<3.14. I don’t really feel great about Django monkey-patching the standard library, as it may affect other packages using `SimpleCookie`.

I would be fine with merging the feature to support Python 3.14+ only, though. We could add a system check that errors if the user enables any of the new settings on Python \<3.14.

---

<div class="post-metadata">

**Author:** ![KentaroJay](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/kentarojay/32/29052_2.png) [@KentaroJay](https://forum.djangoproject.com/u/KentaroJay)\
**Post date:** [June 30, 2025, 10:49pm UTC](https://forum.djangoproject.com/t/how-to-proceed-with-python-version-specific-feature-development/41618/4 "2025-06-30T22:49:22Z")

</div>

OK, I’ll make sure to keep support Python 3.12  
Thanks for the comment!

---

<div class="post-metadata">

**Author:** ![KentaroJay](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/kentarojay/32/29052_2.png) [@KentaroJay](https://forum.djangoproject.com/u/KentaroJay)\
**Post date:** [June 30, 2025, 10:52pm UTC](https://forum.djangoproject.com/t/how-to-proceed-with-python-version-specific-feature-development/41618/5 "2025-06-30T22:52:14Z")

</div>

I agree with you that monkey-patching the std lib is a great idea. However, as @timgraham told me [there was similar patch in the past](https://github.com/django/django/pull/19603#discussion_r2175530977), I don’t think it would be a blocker if I did it.

---

<div class="post-metadata">

**Author:** ![adamchainz](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/adamchainz/32/26_2.png) [@adamchainz](https://forum.djangoproject.com/u/adamchainz)\
**Post date:** [June 30, 2025, 10:58pm UTC](https://forum.djangoproject.com/t/how-to-proceed-with-python-version-specific-feature-development/41618/6 "2025-06-30T22:58:34Z")

</div>

I retract my comment about monkey patching, since Tim found precedence for another `SimpleCookie` attribute: [Fixed #34613 -- Added support for Partitioned cookies by KentaroJay · Pull Request #19603 · django/django · GitHub](https://github.com/django/django/pull/19603#discussion_r2175530977)
