[issue38451] Datetime definition does not work in function definition as list definition

2019-10-11 Thread Pouria
Pouria added the comment: For example Def a(time=datetime.datetime.today()): Print(time) Output: The output of each run is equal to the first time output For exaple : If you run a() Sleep(10) a() Sleep(10) a() You see one output

[issue38451] Datetime definition does not work in function definition as list definition

2019-10-11 Thread Pouria
Change by Pouria : -- components: Library (Lib) nosy: Pouria_ff priority: normal severity: normal status: open title: Datetime definition does not work in function definition as list definition type: behavior versions: Python 2.7, Python 3.5, Python 3.6, Python 3.7, Python 3.8, Python