|
1 | 1 | { |
2 | 2 | "cells": [ |
3 | | - { |
4 | | - "cell_type": "markdown", |
5 | | - "metadata": {}, |
6 | | - "source": [ |
7 | | - "# Object oriented programming" |
8 | | - ] |
9 | | - }, |
10 | 3 | { |
11 | 4 | "cell_type": "markdown", |
12 | 5 | "metadata": { |
13 | 6 | "heading_collapsed": true |
14 | 7 | }, |
15 | 8 | "source": [ |
16 | | - "## Import modules" |
| 9 | + "# Import modules" |
17 | 10 | ] |
18 | 11 | }, |
19 | 12 | { |
20 | 13 | "cell_type": "code", |
21 | | - "execution_count": 1, |
| 14 | + "execution_count": null, |
22 | 15 | "metadata": { |
23 | 16 | "ExecuteTime": { |
24 | 17 | "end_time": "2018-06-25T16:12:27.530982Z", |
|
38 | 31 | "heading_collapsed": true |
39 | 32 | }, |
40 | 33 | "source": [ |
41 | | - "## Simple class definitions" |
| 34 | + "# Simple class definitions" |
42 | 35 | ] |
43 | 36 | }, |
44 | 37 | { |
|
272 | 265 | "heading_collapsed": true |
273 | 266 | }, |
274 | 267 | "source": [ |
275 | | - "## Accessing attributes: getters and setters" |
| 268 | + "# Accessing attributes: getters and setters" |
276 | 269 | ] |
277 | 270 | }, |
278 | 271 | { |
|
446 | 439 | "heading_collapsed": true |
447 | 440 | }, |
448 | 441 | "source": [ |
449 | | - "## Constructor and string representation" |
| 442 | + "# Constructor and string representation" |
450 | 443 | ] |
451 | 444 | }, |
452 | 445 | { |
|
581 | 574 | "heading_collapsed": true |
582 | 575 | }, |
583 | 576 | "source": [ |
584 | | - "## Non-basic getters/setters" |
| 577 | + "# Non-basic getters/setters" |
585 | 578 | ] |
586 | 579 | }, |
587 | 580 | { |
|
785 | 778 | "heading_collapsed": true |
786 | 779 | }, |
787 | 780 | "source": [ |
788 | | - "## Interface versus implementation" |
| 781 | + "# Interface versus implementation" |
789 | 782 | ] |
790 | 783 | }, |
791 | 784 | { |
|
1180 | 1173 | "heading_collapsed": true |
1181 | 1174 | }, |
1182 | 1175 | "source": [ |
1183 | | - "## Inheritance" |
| 1176 | + "# Inheritance" |
1184 | 1177 | ] |
1185 | 1178 | }, |
1186 | 1179 | { |
|
1413 | 1406 | "heading_collapsed": true |
1414 | 1407 | }, |
1415 | 1408 | "source": [ |
1416 | | - "## Static and class methods, class attributes" |
| 1409 | + "# Static and class methods, class attributes" |
1417 | 1410 | ] |
1418 | 1411 | }, |
1419 | 1412 | { |
|
1701 | 1694 | "heading_collapsed": true |
1702 | 1695 | }, |
1703 | 1696 | "source": [ |
1704 | | - "## Introspection" |
| 1697 | + "# Introspection" |
1705 | 1698 | ] |
1706 | 1699 | }, |
1707 | 1700 | { |
|
2382 | 2375 | "cell_type": "markdown", |
2383 | 2376 | "metadata": {}, |
2384 | 2377 | "source": [ |
2385 | | - "## Using `__slots__`" |
| 2378 | + "# Using `__slots__`" |
2386 | 2379 | ] |
2387 | 2380 | }, |
2388 | 2381 | { |
|
2643 | 2636 | "name": "stdout", |
2644 | 2637 | "output_type": "stream", |
2645 | 2638 | "text": [ |
2646 | | - "2.1 µs ± 466 ns per loop (mean ± std. dev. of 7 runs, 100000 loops each)\n" |
| 2639 | + "623 ns ± 115 ns per loop (mean ± std. dev. of 7 runs, 1000000 loops each)\n" |
2647 | 2640 | ] |
2648 | 2641 | } |
2649 | 2642 | ], |
|
2665 | 2658 | "name": "stdout", |
2666 | 2659 | "output_type": "stream", |
2667 | 2660 | "text": [ |
2668 | | - "922 ns ± 169 ns per loop (mean ± std. dev. of 7 runs, 1000000 loops each)\n" |
| 2661 | + "900 ns ± 179 ns per loop (mean ± std. dev. of 7 runs, 1000000 loops each)\n" |
2669 | 2662 | ] |
2670 | 2663 | } |
2671 | 2664 | ], |
|
2689 | 2682 | "name": "stdout", |
2690 | 2683 | "output_type": "stream", |
2691 | 2684 | "text": [ |
2692 | | - "747 µs ± 169 µs per loop (mean ± std. dev. of 7 runs, 100 loops each)\n" |
| 2685 | + "1.08 ms ± 440 µs per loop (mean ± std. dev. of 7 runs, 1000 loops each)\n" |
2693 | 2686 | ] |
2694 | 2687 | } |
2695 | 2688 | ], |
|
2710 | 2703 | "name": "stdout", |
2711 | 2704 | "output_type": "stream", |
2712 | 2705 | "text": [ |
2713 | | - "1.67 ms ± 666 µs per loop (mean ± std. dev. of 7 runs, 100 loops each)\n" |
| 2706 | + "883 µs ± 127 µs per loop (mean ± std. dev. of 7 runs, 1000 loops each)\n" |
2714 | 2707 | ] |
2715 | 2708 | } |
2716 | 2709 | ], |
|
2728 | 2721 | "heading_collapsed": true |
2729 | 2722 | }, |
2730 | 2723 | "source": [ |
2731 | | - "## Wrapper classes or derivation by extension" |
| 2724 | + "# Wrapper classes or derivation by extension" |
2732 | 2725 | ] |
2733 | 2726 | }, |
2734 | 2727 | { |
|
3008 | 3001 | "name": "python", |
3009 | 3002 | "nbconvert_exporter": "python", |
3010 | 3003 | "pygments_lexer": "ipython3", |
3011 | | - "version": "3.7.5" |
3012 | | - } |
| 3004 | + "version": "3.7.9" |
| 3005 | + }, |
| 3006 | + "toc-autonumbering": true |
3013 | 3007 | }, |
3014 | 3008 | "nbformat": 4, |
3015 | 3009 | "nbformat_minor": 4 |
|
0 commit comments