← 输入框|github.com|刷新
Skip to content

Different results in CPython and LPython #1978

Open

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'

Activity

  1. added
    bug
    on Jun 21, 2023
  2. rebcabin commented on Jun 21, 2023

    @rebcabin
    ContributorAuthor

    See Issue #1981 for deeper analysis

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions