[rb-general] Sphinx output always reproducible?

Chris Lamb lamby at debian.org
Wed Apr 11 10:01:52 CEST 2018


Hi Martin,

> So why not just use sorted()?

Do you mean patch your package along the lines of:

  - a_set = {'a', 'b', 'c'}
  + a_set = sorted({'a', 'b', 'c'})

If so, that would not do what you want and result in `a_set` not
actually being a set anymore, something that — from the looks of
this class and the rest of the code — might be important, at least
æsthethically and architecturally.

If you meant changing Sphinx to call sorted(..) (I don't think you
did, as you use "would also", etc. etc.) that could also work.

However, I think it would be superior to use the original ordering
that exists in the code (see my comments about the Abstract Syntax
Tree).

Deterministic doesn't necessarily mean sorted, after all. :)


Best wishes,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-


More information about the rb-general mailing list