Skip to content

Built-in module _io can lose data from buffered files in reference cycles#62052

@arigo

Description

@arigo
mannequin
BPO17852
Nosy@tim-one, @nascheme, @pitrou, @vstinner, @njsmith, @methane, @vadmium, @serhiy-storchaka, @jstasiak, @xgid, @nitishch, @Arusekk, @miss-islington, @Volker-Weissmann
PRs
  • bpo-17852: Maintain a list of BufferedWriter objects. Flush them on exit. #1908
  • Revert "bpo-17852: Maintain a list of BufferedWriter objects. Flush them on exit." #3337
  • bpo-17852: Maintain a list of BufferedWriter objects. Flush them on exit. #3372
  • bpo-17852: Maintain a list of BufferedWriter objects. Flush them on exit. #3372
  • bpo-17852: Revert incorrect fix based on misunderstanding of _Py_PyAtExit() semantics #4826
  • bpo-17852: Fix PR #3372, flush BufferedWriter objects on exit. #4847
  • bpo-17852: Fixed the documentation about closing files #23135
  • [3.9] bpo-17852: Doc: Fix the tutorial about closing files (GH-23135) #23527
  • [3.8] bpo-17852: Doc: Fix the tutorial about closing files (GH-23135) #23528
  • Files
  • y.py
  • gcio.py
  • pyio.diff
  • buffer_crash.py
  • buffer_not_flushed.py
  • buffer_register_flush.txt
  • 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/nascheme'closed_at=Nonecreated_at=<Date2013-04-27.07:33:30.917>labels= ['type-bug', '3.7', 'expert-IO'] title='Built-in module _io can lose data from buffered files in reference cycles'updated_at=<Date2020-12-01.10:53:50.492>user='https://github.com/arigo'

    bugs.python.org fields:

    activity=<Date2020-12-01.10:53:50.492>actor='miss-islington'assignee='nascheme'closed=Falseclosed_date=Nonecloser=Nonecomponents= ['IO'] creation=<Date2013-04-27.07:33:30.917>creator='arigo'dependencies= [] files= ['30030', '37357', '37359', '47121', '47332', '47340'] hgrepos= [] issue_num=17852keywords= ['patch'] message_count=71.0messages= ['187890', '187898', '187903', '187922', '187966', '188075', '188077', '188095', '188130', '188137', '231376', '231386', '231391', '231420', '232103', '232109', '232113', '232114', '232116', '232117', '232118', '232120', '232121', '232122', '232123', '232124', '232126', '232127', '232129', '232131', '232132', '232133', '232134', '232137', '232139', '232140', '232146', '294868', '294910', '294956', '301295', '301297', '301329', '301331', '301353', '301361', '301363', '302758', '305653', '305665', '308170', '308177', '308236', '308330', '308332', '308412', '308417', '308419', '308424', '308666', '308668', '308681', '308787', '310602', '310648', '310659', '355064', '381924', '381925', '381926', '382232'] nosy_count=14.0nosy_names= ['tim.peters', 'nascheme', 'pitrou', 'vstinner', 'njs', 'methane', 'martin.panter', 'serhiy.storchaka', 'jstasiak', 'xgdomingo', 'nitishch', 'Arusekk', 'miss-islington', 'Volker Wei\xc3\x9fmann'] pr_nums= ['1908', '3337', '3372', '3372', '4826', '4847', '23135', '23527', '23528'] priority='normal'resolution=Nonestage='patch review'status='open'superseder=Nonetype='behavior'url='https://bugs.python.org/issue17852'versions= ['Python 3.6', 'Python 3.7']

    Linked PRs

    Metadata

    Metadata

    Assignees

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions