[Python-Dev] [Python-3000] Reminder: last alphas next Wednesday 07-May-2008 (original) (raw)
Benjamin Peterson musiccomposition at gmail.com
Fri May 2 04:35:12 CEST 2008
- Previous message: [Python-Dev] [Python-3000] Reminder: last alphas next Wednesday 07-May-2008
- Next message: [Python-Dev] warnings.showwarning (was Re: [Python-3000] Reminder: last alphas next Wednesday 07-May-2008)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Thu, May 1, 2008 at 9:31 PM, Brett Cannon <brett at python.org> wrote:
I just closed the release blocker I created (the backwards-compatibility issue with warnings.showwarning() ). I would like to add a PendingDeprecationWarning (or stronger) to 2.6 for showwarning() implementations that don't support the optional 'line' argument. I guess the best way to do it in C code would be to see if PyFunctionGetDefaults() returns a tuple of length two (since showwarning() already has a single optional argument as it is). Anyone have an issue with me doing this? Is PendingDeprecationWarning safe enough for 2.6? Or should this be a 3.0-only thing with a DeprecationWarning?
I vote for a full DeprecationWarning.
-Brett
-- Cheers, Benjamin Peterson
- Previous message: [Python-Dev] [Python-3000] Reminder: last alphas next Wednesday 07-May-2008
- Next message: [Python-Dev] warnings.showwarning (was Re: [Python-3000] Reminder: last alphas next Wednesday 07-May-2008)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]