# Private, protected modifier and \_\_ notation

**URL:** <https://discuss.python.org/t/private-protected-modifier-and-notation/22356>\
**Category:** Ideas\
**Created:** [January 2, 2023, 1:36am UTC](https://discuss.python.org/t/private-protected-modifier-and-notation/22356 "2023-01-02T01:36:54Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![stoneleaf](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/stoneleaf/32/88_2.png) [@stoneleaf](https://discuss.python.org/u/stoneleaf)\
**Post date:** [January 2, 2023, 10:07pm UTC](https://discuss.python.org/t/private-protected-modifier-and-notation/22356/10 "2023-01-02T22:07:30Z")

</div>

> [@smer44](#):
>
> However you still can access to this variable via vars(test) and modify it, what should definitely not be allowed.

Python has a “consenting adults” policy – we use various idioms, such as leading underscores, to inform other programmers what methods, attributes, etc., shouldn’t be messed with, and then leave it up to them. If they do use or modify these private and/or internal objects, then any consequences of it not working correctly are their responsibility.

However, this also means that people can extend functionality, or more easily work around bugs, because they have access to those private/internal data and functions.

---

_[View the full topic](https://discuss.python.org/t/private-protected-modifier-and-notation/22356)._
