Skip to content
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

cleanup of several minor points in sage/combinat #17270

Closed
fchapoton opened this issue Oct 31, 2014 · 7 comments
Closed

cleanup of several minor points in sage/combinat #17270

fchapoton opened this issue Oct 31, 2014 · 7 comments

Comments

@fchapoton
Copy link
Contributor

This aims to clean up three things:

  • deprecated use of raise
  • deprecated use of has_key
  • pep8 error E222

in the combinat part of sage only

See https://groups.google.com/forum/#!topic/sage-combinat-devel/f7SE-5BpRZg

Component: combinatorics

Author: Frédéric Chapoton

Branch/Commit: 048ba5b

Reviewer: Nathann Cohen

Issue created by migration from https://trac.sagemath.org/ticket/17270

@fchapoton fchapoton added this to the sage-6.4 milestone Oct 31, 2014
@fchapoton

This comment has been minimized.

@fchapoton
Copy link
Contributor Author

New commits:

048ba5btrac 172XX : cleanup of pep8 E222 and W601 and raise in src/sage/combinat

@fchapoton
Copy link
Contributor Author

Commit: 048ba5b

@fchapoton
Copy link
Contributor Author

Branch: u/chapoton/17270

@nathanncohen
Copy link
Mannequin

nathanncohen mannequin commented Oct 31, 2014

Reviewer: Nathann Cohen

@nathanncohen
Copy link
Mannequin

nathanncohen mannequin commented Oct 31, 2014

comment:2

Hello !

Well, you do not do much harm with your pep8 patches but honestly a large part of it is just intolerance.. Like replacing p[i-1] with p[i - 1] :-P

Also, I personally prefer

if <condition>:
   return <thing>
else:
    return <another thing>

to

if <condition>
   return <thing>
return <another thing>

And it would be cool to respect other people's writing style sooo... Well, write code however you like, but please don't change the code only because it is not your style.

Nathann

@vbraun
Copy link
Member

vbraun commented Nov 1, 2014

Changed branch from u/chapoton/17270 to 048ba5b

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants