[issue2749] Raise a DeprecationWarning for warnings.showwarning(.., line)

2008-05-05 Thread Brett Cannon
Brett Cannon <[EMAIL PROTECTED]> added the comment: r62720 and r62722 have the fix (and a fix for the fix). In the Python code I check for an argument named 'line' and in the C code I make sure there are at least two default arguments. Both assume a Python implementation for showwarning(), whi

[issue2749] Raise a DeprecationWarning for warnings.showwarning(.., line)

2008-05-03 Thread Brett Cannon
Brett Cannon <[EMAIL PROTECTED]> added the comment: On Sat, May 3, 2008 at 2:11 PM, Benjamin Peterson <[EMAIL PROTECTED]> wrote: > > Benjamin Peterson <[EMAIL PROTECTED]> added the comment: > > Brett, can you list the places showwarning is used? > Lib/warnings.py and Python/_warnings.c. In bot

[issue2749] Raise a DeprecationWarning for warnings.showwarning(.., line)

2008-05-03 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: Brett, can you list the places showwarning is used? -- nosy: +benjamin.peterson __ Tracker <[EMAIL PROTECTED]> __ _

[issue2749] Raise a DeprecationWarning for warnings.showwarning(.., line)

2008-05-03 Thread Brett Cannon
New submission from Brett Cannon <[EMAIL PROTECTED]>: In order to move the warnings.showwarning() API forward to support the new 'line' argument, a DeprecationWarning is needed for implementations that lack support for it. >From the Python side a simple check for the 'line' argument using 'in