kuroko/test/testAttributePacking.krk

23 lines
587 B
Python
Raw Permalink Normal View History

2021-01-15 13:31:00 +03:00
let objectWithLongName = object()
objectWithLongName.(
longList,
ofAttributes,
onThatObject,
thatWeWantToSet
) = 1,2,3,4
print(dir(objectWithLongName))
print(objectWithLongName.longList)
print(objectWithLongName.ofAttributes)
print(objectWithLongName.onThatObject)
print(objectWithLongName.thatWeWantToSet)
print(*objectWithLongName.(longList,ofAttributes,onThatObject,thatWeWantToSet))
objectWithLongName.(
longList,
ofAttributes,
onThatObject,
thatWeWantToSet
) = "four"
print(*objectWithLongName.(longList,ofAttributes,onThatObject,thatWeWantToSet))