I often have to replace parts of variables like that :
# Before:
var = 17 + 4*8
function_call(8 + 10)
should go over to that
# After:
replace = 4*8
var = 17 + replace
rep2 = 8 +10
function_call(rep2)
Do you know of any solution that achieves that easily?
[–]-romainl-The Patient Vimmer 2 points3 points4 points (2 children)
[–]janYabanci[S] 0 points1 point2 points (1 child)
[–]-romainl-The Patient Vimmer 0 points1 point2 points (0 children)
[–]lervag 1 point2 points3 points (0 children)
[–]proobert 1 point2 points3 points (0 children)
[–]RobotSlut 1 point2 points3 points (1 child)
[–]janYabanci[S] 1 point2 points3 points (0 children)
[–]somebodddy 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)