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 ammar2
Recipients Oliver Etchebarne (drmad), ammar2
Date 2017-03-15.21:06:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1489611977.57.0.639697835706.issue29821@psf.upfronthosting.co.za>
In-reply-to
Content
As per discussion with haypo on irc, this is not a bug since essentially you've made a file which shadows the following stdlib module https://docs.python.org/3/library/copy.html

When shutil goes to import the copy module, your copy module is given higher priority in the import machinery which is why your code gets executed. You can read up more about this here: http://python-notes.curiousefficiency.org/en/latest/python_concepts/import_traps.html#the-name-shadowing-trap
History
Date User Action Args
2017-03-15 21:06:17ammar2setrecipients: + ammar2, Oliver Etchebarne (drmad)
2017-03-15 21:06:17ammar2setmessageid: <1489611977.57.0.639697835706.issue29821@psf.upfronthosting.co.za>
2017-03-15 21:06:17ammar2linkissue29821 messages
2017-03-15 21:06:17ammar2create