[issue40502] PyNode_New() does not initialize n->n_col_offset

2020-05-08 Thread Joannah Nanjekye
Change by Joannah Nanjekye : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue40502] PyNode_New() does not initialize n->n_col_offset

2020-05-08 Thread Joannah Nanjekye
Joannah Nanjekye added the comment: New changeset d10091aa171250c67a5079abfe26b8b3964ea39a by Joannah Nanjekye in branch 'master': bpo-40502: Initialize n->n_col_offset (GH-19988) https://github.com/python/cpython/commit/d10091aa171250c67a5079abfe26b8b3964ea39a --

[issue40502] PyNode_New() does not initialize n->n_col_offset

2020-05-07 Thread Joannah Nanjekye
Change by Joannah Nanjekye : -- keywords: +patch nosy: +nanjekyejoannah nosy_count: 1.0 -> 2.0 pull_requests: +19304 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19988 ___ Python tracker

[issue40502] PyNode_New() does not initialize n->n_col_offset

2020-05-04 Thread Tomasz Pytel
New submission from Tomasz Pytel : I found this by accident by compiling empty strings since I use column information from the AST tree, if not initialized I get a starting column of -842150451. The easy fix is to initialize n->n_col_offset = 0; in Parser/node.c:PyNode_New(). --