Is my code an **in-place** solution? (Python)

```
class Solution:
# @param matrix, a list of lists of integers
# @return a list of lists of integers
def rotate(self, matrix):
n = len(matrix)
for i in range((n + 1) / 2):
for j in range(n / 2):
cur_i, cur_j = i, j
value = matrix[cur_i][cur_j]
for k in range(4):
temp = matrix[cur_j][n - cur_i - 1]
matrix[cur_j][n - cur_i - 1] = value
value = temp
cur_i, cur_j = cur_j, n - cur_i - 1
return matrix
```