Skip to content

Add pickler hook for the user to customize the serialization of user defined functions and types. #80081

Closed
@pierreglaser

Description

@pierreglaser
BPO 35900
Nosy @pitrou, @avassalotti, @serhiy-storchaka, @ogrisel, @pierreglaser
PRs
  • bpo-35900: Enable custom reduction callback registration in _pickle #12499
  • bpo-35900: Add a state_setter arg to save_reduce #12588
  • Files
  • test_hook.py
  • pickler_hook.patch
  • pickler_hook.patch
  • 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 = None
    closed_at = <Date 2019-05-08.21:08:54.715>
    created_at = <Date 2019-02-05.14:40:22.937>
    labels = ['type-feature', '3.8']
    title = 'Add pickler hook for the user to customize the serialization of user defined functions and types.'
    updated_at = <Date 2019-05-08.21:08:54.715>
    user = 'https://github.com/pierreglaser'

    bugs.python.org fields:

    activity = <Date 2019-05-08.21:08:54.715>
    actor = 'pitrou'
    assignee = 'none'
    closed = True
    closed_date = <Date 2019-05-08.21:08:54.715>
    closer = 'pitrou'
    components = []
    creation = <Date 2019-02-05.14:40:22.937>
    creator = 'pierreglaser'
    dependencies = []
    files = ['48101', '48102', '48203']
    hgrepos = []
    issue_num = 35900
    keywords = ['patch']
    message_count = 7.0
    messages = ['334870', '334872', '335404', '337673', '341933', '341944', '341945']
    nosy_count = 5.0
    nosy_names = ['pitrou', 'alexandre.vassalotti', 'serhiy.storchaka', 'Olivier.Grisel', 'pierreglaser']
    pr_nums = ['12499', '12588']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue35900'
    versions = ['Python 3.8']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.8 (EOL)end of lifetype-featureA feature request or enhancement

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions