# PEP 842: Module Exports

**URL:** <https://discuss.python.org/t/pep-842-module-exports/108353>\
**Category:** PEPs\
**Created:** [July 31, 2026, 3:02pm UTC](https://discuss.python.org/t/pep-842-module-exports/108353 "2026-07-31T15:02:05Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![mikeshardmind](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/mikeshardmind/32/14381_2.png) [@mikeshardmind](https://discuss.python.org/u/mikeshardmind)\
**Post date:** [July 31, 2026, 4:25pm UTC](https://discuss.python.org/t/pep-842-module-exports/108353/10 "2026-07-31T16:25:22Z")

</div>

> [@Module \_\_export\_\_ variables](https://discuss.python.org/t/module-export-variables/108266/14):
>
> I think it’s a losing battle to want to make it _harder_ for libraries to block internal access. The libraries need do that because it leads to support nightmares. See, for example, Jax’s
> 
> ```python
> jax_internal_only_do_not_use_switch_to_v2_export
> jax_internal_only_do_not_use_donotparallel
> 
> ```
> 
> Besides not exporting the symbols, they gave them ridiculous names as a warning to people who might want to access them.

quoted here for those who didnt read the prior thread: some libraries already protect their internals because it helps with managing supporting users. Is the above really a “zen state”, or something people do because of the absence of something better?

---

_[View the full topic](https://discuss.python.org/t/pep-842-module-exports/108353)._
