pydoc > _warnings

📛 NAME

_warnings

🚀 Quick Reference

Use CaseCommandDescription
Issue a warning (default category)warn("message")Issues a warning with default category and stacklevel
Issue a warning with specific categorywarn("message", DeprecationWarning)Issues a warning of a specific category
Issue a warning with increased stack levelwarn("message", stacklevel=2)Issues a warning with increased stack level
Low-level warning interfacewarn_explicit(...)Low-level interface to warnings functionality

📖 DESCRIPTION

_warnings provides basic warning filtering support. It is a helper module to speed up interpreter start-up.

🔧 FUNCTIONS

🔧 warn(message, category=None, stacklevel=1, source=None)

Issue a warning, or maybe ignore it or raise an exception.

🔧 warn_explicit(...)

Low-level interface to warnings functionality.

📊 DATA

filters = [('default', None, <class 'DeprecationWarning'>, '__main__',...

📁 FILE

(built-in)

_warnings
📛 NAME 🚀 Quick Reference 📖 DESCRIPTION 🔧 FUNCTIONS
🔧 warn(message, category=None, stacklevel=1, source=None) 🔧 warn_explicit(...)
📊 DATA 📁 FILE

Generated by phpman v4.10.0-7-g98e9fd5 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-09-02 19:12 @216.73.216.239
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!