Skip to content

Add methods to pathlib.Path: write_text, read_text, write_bytes, read_bytes #64417

Closed
@cool-RR

Description

@cool-RR
mannequin
BPO 20218
Nosy @birkenfeld, @pitrou, @cool-RR
Files
  • pathlib.readwrite3.patch: minimal pathlib read/write functions with tests
  • pathlib.readwrite4.patch
  • pathlib.readwrite3_with_exclusive2.patch: minimal pathlib read/write functions with tests (exclusive option added, typo fixed)
  • patch.patch
  • pathlib_readwrite_v5.patch
  • pathlib_readwrite_v6.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 2014-10-01.17:14:27.523>
    created_at = <Date 2014-01-10.19:04:53.510>
    labels = ['type-feature', 'library']
    title = 'Add methods to `pathlib.Path`: `write_text`, `read_text`, `write_bytes`, `read_bytes`'
    updated_at = <Date 2014-10-01.17:14:43.718>
    user = 'https://github.com/cool-RR'

    bugs.python.org fields:

    activity = <Date 2014-10-01.17:14:43.718>
    actor = 'pitrou'
    assignee = 'none'
    closed = True
    closed_date = <Date 2014-10-01.17:14:27.523>
    closer = 'python-dev'
    components = ['Library (Lib)']
    creation = <Date 2014-01-10.19:04:53.510>
    creator = 'cool-RR'
    dependencies = []
    files = ['33670', '33729', '33786', '33840', '36761', '36762']
    hgrepos = []
    issue_num = 20218
    keywords = ['patch']
    message_count = 50.0
    messages = ['207874', '207952', '208604', '208605', '208625', '208635', '208636', '208639', '208640', '208744', '208785', '208878', '208879', '208889', '208924', '208930', '208931', '208940', '208947', '208949', '208951', '208991', '208992', '208999', '209002', '209017', '209029', '209053', '209326', '209584', '209594', '209606', '209832', '210194', '210341', '211925', '214141', '214142', '214144', '214151', '214228', '214289', '227898', '227900', '227913', '227914', '227926', '227947', '228091', '228092']
    nosy_count = 6.0
    nosy_names = ['georg.brandl', 'pitrou', 'matthiastroffaes', 'cool-RR', 'python-dev', 'cjwelborn']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue20218'
    versions = ['Python 3.5']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      stdlibPython modules in the Lib dirtype-featureA feature request or enhancement

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions