Skip to content

More informative error handling when encoding and decoding #62028

@ncoghlan

Description

@ncoghlan
BPO 17828
Nosy @malemburg, @warsaw, @ncoghlan, @vstinner, @tiran, @ezio-melotti, @florentx
Files
  • issue17828-1.diff
  • issue17828-2.diff: Proof of concept against default.
  • issue17828_improved_codec_errors.diff: More robust patch, but the exception wrapping is still problematic
  • issue17828_improved_codec_errors_v2.diff: Still needs tests, but I like this version
  • issue17828_improved_codec_errors_v3.diff: Cleaner and more comprehensive implementation
  • issue17828_improved_codec_errors_v4.diff: Now with tests and What's New updates
  • issue17828_improved_codec_errors_v5.diff: Replaced whitelist with BaseException compatibility checks
  • issue17828_improved_codec_errors_v6.diff: Added parentheses in messages, removed debugging printf calls.
  • issue17828_improved_codec_errors_v7.diff: Moved exception chaining inside the codec machinery
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = 'https://github.com/ncoghlan'
    closed_at = <Date 2013-11-13.13:51:51.486>
    created_at = <Date 2013-04-24.14:09:58.905>
    labels = ['type-feature', 'library']
    title = 'More informative error handling when encoding and decoding'
    updated_at = <Date 2013-11-14.00:49:38.159>
    user = 'https://github.com/ncoghlan'

    bugs.python.org fields:

    activity = <Date 2013-11-14.00:49:38.159>
    actor = 'christian.heimes'
    assignee = 'ncoghlan'
    closed = True
    closed_date = <Date 2013-11-13.13:51:51.486>
    closer = 'python-dev'
    components = ['Library (Lib)']
    creation = <Date 2013-04-24.14:09:58.905>
    creator = 'ncoghlan'
    dependencies = []
    files = ['30189', '30190', '32496', '32497', '32508', '32509', '32561', '32562', '32595']
    hgrepos = []
    issue_num = 17828
    keywords = ['patch']
    message_count = 27.0
    messages = ['187704', '187706', '187761', '187763', '188804', '188807', '188808', '188809', '202125', '202129', '202131', '202133', '202143', '202178', '202211', '202212', '202215', '202522', '202524', '202528', '202529', '202532', '202744', '202748', '202807', '202811', '202812']
    nosy_count = 8.0
    nosy_names = ['lemburg', 'barry', 'ncoghlan', 'vstinner', 'christian.heimes', 'ezio.melotti', 'flox', 'python-dev']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue17828'
    versions = ['Python 3.4']

    Metadata

    Metadata

    Assignees

    Labels

    stdlibStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions