[openstack-dev] [all] Using \ for multiline statements
openstack.org at sodarock.com
Thu Dec 22 23:39:23 UTC 2016
I for one do not like \ continuation lines. I think they look ugly and
prefer using () and formatting code to avoid them.
On Thu, Dec 22, 2016 at 3:28 PM, Sean McGinnis <sean.mcginnis at gmx.com>
> Looking for input from everyone, particularly those with more in-depth
> Python knowledge.
> In Cinder for some time we have been trying to enforce using () or
> reformatting code to avoid using \ to have statements span multiple
> lines. I'm not sure when this actually started, but I think it may
> be one of those things where someone got a review disagreement, so
> then that person started downvoting on it, then the next person, etc.
> I've seen some allusions to the use of \ having some issues, but I
> can't find any concrete examples where this can cause problems. I do
> seem to remember trying to write a hacking check or a code parsing
> tool to do something that choked on these, but it's long enough ago
> that I don't remember the details, and I could very well be mixing
> that up with something else.
> So my question is - is there a technical reason for enforcing this
> rule, or is this just a bad downvote that's gotten out of control?
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the OpenStack-dev