On Mon, Feb 27, 2012 at 12:40, Éric Araujo <mer...@netwok.org> wrote: > In PEP 386, the rule that versions using an 'rc' marker should sort > after 'c' is buggy: I don’t think anyone will disagree that 1.0rc1 == > 1.0c1 and 1.0rc1 < 1.0c2. The 'rc' marker was added by Tarek shortly > before the PEP was accepted (see > http://mail.python.org/pipermail/python-dev/2010-January/097041.html), > and was not discussed. My preferred solution would be to accept 'rc' > when parsing but then always use 'c' internally and in all output (file > names, METADATA file, etc.). If it is judged important that projects be > able to use 'rc' and see it in output, then I’ll have to add special > cases in __eq__ and __hash__ methods, which is feasible if inelegant.
I also didn't like the fact that 'rc' > 'c'. The change you are proposing will also make the code change far simpler. Note that the code (the one in the main VCS), sort of assumed that 'rc'=='c', but is missing the assignment, and therefore broken. _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com