Kurt Rose
Kurt Rose
The length limitation is part of the algorithm as defined in the RFC. From section 2.3 "Step 2: Expand" https://tools.ietf.org/html/rfc5869 ``` L length of output keying material in octets (...
Shoot, I'm sorry I should have specified -- I'm not the project author just another user who is interested. That is an interesting use case. The generated password needs to...
I've been integrating `ptpython` to embed shells into distributable builds (e.g. `my-tool shell` pops you a `ptpython` prompt). I also pop `pdb.post_mortem()` when debug environment variables are set and would...
I'll try reproducing with /dev/full; thanks very much for the report!
Another much less obscure use case comes to mind: if you want your default to be a dict or list but don't want multiple validate() calls to return the same...
```python def default_if_none(sub_schema, default_factory): 'Coerce Nones to a default value.' return schema.Or( schema.And(None, schema.Use(lambda a: default_factory())), sub_schema) def nullable_list(iterable): 'convenient for YAML where None is often symantically empty' return default_if_none(list(iterable),...
One of the things I found tricky to get right, is to have the "interesting" schema be the last for Or(), and the first for And(). That way the error...
```python def opt_up(schema_dict): ''' For a schema dictionary, extract optional defaults upwards recursively across dictionaries. The input will be something like: { schema.Optional('foo'): { schema.Optional('bar', default='baz'): str } } And...
Totally agree, I'm going to take a shot at a PR. Edit: taking a quick look, I think this can be added pretty readily by doing try/except around the recursive...
looks like this may be handled recently by this: https://github.com/keleshev/schema/commit/61cc0bf84dd3efc830a366fb200c386bae35c243 Here's the behavior on your example: ```python >>> # Schema: ... Schema({ ... 'key1': { ... 'child1': { ... 'child2':...