Is it possible to create a pointer in Python to make a variable equal to a string after that string is changed elsewhere? Something like this below concept:
a = 'hello'
b = a
a = 'bye'
print(b) # is it possible have b be 'bye' without simply doing b = a again?
bis made to be a pointer to the same memory asa, reassigningaafterwards wouldn't have any effect onb. Also similar to here, you would need a second level of "nesting" for this to work. If in C you hadchar**pointers, you could reassign the first level of pointers, and the change would be reflected inb.