forked from pyvideo/data
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathobjects-and-classes-in-python-and-javascript.json
More file actions
40 lines (40 loc) · 2.74 KB
/
objects-and-classes-in-python-and-javascript.json
File metadata and controls
40 lines (40 loc) · 2.74 KB
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
33
34
35
36
37
38
39
40
{
"alias": "video/1041/objects-and-classes-in-python-and-javascript",
"category": "EuroPython 2011",
"copyright_text": "Standard YouTube License",
"description": "Python has a well-thought out system for classes. Beginners can use it\nwithout understanding it all. Experts can use it to produce code that is\nboth elegant and powerful (such as models and class-based views in\nDjango). Python classes can be used for many purposes.\n\nThis tutorial arises from the author's experience in using classes to\nsolve problems, such as:\n\n- Add custom methods and attributes to objects that are, at root, just an integer\n- Construct dictionaries whose values are functions\n- Construct classes on-the-fly\n- Implement JavaScript object semantics in Python (advanced topic)\n\nThe outline syllabus is:\n\n- Review of the class statement in Python (and decorators)\n- Subclassing built-in types such as int and tuple\n- How to define classes without using a class statement\n- How to define a dispatch dictionary using a class statement\n- Metaclasses as syntactic sugar for class construction\n- Metaclasses to provide new class semantics\n- Review of JavaScript object semantics\n- Using Python classes to implement JavaScript object semantics\n\nFor Guido on the history of Python classes see:\n\n- http://python-history.blogspot.com/2010/06/new-style-classes.html\n- http://python-history.blogspot.com/2010/06/inside-story-on-new-style-classes.html\n- http://python-history.blogspot.com/2010/06/method-resolution-order.html\n\nThis tutorial is for Intermediate or Advanced Python programmers.\n(Beginners will find it very hard going.) The aim of the course is to\nexplain exactly what happens when a class in constructed, and to learn\nways of using this knowledge.\n",
"duration": null,
"id": 1041,
"language": "eng",
"quality_notes": "",
"recorded": "2011-07-21",
"related_urls": [
"http://python-history.blogspot.com/2010/06/inside-story-on-new-style-classes.html",
"http://python-history.blogspot.com/2010/06/method-resolution-order.html",
"http://python-history.blogspot.com/2010/06/new-style-classes.html"
],
"slug": "objects-and-classes-in-python-and-javascript",
"speakers": [
"Jonathan Fine"
],
"summary": "[EuroPython 2011] Jonathan Fine - 23 June 2011 in \"Training Pizza Napoli\"\n\n",
"tags": [
"dictionaries",
"javascript",
"tutorial"
],
"thumbnail_url": "http://i.ytimg.com/vi/e0tK-Kawx3E/hqdefault.jpg",
"title": "Objects and classes in Python (and JavaScript)",
"videos": [
{
"length": 0,
"type": "youtube",
"url": "http://www.youtube.com/watch?v=e0tK-Kawx3E"
},
{
"length": 0,
"type": "youtube",
"url": "http://www.youtube.com/watch?v=tIgRlaChOqU"
}
]
}