#16216: Improve PEP8 compliance: replace "== None" by "is None"
-------------------------------------+-------------------------------------
       Reporter:  wluebbe            |        Owner:
           Type:  enhancement        |       Status:  needs_work
       Priority:  minor              |    Milestone:  sage-6.2
      Component:  build              |   Resolution:
       Keywords:  pep8               |    Merged in:
        Authors:  Wilfried Luebbe    |    Reviewers:
Report Upstream:  N/A                |  Work issues:
         Branch:                     |       Commit:
  u/wluebbe/ticket/16216             |  1219d56b731119122356714ed4d26ae33c63cd5d
   Dependencies:                     |     Stopgaps:
-------------------------------------+-------------------------------------
Changes (by vdelecroix):

 * status:  needs_review => needs_work


Comment:

 Hi,

 1) As I already told you, the substitutions made bad things to the
 documentation. Hopefully, in very few places. For examples
 - `/src/sage/ext/gen_interpreters.py`: we had "so len==None is different
 than len==1" and now it is "so len is None is different than len==1".  The
 new sentence is much harder to read.
 - `/src/sage/coding/code_bounds.py`: in a comment we had "algorithm==None
 or algorithm="gap"" would be better to have "algorithm=None or
 algorithm="gap" (instead of the is None here).
 - etc

 2) You start removing unnecessary parenthesis. First of all it is not the
 job of that ticket. Secondly, one can arguably says that code is more
 readable with more parenthesis. So revert all those changes. If you want
 to remove parenthesis (which I think is a bad idea in general) then open a
 discussion on sage-devel and then a ticket if a consensus is reached.

 Vincent

--
Ticket URL: <http://trac.sagemath.org/ticket/16216#comment:23>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to