pydoc > problem_report

📋 NAME

problem_report - Store, load, and handle problem reports.

🚀 Quick Reference

Use CaseCommandDescription
📄 Create crash reportreport = ProblemReport(type='Crash')Initialize a fresh crash report with current time
📂 Load report from filereport.load(open('file.crash', 'rb'))Read binary RFC822 report
💾 Write report to filereport.write(open('file.crash', 'wb'))Write report preserving binary data
📎 Attach binary filereport['Key'] = ('file.bin', True, limit)Attach and gzip-compress a file
📧 Write MIME reportreport.write_mime(open('out.mime', 'wb'))Output multipart MIME with attachments
🕒 Get timestampreport.get_timestamp()Unix timestamp from Date field

📦 CLASSES

🗜️ CompressedValue

class CompressedValue(builtins.object)

Represent a ProblemReport value which is gzip compressed.

Methods defined here: Data descriptors defined here:

📝 ProblemReport

class ProblemReport(collections.UserDict)

Method resolution order:
  1. ProblemReport
  2. collections.UserDict
  3. collections.abc.MutableMapping
  4. collections.abc.Mapping
  5. collections.abc.Collection
  6. collections.abc.Sized
  7. collections.abc.Iterable
  8. collections.abc.Container
  9. builtins.object
Methods defined here: Data and other attributes defined here: Methods inherited from collections.UserDict: Class methods inherited from collections.UserDict: Data descriptors inherited from collections.UserDict: Methods inherited from collections.abc.MutableMapping: Methods inherited from collections.abc.Mapping: Data and other attributes inherited from collections.abc.Mapping: Class methods inherited from collections.abc.Collection: Class methods inherited from collections.abc.Iterable:

📁 FILE

/usr/lib/python3/dist-packages/problem_report.py

problem_report
📋 NAME 🚀 Quick Reference 📦 CLASSES 📁 FILE

Generated by phpman v4.9.27 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-07-18 16:12 @216.73.216.114
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!
Enhanced by LLM: deepseek-v4-flash / taotoken.net / www.chedong.com - original format

^_top_^