#19642: django.utils.functional.lazy issues ------------------------------+------------------------------ Reporter: void | Owner: nobody Type: Bug | Status: new Component: Core (Other) | Version: master Severity: Normal | Keywords: lazy, functional Triage Stage: Unreviewed | Has patch: 0 Easy pickings: 0 | UI/UX: 0 ------------------------------+------------------------------ I've found some issues meditating on the `lazy()` function. I'm reporting them as one ticket; please tell if I should rather create one per issue.
* promise, returned by `lazy()`, has no attributes of original class: `lazy()` thinks only about methods * promise, returned by `lazy()`, has weird behaviour if resultclass has `__mod__` method – it overrides it completely * methods of promise, returned by `lazy()`, lack the `__doc__` attribute – docstring is lost * if resultclass explicitly define itself as a not hashable with `__hash__ = None`, promises of that class may still be hashable. Following diff, when applied, adds four failing tests illustrating that issues: https://gist.github.com/4582334 -- Ticket URL: <https://code.djangoproject.com/ticket/19642> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-updates@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.