Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Different results in CPython and LPython #1978

Open
@rebcabin

Description

@rebcabin

repro: https://github.com/rebcabin/lpython/tree/brian-lasr/lasr/LP-pycharm/Issue1975

I will debug this deeply with print statements, but before I make the code super ugly, I thought I would save a clean repro case for y'all:

CPython:

(lp) ┌─(~/CLionProjects/lpython/lasr/LP-pycharm/Issue1975)───────────────────────────────────────────────────────────────────────────────────────────────(brian@Golf37:s000)─┐
└─(20:41:28 on brian-lasr ✭)──> PYTHONPATH='../../../src/runtime/lpython' python lasr_lexer.py                                                        1 ↵ ──(Tue,Jun20)─┘
STRINGIO TEST
READ-SEEK-TELL-TEST
LEXER TEST

LPython:

(lp) ┌─(~/CLionProjects/lpython/lasr/LP-pycharm/Issue1975)───────────────────────────────────────────────────────────────────────────────────────────────(brian@Golf37:s000)─┐
└─(20:45:04 on brian-lasr ✭)──> ~/CLionProjects/lpython/src/bin/lpython -I. lasr_lexer.py && ./lasr_lexer.out                                       127 ↵ ──(Tue,Jun20)─┘
STRINGIO TEST
READ-SEEK-TELL-TEST
LEXER TEST
AssertionError: t == 'f'

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions