Skip to content

Python 3.8 EOL, more compileable Struct types (Lambdas and enums)#1105

Open
franzhaas wants to merge 6 commits intoconstruct:masterfrom
franzhaas:compileabilityMandatory
Open

Python 3.8 EOL, more compileable Struct types (Lambdas and enums)#1105
franzhaas wants to merge 6 commits intoconstruct:masterfrom
franzhaas:compileabilityMandatory

Conversation

@franzhaas
Copy link

This is a reasonably sized Pull request, addressing these topics.:

  1. Tests used to pass when attempts to compile threw an exception -> now they fail
  • a view tests are now marked that they shall not try to compiles, these have "dynamic" structures.
  1. repr sometimes yields a string which can not be parsed -> _emit_source_or_use_linked checks if repr works, and uses userfunction if it does not
  2. almost all compile errors where due to lambdas not being allowed in places -> now they are allowed everywhere

There is a user visible change, it is no longer possible to use strings for switches which use enums as a key datatype.

Python 3.13 was added, 3.8 removed

- adapting checked pythons

- pushed python version... without understanding if its a good idea
- no more compiler limitation exception
solution in place, and used for Mapping
- all tests pass with compile mandatory, when struct structure is compile time known
enum keys in switches can not be looked up with strings anymore
@franzhaas franzhaas changed the title Compileability mandatory Python 3.8 EOL, more compileable Struct types (Lambdas and enums) Oct 10, 2024
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