Ilya Priven

Results 164 comments of Ilya Priven

Can we also add `...` to the defaults while we're at it?

Yeah, obviously in its escaped form. I think the sharp change in coverage would tell you :)

Hm, on coverage 5.5 this seems to happen only with `--timid`. The missing "branch" is perhaps the fact that you don't iterate over the entire generator, i.e. you don't exit...

Hm, this doesn't reproduce for a handwritten generator: ```python def g(): yield 42 any(g()) ``` In fact, it doesn't reproduce for: ```python any(a for a in ['a']) ``` but reproduces...

Since the library is using urllib3, the main workaround is to use pyopenssl when available. To do this, add this to the beginning of the code: ```py try: import urllib3.contrib.pyopenssl...

@dotorg-richard it's basically something like: ```python my_model = MyModel.get('my_hash_key') my_model.update( actions=[ MyModel.my_field.set(42), ], ) ``` Let us know how we can improve the docs, preferably through a pull request.

@ofekfeller1 You can always use the `boto3` API regardless of this library.

This could be a good breaking change to make in PynamoDB 6 to allow only some primitive types and callables in `default`. Another common gotcha I've seen is `DateAttribute(default=datetime.utcnow())`. It's...

The design isn't 'best practice' since it'll limit your horizontal scaling (the set of discriminator values is limited so they wouldn't be good hash keys), but I agree it shouldn't...

@kennovation1 Would `page_size` be what you actually want here? @Yaronn44 What you probably want is `page_size=100` and to not to specify any `limit`. This way since you're only ever interested...