8 Apr
2022
8 Apr
'22
9:26 a.m.
On Fri, 8 Apr 2022 at 08:51, Paul Moore <p.f.moore@gmail.com> wrote:
Are you exaggerating for effect here or would this *actually* just expand to
from datetime import datetime default_args = { "start_date": datetime(...) }
Yes – and of course that is just a snippet, an actual complete script will have lots of such imports. The point is that in a scripting situation (especially one in which you have many small scripts) the top-level import requirement for simple imports like `datetime` becomes rather verbose. Thanks