Skip to content

Smaller fixes#295

Draft
rayman2000 wants to merge 6 commits intomasterfrom
nklose/qol-and-errors
Draft

Smaller fixes#295
rayman2000 wants to merge 6 commits intomasterfrom
nklose/qol-and-errors

Conversation

@rayman2000
Copy link
Copy Markdown
Collaborator

@rayman2000 rayman2000 commented Mar 26, 2026

  • Improved the error message for unsupported features
  • Fixed a bug in list_mul: the values in the result were being calculated incorrectly
  • Added support for list.insert: the insert index is complicated, if it is greater than the length, then we append at the end. If it is negative, we go backwards from the end of the list, if negative and greater than the length, we prepend.

This change is Reviewable

@rayman2000
Copy link
Copy Markdown
Collaborator Author

  • Changed the encoding of contains for lists and PSeqs. They now state that an element exists in the collection that object-equals the input.

@rayman2000
Copy link
Copy Markdown
Collaborator Author

  • Added --strict-int mode, which replaces many instances of isinstance(x, int) with type(x) == int in the Viper encoding.

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

Successfully merging this pull request may close these issues.

1 participant