Skip to content

Comparison operations aren't considered valid in function arguments #39

Description

@OddBloke

As evidenced by:

$ python -c 'print((1,2) == (1,2))'
True
$ cargo run -- -c 'print((1,2) == (1,2))'
    Finished dev [unoptimized + debuginfo] target(s) in 0.07s
     Running `/home/daniel/personal_dev/RustPython/target/debug/rustpython -c 'print((1,2) == (1,2))'`
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: "UnrecognizedToken { token: Some((15, EqEqual, 16)), expected: [\"\\\")\\\"\", \"\\\",\\\"\", \"\\\"in\\\"\", \"\\\"|\\\"\"] }"', libcore/result.rs:945:5
note: Run with `RUST_BACKTRACE=1` for a backtrace.

Activity

  1. self-assigned this
    on Aug 5, 2018
  2. changed the title [-]Print built-in doesn't support expressions[/-] [+]Comparison operations aren't considered expressions[/+] on Aug 5, 2018
  3. changed the title [-]Comparison operations aren't considered expressions[/-] [+]Comparison operations aren't considered valid in function arguments[/+] on Aug 5, 2018
  4. added a commit that references this issue on Aug 5, 2018
    c8a0b04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions