从 Django Forms 源代码中理解 `_html_output()`

Understand `_html_output()` from Django Forms Source Code

以下源码来自django/forms/forms.py

class BaseForm(RenderableFormMixin):
    def _html_output(self, normal_row, error_row, row_ender, help_text_html, errors_on_separate_row):
    "Output HTML. Used by as_table(), as_ul(), as_p()."

请问 as_table(), as_ul(), as_p() 如何使用/调用这个私有方法 _html_output()?我没有从源码中查到

该方法不再使用

https://docs.djangoproject.com/en/4.0/releases/4.0/#id2

Since form rendering now uses the template engine, the undocumented BaseForm._html_output() helper method is deprecated