Similar to Decorator for attrs converter, please see this case: from attrs import define, field, Factory @define class MyClass: name = field(default = Factory(_name_factory, takes_self=True), init=False) @name.default # or @name.factory def _name_factory(): return "standard name" # this would be a much more complicated function of course ERROR: x.py - NameError: name '_name_factory' is not defined Is there a decorator that would let the name be visible? I am trying to understand the documentation, but I am having issues. Continue reading...