Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork34k
Open
Description
This suggestion is pretty confusing, particularly if you don't understand thatdatetime.datetime is a thing.
>>>importdatetime>>>datetime.now()Traceback (mostrecentcalllast):File"<python-input-1>",line1,in<module>datetime.now()^^^^^^^^^^^^AttributeError:module'datetime'hasnoattribute'now'.Didyoumean:'datetime.now'?
When the suggestion finds a match like this, it should also check to make sure the module name and the suggestion don't clash. Perhaps it should also be able to suggestdatetime.datetime.now?