-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
object inspection: produce deterministic descriptions for nested collection datastructures #11312
object inspection: produce deterministic descriptions for nested collection datastructures #11312
Conversation
50c5288
to
e0f148e
Compare
(force-pushed to edit my commit authorship because I remembered that puzzling over this originated from use of |
…non-sortable elements
…oducibility improvements Ref: sphinx-doc#11198 (comment) Applied-by: James Addison <[email protected]>
…l sorting of set elements is not possible
f1fefd3
to
597703d
Compare
…n-element-ordering
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this ready to merge?
A
@AA-Turner I think so, but I'd like to wait until the other changes I have pending for 6.2 are sorted out before merging this one. (it takes me quite a while to regain context when re-reading about each change, and so I think I can better-support a small number of changes introduced gradually) |
I'll try to be a bit more precise than my previous message: I'd like to wait until after the 6.2.0 release, before this can be merged. |
@AA-Turner do we have any mechanisms to monitor memory usage and/or runtime performance impact of pull requests? I'm now comfortable with this being merged, but would be more confident if we had some performance statistics available (in particular, it's the collection of |
…oduced 'seen' variable
I'm really glad to see this work to deterministically reproduce documents. Thank you! |
Maybe slightly off-topic, but from looking into The |
Should this be merged now then? Thanks! |
This can be merged in my opinion - I've re-reviewed the changes to confirm my sense about that. Whether it should be merged remains up to the maintainers. |
Thanks so much for considering this! Making descriptions deterministic will make it easier to determine if a given package really was generated by its claimed source. I hope this (or something like it) will be merged. |
…n-element-ordering
Thanks @david-a-wheeler - to be transparent: I can't guarantee that this resolves the only remaining source of non-replicable documentation; there may be other scenarios where generated documentation can differ. Similarly, it may not be the best possible approach to making these descriptions deterministic; but it's an improvement, I think. |
@jayaddison - I understand. Improvements are improvements, though! |
Thanks @jayaddison @lamby @paravoid! A |
Thank you, @AA-Turner! |
Feature or Bugfix
Purpose
Detail
util.inspect.object_description
already attempts to sort collections, but this can faillist
andtuple
datatypesRelates