with __ (e.g., __init__) • Dunder → Double Underscore • Allow us to customize classes in a more Pythonic way • Implicitly called by Python • Officially named as special methods
it? https://github.com/apache/airflow/blob/35087d7d10714130cc3e9e9730e34b07fc56938d/ airflow/models/xcom_arg.py#L99-L102 XComArg should no longer be used. PlainXComArg should be used instead. But we want to keep XComArg backward compatibility.
__next__() which returns successive items * Raise a StopIteration exception when there's no more data * Required __iter__() that returns the iterator object itself