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

Redefining built-in 'slice' #14

Open
seancron opened this issue Dec 23, 2013 · 1 comment
Open

Redefining built-in 'slice' #14

seancron opened this issue Dec 23, 2013 · 1 comment

Comments

@seancron
Copy link

Pylint output:

W:245,65: Redefining built-in 'slice' (redefined-builtin)
W:263,12: Redefining built-in 'slice' (redefined-builtin)
W:341, 8: Redefining built-in 'slice' (redefined-builtin)
W:409,10: Redefining built-in 'slice' (redefined-builtin)
W:527, 4: Redefining built-in 'slice' (redefined-builtin)
@zstyblik
Copy link

zstyblik commented Jan 6, 2014

This is caused by the fact variable name is the same as built-in function name. From ceres.py:

  @property
  def slices(self):
    if self.sliceCache:
      if self.sliceCachingBehavior == 'all':
        for slice in self.sliceCache:
          yield slice
  [ ... ]

It shouldn't be a problem.

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

No branches or pull requests

2 participants