Byron Ruth

Results 223 comments of Byron Ruth

I think @campoy may be referring to [persistent data structures](https://en.wikipedia.org/wiki/Persistent_data_structure)?

That error means `wg.Done()` was called more times than `wg.Add(1)` which means the first subscription may not have been closed correctly prior to the new one starting.. meaning there is...

Hi @tkdchen. I am glad you find this library useful. I don't have any time to invest right now to test the library against these new versions. I would certainly...

#22 has been merged for Django 1.11.x thanks to @romantolkachyov!

> The Serializer-level options could be perhaps implemented as class/instance attributes. This would make it possible to have a base serializer class from which defaults could be inherited. Good idea....

Hi @hauru. preserialize does not actually encode the data into JSON. It simply creates a data structure based on the arguments in the [serialize function](https://github.com/bruth/django-preserialize/blob/master/preserialize/serialize.py#L149). So, if the types in...

No problem at all. > I guess what i was expecting from preserialize was the output dictionary values to be plain Python objects. I understand the expectation. However, since arbitrary...

The coercion could use the [`get_prep_value`](https://github.com/django/django/blob/master/django/db/models/fields/__init__.py#L706-L712) method on fields. For example, here is [`FileField`](https://github.com/django/django/blob/master/django/db/models/fields/files.py#L284-L290) and it returns a string.

I have a couple of improvements in the works. #14 defines the `Serializer` class to encapsulate these options rather than needing to use globals. I also have a [branch](https://github.com/bruth/django-preserialize/commit/094dbd13ccc8f87eb3912d9df1fdb6048e35d25d) to...

Looks like I figured it out. I was not calling `django.setup()` for versions greater than 1.7.