Steven D'Aprano <steve+pyt...@pearwood.info> added the comment:
This is for reporting bugs in the Python interpreter and standard library, not for asking for help with bugs in your own code. The code you show contains a syntax error (some of the indentation is wrong) and at least one undefined variable, "new". The traceback you got would have shown you that: py> data_date = new.date() # data_date is the date fetched from website Traceback (most recent call last): File "<stdin>", line 1, in <module> NameError: name 'new' is not defined You need to define "new" before you can use it. Since this is not a bug in Python, I'm closing this. If you disagree, please read this website: http://sscce.org/ copy and paste the full exception you get, and be prepared to explain why it is a bug in the interpreter rather than in your code. ---------- nosy: +steven.daprano resolution: -> not a bug stage: -> resolved status: open -> closed _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue35407> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com