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 brett.cannon
Recipients brett.cannon
Date 2008-05-03.20:45:54
SpamBayes Score 0.023826603
Marked as misclassified No
Message-id <1209847556.68.0.658997115031.issue2749@psf.upfronthosting.co.za>
In-reply-to
Content
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 
'inspect' will work. For the C side, a check that there is more than 1 
default argument should suffice, although a quick check of what other ways 
to introspect Python function objects from C code should be done first 
before settling on this solution.
History
Date User Action Args
2008-05-03 20:45:57brett.cannonsetspambayes_score: 0.0238266 -> 0.023826603
recipients: + brett.cannon
2008-05-03 20:45:56brett.cannonsetspambayes_score: 0.0238266 -> 0.0238266
messageid: <1209847556.68.0.658997115031.issue2749@psf.upfronthosting.co.za>
2008-05-03 20:45:55brett.cannonlinkissue2749 messages
2008-05-03 20:45:54brett.cannoncreate