Enable refactoring of blocks containing "continue" statement
Brought to you by:
fabioz
At the moment Pydev's refactoring is not able to extract a method from a code block that contains a "continue" or "pass" statement.
E. g. I cannot extract method from the the code below. However, this would be very helpful. Please add the capabilities for doing so.
Thanks,
Stefan
def is_valid_result(x):
return False
#code block I want to refactor into a new separate method
result = []
for r in range(0, 10):
print("complicated computation following...")
# more code here ....
if not is_valid_result(r):
continue
result.append( r )
Sorry, The formatting of my code is apparently screwed. Nevertheless it should make the point clear.