/
encapsulation-with-descriptors.json
32 lines (32 loc) · 1.23 KB
/
encapsulation-with-descriptors.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{
"alias": "video/1760/encapsulation-with-descriptors",
"category": "PyCon US 2013",
"copyright_text": "CC",
"description": "",
"duration": null,
"id": 1760,
"language": "eng",
"quality_notes": "",
"recorded": "2013-03-15",
"slug": "encapsulation-with-descriptors",
"speakers": [
"Luciano Ramalho"
],
"summary": "Python has no private fields, but the property decorator lets you\nreplace public attributes with getters and setters without breaking\nclient code. And the descriptor mechanism, used in Django for model\nfield declarations, enables wide reuse of getter/setter logic via\ncomposition instead of inheritance. This talk explains how properties\nand descriptors work by refactoring a practical example.\n",
"tags": [
"talk"
],
"thumbnail_url": "https://i2.ytimg.com/vi/5GG4jBxj4Ys/hqdefault.jpg",
"title": "Encapsulation with descriptors",
"videos": [
{
"type": "mp4",
"url": "http://s3.us.archive.org/nextdayvideo/psf/pycon2013/Encapsulation_with_descriptors.mp4?Signature=1nnn6X5f%2FI1zj0WkCpi1PRk8xlQ%3D&Expires=1363664022&AWSAccessKeyId=FEWGReWX3QbNk0h3"
},
{
"length": 0,
"type": "youtube",
"url": "https://www.youtube.com/watch?v=5GG4jBxj4Ys"
}
]
}