Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

select - decompiling - errors #711

Open
virajkanwade opened this issue Apr 12, 2024 · 1 comment
Open

select - decompiling - errors #711

virajkanwade opened this issue Apr 12, 2024 · 1 comment

Comments

@virajkanwade
Copy link

Python 3.12
pony 0.7.17

I ran the estore.py sample https://github.com/ponyorm/pony/blob/orm/pony/orm/examples/estore.py

result = select(c for c in Customer if c.country == 'USA')[:]

.venv/lib/python3.12/site-packages/pony/orm/decompiling.py", line 218, in get_instructions
    arg = [cmp_op[oparg]]
           ~~~~~~^^^^^^^
IndexError: tuple index out of range

Also

result = select((c.country, count(c)) for c in Customer)[:]

.venv/lib/python3.12/site-packages/pony/orm/decompiling.py", line 278, in decompile
    x = method(*arg)
        ^^^^^^^^^^^^
TypeError: Decompiler.YIELD_VALUE() takes 1 positional argument but 2 were given
@YuriFontella
Copy link

use python 3.11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants