Skip to content

Update pickle opcode documentation in pickletools for 3.x #53513

Closed as not planned

Description

@abalkin
BPO 9267
Nosy @malemburg, @mdickinson, @abalkin, @pitrou, @avassalotti, @Windsooon, @gforcada
Dependencies
  • bpo-5180: 3.1 cannot unpickle 2.7-created pickle
  • bpo-6290: cPickle can misread data type
  • 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 = None
    created_at = <Date 2010-07-15.18:12:59.972>
    labels = ['easy', 'type-feature', '3.7', 'docs']
    title = 'Update pickle opcode documentation in pickletools for 3.x'
    updated_at = <Date 2019-06-16.21:23:22.498>
    user = 'https://github.com/abalkin'

    bugs.python.org fields:

    activity = <Date 2019-06-16.21:23:22.498>
    actor = 'gforcada'
    assignee = 'docs@python'
    closed = False
    closed_date = None
    closer = None
    components = ['Documentation']
    creation = <Date 2010-07-15.18:12:59.972>
    creator = 'belopolsky'
    dependencies = ['5180', '6290']
    files = []
    hgrepos = []
    issue_num = 9267
    keywords = ['easy']
    message_count = 6.0
    messages = ['110384', '110451', '110466', '179035', '342408', '345781']
    nosy_count = 8.0
    nosy_names = ['lemburg', 'mark.dickinson', 'belopolsky', 'pitrou', 'alexandre.vassalotti', 'docs@python', 'Windson Yang', 'gforcada']
    pr_nums = []
    priority = 'normal'
    resolution = None
    stage = 'needs patch'
    status = 'open'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue9267'
    versions = ['Python 3.5', 'Python 3.6', 'Python 3.7']

    Activity

    1. abalkin commented on Jul 15, 2010

      @abalkin
      MemberAuthor

      Pickle opcode documentation in pickletools still refers to old/new style classes and changes made in 2.x series. Opcodes such as INT, INST, and OBJ that are no longer produced by 3.x pickling code should be described as such and discussion added on how 2.x features that are removed in 3.x are emulated when 2.x pickles are loaded in 3.x.

      See also bpo-5180.

    2. self-assigned this
      on Jul 15, 2010
    3. added
      docsDocumentation in the Doc dir
      type-featureA feature request or enhancement
      on Jul 15, 2010
    4. abalkin commented on Jul 16, 2010

      @abalkin
      MemberAuthor

      Just a reminder to myself based on Mark's suggestion on IRC. In TUPLE<N> opcode documentation two-tuple and three-tuple are redundant in summary line. Can be replaced with just tuple without loss of clarity. See r82915.

    5. abalkin commented on Jul 16, 2010

      @abalkin
      MemberAuthor

      From IRC:

      Sasha: What's the current status of pickling float inf, nan, -0.0, etc.?

      Mark: In py3k and release27-maint, there shouldn't be any issues with any of those. Same with release31-maint. In release26-maint, pickling infinities and nans on windows using protocol 0 is problematic.

    6. serhiy-storchaka commented on Jan 4, 2013

      @serhiy-storchaka
      Member

      See also bpo-16550.

    7. removed their assignment
      on Jun 29, 2014
    8. Windsooon commented on May 14, 2019

      Windsooonmannequin
      Mannequin

      Where are the documents actually?

    9. gforcada commented on Jun 16, 2019

      gforcadamannequin
      Mannequin
    10. transferred this issue fromon Apr 10, 2022
    11. furkanonder commented on Feb 1, 2023

      @furkanonder
      Contributor

      @serhiy-storchaka @abalkin I think we can close the issue. The pickletools documentation currently does not refer to old style classes or changes to the 2.x series.

    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.7 (EOL)end of lifedocsDocumentation in the Doc direasytype-featureA feature request or enhancement

      Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions