Kalle Tuure
Kalle Tuure
Overriding a single implementation is not yet possible. However, you can redeclare `f` in its entirety when using the `@overloaded` / `@overloads(...)` syntax. Simply use `@overloaded` on the first variant,...
I've been wondering about this as well. There's a noticeable lag when loading the `types.net` module, which can be traced to the compilation of the new URL regex. The regex...
It looks like `re` is slow to compile patterns with character classes containing explicit Unicode ranges such as `\u00A0-\uD7FF`. Expressing "any valid character" as "any character minus everything invalid in...
A patch has landed on `development`. At least the import lag is now down by 85%.
I just had a look at this again. The optimization I did on the previous round seems to have fixed the URL regex issue completely: it now only takes a...
In the class you have ``` python amounts = ListType(StorageAmount, required=True) ``` The first argument to `ListType` should be a Schematics type, but `StorageAmount` seems to be a model. Since...
Schematics is designed to apply defaults to those fields that are not present in the input data. If `None` is equated with "not there", it would then become impossible to...
#359 fixed the propagation issue, but it tentatively removed the `ModelType.strict` option since I wasn't sure if there's an actual use case for it or if it was introduced as...
Okay, the patch looks good. I'm curious, what would be an example of an expensive `choices` computation? I've always considered initialization performance to be fairly unimportant relative to runtime performance,...
Right, sorry, I was waiting to see if anyone else would like to chime in. I've been thinking about use cases for dynamic choices, and I would expect a pretty...