<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/only-python-breaking-a-four-year-hiatus-to-talk-about-the-export-keyword-peps-842-and-843--zvh7mwwtg" -->

---
title: Only Python: Breaking a four year hiatus to talk about...
description: A returning Python blogger discusses three related proposals aimed at solving the long-standing problem of distinguishing public from private names in Python...
canonical: https://daily.dev/posts/only-python-breaking-a-four-year-hiatus-to-talk-about-the-export-keyword-peps-842-and-843--zvh7mwwtg
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Only Python: Breaking a four year hiatus to talk about the export keyword (PEPs 842 and 843) | daily.dev
og:description: A returning Python blogger discusses three related proposals aimed at solving the long-standing problem of distinguishing public from private names in Python...
og:url: https://daily.dev/posts/only-python-breaking-a-four-year-hiatus-to-talk-about-the-export-keyword-peps-842-and-843--zvh7mwwtg
og:image: https://api.daily.dev/og/posts/ZVH7mWWTg.png
og:image:alt: Only Python: Breaking a four year hiatus to talk about the export keyword (PEPs 842 and 843)
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Only Python: Breaking a four year hiatus to talk about the export keyword (PEPs 842 and 843)

**[Planet Python](https://daily.dev/sources/planetpython)** · 5 min read · 0 upvotes · 0 comments

## Summary

A returning Python blogger discusses three related proposals aimed at solving the long-standing problem of distinguishing public from private names in Python modules: PEP 842 (withdrawn, proposed an __export__ list and an export soft keyword with several syntactic forms), PEP 843 (proposes export as a soft keyword focused on re-exports, automatically populating __all__), and PEP 844 (proposes adding @public/@private decorators from the atpublic library to builtins instead of a new keyword). The author built experimental import hooks in a side project to let people try the proposed export syntax today, noting that community discussion on these PEPs has quieted down.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://aroberge.blogspot.com/2026/09/breaking-four-year-hiatus-to-talk-about.html>

## Questions this post answers

### What is PEP 843's proposed export keyword for Python imports supposed to do?

PEP 843 proposes export as a soft keyword used with from-import statements, such as 'from module export A, B' or 'from module export *'. These behave like normal import statements except that every imported name is automatically added to __all__, keeping the public API list in sync without manual duplication and making public re-exports visible directly in the source code.

_Developers weighing upcoming Python packaging conventions can follow proposals like this one on daily.dev._

### How does PEP 844 propose marking Python names as public or private without a new keyword?

PEP 844 proposes adding two decorators, @public and @private, from the existing atpublic library into Python's builtins, rather than introducing a new keyword. Using @public on a function or class automatically adds its name to __all__, and a related function allows simple variable assignments to be marked public as well.

_Anyone deciding between competing API-visibility proposals can track PEP discussions like this via daily.dev._

### Why did PEP 842's original proposal for a Python export keyword get withdrawn?

PEP 842 was withdrawn after introducing a new __export__ list and an export soft keyword usable for declarations, assignments, function/class definitions, and re-exports, where importing a private variable would raise an ImportError. Extended community discussion, including threads about protecting the standard library, led to it being abandoned in favor of related proposals PEP 843 and PEP 844.

_Teams tracking Python's evolving API visibility rules can keep up with PEP outcomes through daily.dev._

## Similar posts on daily.dev

- [What’s up Python? \_\_json\_\_, \_\_export\_\_ and Astral stuff](https://daily.dev/posts/what-s-up-python-json-export-and-astral-stuff-icawfywdn) · Bite Code · 11 upvotes · 0 comments
- [Episode \#297: Improving Python Through PEPs and Protocols – The Real Python Podcast](https://daily.dev/posts/episode-297-improving-python-through-peps-and-protocols-the-real-python-podcast-0sltdeuxe) · Real Python · 0 upvotes · 0 comments
- [Explicit Lazy Imports Are Coming to Python 3.15](https://daily.dev/posts/explicit-lazy-imports-are-coming-to-python-3-15-e4cphmy32) · JetBrains · 0 upvotes · 0 comments
- [Exciting Python features are on the way](https://daily.dev/posts/exciting-python-features-are-on-the-way-u7lhkabec) · InfoWorld · 0 upvotes · 0 comments

---

Tags: [#python](https://daily.dev/tags/python), [#language-design](https://daily.dev/tags/language-design)

[View this post on daily.dev](https://daily.dev/posts/only-python-breaking-a-four-year-hiatus-to-talk-about-the-export-keyword-peps-842-and-843--zvh7mwwtg)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Only Python: Breaking a four year hiatus to talk about the export keyword (PEPs 842 and 843)","url":"https://daily.dev/posts/only-python-breaking-a-four-year-hiatus-to-talk-about-the-export-keyword-peps-842-and-843--zvh7mwwtg","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/only-python-breaking-a-four-year-hiatus-to-talk-about-the-export-keyword-peps-842-and-843--zvh7mwwtg"},"datePublished":"2026-09-21T21:52:15.623Z","dateModified":"2026-09-21T21:52:34.975Z","description":"A returning Python blogger discusses three related proposals aimed at solving the long-standing problem of distinguishing public from private names in Python...","image":"https://media.daily.dev/image/upload/s--foaA6JGU--/f_auto/v1722860399/public/Placeholder%2004","thumbnailUrl":"https://media.daily.dev/image/upload/s--foaA6JGU--/f_auto/v1722860399/public/Placeholder%2004","isAccessibleForFree":true,"articleSection":"Planet Python","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Planet Python","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/eac3cc584cb043b5a242d13752bd3d0c","url":"https://daily.dev/sources/planetpython"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/only-python-breaking-a-four-year-hiatus-to-talk-about-the-export-keyword-peps-842-and-843--zvh7mwwtg","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"python,language-design","timeRequired":"PT5M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Planet Python","item":"https://daily.dev/sources/planetpython"},{"@type":"ListItem","position":3,"name":"Only Python: Breaking a four year hiatus to talk about the export keyword (PEPs 842 and 843)"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/only-python-breaking-a-four-year-hiatus-to-talk-about-the-export-keyword-peps-842-and-843--zvh7mwwtg#faq","mainEntity":[{"@type":"Question","name":"What is PEP 843's proposed export keyword for Python imports supposed to do?","acceptedAnswer":{"@type":"Answer","text":"PEP 843 proposes export as a soft keyword used with from-import statements, such as 'from module export A, B' or 'from module export *'. These behave like normal import statements except that every imported name is automatically added to __all__, keeping the public API list in sync without manual duplication and making public re-exports visible directly in the source code. Developers weighing upcoming Python packaging conventions can follow proposals like this one on daily.dev."}},{"@type":"Question","name":"How does PEP 844 propose marking Python names as public or private without a new keyword?","acceptedAnswer":{"@type":"Answer","text":"PEP 844 proposes adding two decorators, @public and @private, from the existing atpublic library into Python's builtins, rather than introducing a new keyword. Using @public on a function or class automatically adds its name to __all__, and a related function allows simple variable assignments to be marked public as well. Anyone deciding between competing API-visibility proposals can track PEP discussions like this via daily.dev."}},{"@type":"Question","name":"Why did PEP 842's original proposal for a Python export keyword get withdrawn?","acceptedAnswer":{"@type":"Answer","text":"PEP 842 was withdrawn after introducing a new __export__ list and an export soft keyword usable for declarations, assignments, function/class definitions, and re-exports, where importing a private variable would raise an ImportError. Extended community discussion, including threads about protecting the standard library, led to it being abandoned in favor of related proposals PEP 843 and PEP 844. Teams tracking Python's evolving API visibility rules can keep up with PEP outcomes through daily.dev."}}]}
```

