Researcher
Researcher
Python’s instantiation process starts with a call to the class constructor, which triggers the instance creator, \_\_new\_\_(), to create a new empty object. The process continues with the instance initializer,...
Steps to reproduce the behavior: 1. Code before refactoring: ``` class Descriptor: def __get__(self, instance, owner): return 40 ``` 2. Apply the Inline Method refactoring to the method \_\_get\_\_. 3....
The method that overrides the superclass method receives the refactoring without warning the user that there is a superclass method. It would be nice if Rope could emit a warning...
Rope causes a compilation error after modifying the loop inside the return using the inlined method. It would be nice if Rope sent a warning to the user that the...
Abstract methods do not have an implementation in the class where they are declared; their implementation is expected to be provided by concrete subclasses. It would be nice if Rope...
Steps to reproduce the behavior: 1. Code before refactoring: structure: project | - src | -- \_\_init\_\_.py | -- main.py | -- test.py main.py ```python import sys class Base: def...
Rename refactoring is successfully executed using any Python keyword in B.text. Steps to reproduce the behavior: 1. Code before refactoring: ``` class B: def a(self) -> None: text = 'hello'...
Rename refactoring is partially executed and doesn't rename all uses of the target class. Steps to reproduce the behavior: 1. Code before refactoring: p1/A.py: ``` class A: pass ``` p1/B.py:...
Applying the Rename refactoring to the following program causes runtime problems. Steps to reproduce the behavior: 1. Code before refactoring: ``` import nltk class Word: PorterStemmer = nltk.stem.porter.PorterStemmer() def stem(self,...
Steps to reproduce the behavior: 1. Code before refactoring: ```python class Descriptor: def __get__(self, instance, owner): return 40 ``` 2. Apply the Rename Method refactoring to the method \_\_get\_\_. 3....