question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Code health] Remove Re-definition found for builtin function

See original GitHub issue

🚀 Feature

As reported by deepsource in here we abuse from using built-in input function in our functionality.

Motivation

We target to have a clean and healthy source code free of risk.

Pitch

Replace variable names whether it makes sense e.g. for image based functionality input -> image ; in losses input -> pred (or similar)


Consider also to contribute to Kornia universe projects 😃

  • Tutorials: our repository containing the tutorials.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
cclausscommented, Sep 14, 2021

I do agree with the tool… It is not considered Pythonic to shadow a builtin. It does not matter if the current code does not use input() because a future contributor might add it and then be highly confused by the results.

0reactions
edgarribacommented, Oct 16, 2021

@sesam I’d go module by module and possibly starting with test files

Read more comments on GitHub >

github_iconTop Results From Across the Web

python: builtin function redefinition, with different arguments
To replace the 'print' builtin, I can write my python function. python 2.6 : at runtime, I get syntax error. solution from __future__...
Read more >
Redefinition of function - ROOT Forum
Hello, Is there any way to redefine previously defined function in ROOT environment? Let's say I input function : root[0].
Read more >
GNU M4 1.4.19 macro processor
5.1 Defining a macro. The normal way to define or redefine macros is to use the builtin define : Builtin: define ( name...
Read more >
Code-Dependent: Pros and Cons of the Algorithm Age
The non-scientific canvassing found that 38% of these particular ... Our algorithms are now redefining what we think, how we think and what ......
Read more >
How do you fix a redefinition error in C programming? - Quora
you do that by removing the redefinition. ... cases in C. I dislike this approach, as complex functions can end up with dozens...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found