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 njs
Recipients ezio.melotti, martin.panter, ncoghlan, njs, serhiy.storchaka, takluyver
Date 2015-05-28.01:58:52
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1432778332.71.0.311955546386.issue24294@psf.upfronthosting.co.za>
In-reply-to
Content
*cough* You know, there's more to life than Python-X.Y.tar.gz :-). Not that I know how PendingDeprecationWarning is used in the wild. I've been thinking maybe we (numpy) should start using it for stuff that we want to discourage people from using (we know it was a bad idea or intrinsically broken or whatever), but don't yet have a full replacement to offer. It would help if there were some official guidance on what these things mean -- I can't find anything written down anywhere that even documents what you just said about how CPython proper uses them, so I imagine people have come up with all kinds of interpretations.

Anyway, my logic would be: when I am trying something out at the REPL, usually it is because I want to check how it works, to figure out what I should be doing in the real module code that I'm writing in the next window. When doing this, I definitely appreciate knowing that it will be removed and is being replaced -- it won't necessarily stop me from putting it into my code, but at least it's information that I can take into account.

I don't care a huge amount either way, though; if we decided to hide PendingDeprecationWarnings by default while showing DeprecationWarnings then numpy would just define a NumPyPendingDeprecationWarning subclass of DeprecationWarning and use that instead of PendingDeprecationWarning and all would work out fine :-).
History
Date User Action Args
2015-05-28 01:58:52njssetrecipients: + njs, ncoghlan, ezio.melotti, takluyver, martin.panter, serhiy.storchaka
2015-05-28 01:58:52njssetmessageid: <1432778332.71.0.311955546386.issue24294@psf.upfronthosting.co.za>
2015-05-28 01:58:52njslinkissue24294 messages
2015-05-28 01:58:52njscreate