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

Pouria report at bugs.python.org
Sat Oct 12 01:06:50 EDT 2019


Pouria <Pouriaff7171 at gmail.com> 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 three time

در تاریخ شنبه ۱۲ اکتبر ۲۰۱۹،‏ ۸:۱۶ Terry J. Reedy <report at bugs.python.org>
نوشت:

>
> Terry J. Reedy <tjreedy at udel.edu> added the comment:
>
> Without more information, we cannot do anything with this.
>
> ----------
> nosy: +terry.reedy
> status: open -> pending
> versions:  -Python 2.7, Python 3.5, Python 3.6, Python 3.7, Python 3.8
>
> _______________________________________
> Python tracker <report at bugs.python.org>
> <https://bugs.python.org/issue38451>
> _______________________________________
>

----------
status: pending -> open

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue38451>
_______________________________________


More information about the Python-bugs-list mailing list