Shallow copy
کۆپیی ڕووکەش
Proposed Kurdish term — under reviewزاراوەی پێشنیارکراو — لە ژێر پێداچوونەوەدایە Definitionپێناسە
A new outer (or other container) that holds the same items as the old one. copy(), list() and [:] make shallow copies: changing the new list itself is safe, but lists inside it are still shared.
نوێی دەرەوەیە (یان هەر هەڵگرێکی تر) کە هەمان دانەکانی کۆنەکەی تێدایە. copy()، list() و [:] کۆپیی ڕووکەش دروست دەکەن: گۆڕینی خودی بێ کێشەیە، بەڵام ئەو لیستانەی لەناویدان هێشتا هاوبەشن.
Exampleنموونە
list3 is a real copy of a flat list, but in shallow the rows are still the rows of grid.
list3 کۆپییەکی ڕاستەقینەی لیستێکی سادەیە، بەڵام لە shallowـدا هێشتا هەمان ڕیزەکانی gridـن.
list1 = [1, 2, 3]
list3 = list1.copy()
list1[0] = 111
print(list3) # [1, 2, 3]
grid = [[1, 2], [3, 4]]
shallow = grid.copy()
grid[0][0] = 99
print(shallow) # [[99, 2], [3, 4]]Other Kurdish renderings in useوەرگێڕانە کوردییەکانی تر
کۆپییە ڕووکەشەکە، کۆپییەکی ڕووکەش
Note on the Kurdish termتێبینی دەربارەی زاراوە کوردییەکە
کۆپی as in the registry's copy (کۆپیکردن); ڕووکەش (surface) translates 'shallow'. Proposed.