Skip to content

datetime.__setstate__ fails decoding python2 pickle #66204

@eddygeek

Description

@eddygeek
mannequin
BPO 22005
Nosy @tim-one, @gpshead, @abalkin, @pitrou, @avassalotti, @serhiy-storchaka, @miss-islington
PRs
  • bpo-22005: Fixed unpickling instances of datetime classes pickled by Python 2. #794
  • bpo-22005: Fixed unpickling instances of datetime classes pickled by Python 2. #11017
  • [3.7] bpo-22005: Fixed unpickling instances of datetime classes pickled by Python 2. (GH-11017) #11022
  • [3.6] [3.7] bpo-22005: Fixed unpickling instances of datetime classes pickled by Python 2. (GH-11017) (GH-11022) #11024
  • bpo-22005: Fix condition for unpickling a date object. #11025
  • bpo-22005: Document the reality of pickle compatibility. #11054
  • [3.7] bpo-22005: Document the reality of pickle compatibility. (GH-11054) #11055
  • Files
  • unpickle_datetime_surrogateescape.patch
  • datetime_portable_pickle-2.7.patch: Makes pickling in 2.7 portable
  • datetime_pickle_bytes-2.7.patch: Makes pickling in 2.7 produce the same data as in 3.x
  • 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/serhiy-storchaka'
    closed_at = <Date 2018-12-09.20:12:39.299>
    created_at = <Date 2014-07-18.12:49:52.735>
    labels = ['3.7', '3.8', 'type-bug', 'library']
    title = 'datetime.__setstate__ fails decoding python2 pickle'
    updated_at = <Date 2018-12-09.20:12:39.298>
    user = 'https://bugs.python.org/eddygeek'

    bugs.python.org fields:

    activity = <Date 2018-12-09.20:12:39.298>
    actor = 'serhiy.storchaka'
    assignee = 'serhiy.storchaka'
    closed = True
    closed_date = <Date 2018-12-09.20:12:39.299>
    closer = 'serhiy.storchaka'
    components = ['Library (Lib)']
    creation = <Date 2014-07-18.12:49:52.735>
    creator = 'eddygeek'
    dependencies = []
    files = ['40758', '40759', '40760']
    hgrepos = []
    issue_num = 22005
    keywords = ['patch']
    message_count = 33.0
    messages = ['223408', '223426', '223579', '223587', '252857', '252877', '252880', '252882', '252883', '252884', '252886', '252887', '253042', '253058', '253071', '263380', '288821', '331241', '331298', '331307', '331313', '331319', '331326', '331332', '331333', '331334', '331340', '331421', '331446', '331447', '331449', '331450', '331451']
    nosy_count = 10.0
    nosy_names = ['tim.peters', 'gregory.p.smith', 'belopolsky', 'pitrou', 'bronger', 'alexandre.vassalotti', 'serhiy.storchaka', 'eddygeek', '[email protected]', 'miss-islington']
    pr_nums = ['794', '11017', '11022', '11024', '11025', '11054', '11055']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue22005'
    versions = ['Python 3.6', 'Python 3.7', 'Python 3.8']

    Metadata

    Metadata

    Labels

    3.7 (EOL)end of life3.8 (EOL)end of lifestdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions