This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author steven.daprano
Recipients jsameer23, steven.daprano
Date 2018-12-04.13:21:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1543929683.43.0.788709270274.issue35407@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2018-12-04 13:21:23steven.dapranosetrecipients: + steven.daprano, jsameer23
2018-12-04 13:21:23steven.dapranosetmessageid: <1543929683.43.0.788709270274.issue35407@psf.upfronthosting.co.za>
2018-12-04 13:21:23steven.dapranolinkissue35407 messages
2018-12-04 13:21:23steven.dapranocreate