├── LICENSE ├── README.md ├── chapter1 ├── _NOTES.md └── example_compat.py ├── chapter12 ├── _NOTES.md ├── primes.py ├── pytest_testing │ ├── primes.py │ └── test_primes.py ├── test_with_fake │ ├── mailer.py │ └── test_mailer.py ├── test_with_mock │ ├── mailer.py │ └── test_mailer.py ├── test_with_mock_patch │ ├── mailer.py │ └── test_mailer.py └── unittest_testing │ ├── primes.py │ └── test_primes.py ├── chapter13 ├── _NOTES.md ├── cprofile_decorator.py ├── cprofile_profiling.py ├── cyclic_references.py └── graphing_backreferences.py ├── chapter14 ├── _NOTES.md ├── memoize_decorator.py └── memoize_lru_cache.py ├── chapter15 ├── _NOTES.md ├── async_aiohttp.py ├── async_cooperative_wait.py ├── async_futures.py ├── async_print.py ├── asyncrates.py ├── multiprocessing_basics.py ├── multiprocessing_dummy.py ├── multiprocessing_forks.py ├── multiprocessing_pipes.py ├── multiprocessing_process_pool.py ├── multiprocessing_sharedctypes.py ├── synchronous.py ├── threads_exceptions_and_throttling.py ├── threads_one_per_item.py ├── threads_thread_pool.py └── threads_two_way_queues.py ├── chapter16 ├── _NOTES.md ├── subject_based_events.py ├── tkinter_gui.py ├── topic_based_events.py └── web_application.py ├── chapter17 ├── _NOTES.md ├── creational_borg.py ├── creational_singleton.py ├── interfaces_abc.py ├── interfaces_annotations.py ├── interfaces_zope.py ├── observer.py └── structural_adapter.py ├── chapter2 ├── Dockerfile ├── Dockerfile.alpine ├── Vagrantfile ├── _NOTES.md ├── docker-compose.networks-a.yml ├── docker-compose.networks-b.yml ├── docker-compose.services.yml ├── docker-compose.yml └── pythonstartup ├── chapter3 ├── _NOTES.md ├── context_manager_as_class.py ├── context_manager_as_function.py ├── decorators_repeat.py ├── decorators_repeat_with_metadata.py ├── enums_auto.py ├── enums_flags.py ├── enums_ints.py ├── enums_statuses.py ├── iterators_countdown.py ├── iterators_countdown_with_state.py ├── yield_chaining_generators.py ├── yield_fibonacci.py └── yield_psychologist.py ├── chapter4 ├── _NOTES.md ├── descriptors_init_on_access.py ├── descriptors_lazy_class_attribute.py ├── descriptors_revealing_access.py ├── distinctdict.py ├── folder.py ├── lists.py ├── pizza.py ├── properties_decorator.py ├── properties_explicit.py ├── vector.py └── vector_as_dataclass.py ├── chapter5 ├── _NOTES.md ├── hyllo.hy ├── instance_counting.py ├── metaclasses.py ├── nonzero.py └── py_hyllo.py ├── chapter6 ├── _NOTES.md ├── custom_container.py ├── name_mangling.py ├── options.py ├── private_attributes.py └── private_variables.py ├── chapter7 ├── _NOTES.md ├── example_with_readme_conversion │ ├── README.md │ ├── example_with_readme_conversion │ │ └── __init__.py │ └── setup.py ├── example_with_version │ ├── example_with_version │ │ └── __init__.py │ └── setup.py ├── explicit_namespace_package │ ├── acme │ │ ├── __init__.py │ │ └── templating │ │ │ └── __init__.py │ └── setup.py └── implicit_namespace_package │ ├── acme │ └── templating │ │ └── __init__.py │ └── setup.py ├── chapter8 ├── _NOTES.md └── webxample-package │ ├── MANIFEST.in │ ├── README.md │ ├── circus.ini │ ├── fabfile.py │ ├── fabutils.py │ ├── setup.py │ └── webxample │ ├── __init__.py │ ├── conf │ ├── __init__.py │ ├── settings.py │ ├── urls.py │ └── wsgi.py │ ├── locale │ ├── de │ │ └── LC_MESSAGES │ │ │ └── django.po │ ├── en │ │ └── LC_MESSAGES │ │ │ └── django.po │ └── pl │ │ └── LC_MESSAGES │ │ └── django.po │ ├── manage.py │ └── myapp │ ├── __init__.py │ ├── admin.py │ ├── apps.py │ ├── migrations │ └── __init__.py │ ├── models.py │ ├── static │ ├── js │ │ └── myapp.js │ └── sass │ │ └── myapp.scss │ ├── templates │ ├── index.html │ └── some_view.html │ ├── tests.py │ └── views.py └── chapter9 ├── _NOTES.md ├── cffi_qsort.py ├── ctypes_libc_printf.py ├── ctypes_qsort.py ├── fibonacci_c ├── fibonacci.c ├── fibonacci.egg-info │ ├── PKG-INFO │ ├── SOURCES.txt │ ├── dependency_links.txt │ └── top_level.txt └── setup.py ├── fibonacci_c_error_handling ├── fibonacci.c └── setup.py ├── fibonacci_c_releasing_gil ├── fibonacci.c └── setup.py ├── fibonacci_cython ├── fibonacci.pyx └── setup.py ├── fibonacci_cython_nogil ├── fibonacci.pyx └── setup.py ├── fibonacci_cythonize ├── fibonacci.py └── setup.py └── fibonacci_cythonize_optionally ├── fibonacci.py └── setup.py /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/README.md -------------------------------------------------------------------------------- /chapter1/_NOTES.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter1/_NOTES.md -------------------------------------------------------------------------------- /chapter1/example_compat.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter1/example_compat.py -------------------------------------------------------------------------------- /chapter12/_NOTES.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter12/_NOTES.md -------------------------------------------------------------------------------- /chapter12/primes.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter12/primes.py -------------------------------------------------------------------------------- /chapter12/pytest_testing/primes.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter12/pytest_testing/primes.py -------------------------------------------------------------------------------- /chapter12/pytest_testing/test_primes.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter12/pytest_testing/test_primes.py -------------------------------------------------------------------------------- /chapter12/test_with_fake/mailer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter12/test_with_fake/mailer.py -------------------------------------------------------------------------------- /chapter12/test_with_fake/test_mailer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter12/test_with_fake/test_mailer.py -------------------------------------------------------------------------------- /chapter12/test_with_mock/mailer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter12/test_with_mock/mailer.py -------------------------------------------------------------------------------- /chapter12/test_with_mock/test_mailer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter12/test_with_mock/test_mailer.py -------------------------------------------------------------------------------- /chapter12/test_with_mock_patch/mailer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter12/test_with_mock_patch/mailer.py -------------------------------------------------------------------------------- /chapter12/test_with_mock_patch/test_mailer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter12/test_with_mock_patch/test_mailer.py -------------------------------------------------------------------------------- /chapter12/unittest_testing/primes.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter12/unittest_testing/primes.py -------------------------------------------------------------------------------- /chapter12/unittest_testing/test_primes.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter12/unittest_testing/test_primes.py -------------------------------------------------------------------------------- /chapter13/_NOTES.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter13/_NOTES.md -------------------------------------------------------------------------------- /chapter13/cprofile_decorator.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter13/cprofile_decorator.py -------------------------------------------------------------------------------- /chapter13/cprofile_profiling.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter13/cprofile_profiling.py -------------------------------------------------------------------------------- /chapter13/cyclic_references.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter13/cyclic_references.py -------------------------------------------------------------------------------- /chapter13/graphing_backreferences.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter13/graphing_backreferences.py -------------------------------------------------------------------------------- /chapter14/_NOTES.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter14/_NOTES.md -------------------------------------------------------------------------------- /chapter14/memoize_decorator.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter14/memoize_decorator.py -------------------------------------------------------------------------------- /chapter14/memoize_lru_cache.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter14/memoize_lru_cache.py -------------------------------------------------------------------------------- /chapter15/_NOTES.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter15/_NOTES.md -------------------------------------------------------------------------------- /chapter15/async_aiohttp.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter15/async_aiohttp.py -------------------------------------------------------------------------------- /chapter15/async_cooperative_wait.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter15/async_cooperative_wait.py -------------------------------------------------------------------------------- /chapter15/async_futures.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter15/async_futures.py -------------------------------------------------------------------------------- /chapter15/async_print.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter15/async_print.py -------------------------------------------------------------------------------- /chapter15/asyncrates.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter15/asyncrates.py -------------------------------------------------------------------------------- /chapter15/multiprocessing_basics.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter15/multiprocessing_basics.py -------------------------------------------------------------------------------- /chapter15/multiprocessing_dummy.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter15/multiprocessing_dummy.py -------------------------------------------------------------------------------- /chapter15/multiprocessing_forks.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter15/multiprocessing_forks.py -------------------------------------------------------------------------------- /chapter15/multiprocessing_pipes.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter15/multiprocessing_pipes.py -------------------------------------------------------------------------------- /chapter15/multiprocessing_process_pool.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter15/multiprocessing_process_pool.py -------------------------------------------------------------------------------- /chapter15/multiprocessing_sharedctypes.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter15/multiprocessing_sharedctypes.py -------------------------------------------------------------------------------- /chapter15/synchronous.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter15/synchronous.py -------------------------------------------------------------------------------- /chapter15/threads_exceptions_and_throttling.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter15/threads_exceptions_and_throttling.py -------------------------------------------------------------------------------- /chapter15/threads_one_per_item.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter15/threads_one_per_item.py -------------------------------------------------------------------------------- /chapter15/threads_thread_pool.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter15/threads_thread_pool.py -------------------------------------------------------------------------------- /chapter15/threads_two_way_queues.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter15/threads_two_way_queues.py -------------------------------------------------------------------------------- /chapter16/_NOTES.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter16/_NOTES.md -------------------------------------------------------------------------------- /chapter16/subject_based_events.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter16/subject_based_events.py -------------------------------------------------------------------------------- /chapter16/tkinter_gui.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter16/tkinter_gui.py -------------------------------------------------------------------------------- /chapter16/topic_based_events.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter16/topic_based_events.py -------------------------------------------------------------------------------- /chapter16/web_application.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter16/web_application.py -------------------------------------------------------------------------------- /chapter17/_NOTES.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter17/_NOTES.md -------------------------------------------------------------------------------- /chapter17/creational_borg.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter17/creational_borg.py -------------------------------------------------------------------------------- /chapter17/creational_singleton.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter17/creational_singleton.py -------------------------------------------------------------------------------- /chapter17/interfaces_abc.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter17/interfaces_abc.py -------------------------------------------------------------------------------- /chapter17/interfaces_annotations.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter17/interfaces_annotations.py -------------------------------------------------------------------------------- /chapter17/interfaces_zope.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter17/interfaces_zope.py -------------------------------------------------------------------------------- /chapter17/observer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter17/observer.py -------------------------------------------------------------------------------- /chapter17/structural_adapter.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter17/structural_adapter.py -------------------------------------------------------------------------------- /chapter2/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter2/Dockerfile -------------------------------------------------------------------------------- /chapter2/Dockerfile.alpine: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter2/Dockerfile.alpine -------------------------------------------------------------------------------- /chapter2/Vagrantfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter2/Vagrantfile -------------------------------------------------------------------------------- /chapter2/_NOTES.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter2/_NOTES.md -------------------------------------------------------------------------------- /chapter2/docker-compose.networks-a.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter2/docker-compose.networks-a.yml -------------------------------------------------------------------------------- /chapter2/docker-compose.networks-b.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter2/docker-compose.networks-b.yml -------------------------------------------------------------------------------- /chapter2/docker-compose.services.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter2/docker-compose.services.yml -------------------------------------------------------------------------------- /chapter2/docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter2/docker-compose.yml -------------------------------------------------------------------------------- /chapter2/pythonstartup: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter2/pythonstartup -------------------------------------------------------------------------------- /chapter3/_NOTES.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter3/_NOTES.md -------------------------------------------------------------------------------- /chapter3/context_manager_as_class.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter3/context_manager_as_class.py -------------------------------------------------------------------------------- /chapter3/context_manager_as_function.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter3/context_manager_as_function.py -------------------------------------------------------------------------------- /chapter3/decorators_repeat.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter3/decorators_repeat.py -------------------------------------------------------------------------------- /chapter3/decorators_repeat_with_metadata.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter3/decorators_repeat_with_metadata.py -------------------------------------------------------------------------------- /chapter3/enums_auto.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter3/enums_auto.py -------------------------------------------------------------------------------- /chapter3/enums_flags.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter3/enums_flags.py -------------------------------------------------------------------------------- /chapter3/enums_ints.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter3/enums_ints.py -------------------------------------------------------------------------------- /chapter3/enums_statuses.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter3/enums_statuses.py -------------------------------------------------------------------------------- /chapter3/iterators_countdown.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter3/iterators_countdown.py -------------------------------------------------------------------------------- /chapter3/iterators_countdown_with_state.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter3/iterators_countdown_with_state.py -------------------------------------------------------------------------------- /chapter3/yield_chaining_generators.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter3/yield_chaining_generators.py -------------------------------------------------------------------------------- /chapter3/yield_fibonacci.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter3/yield_fibonacci.py -------------------------------------------------------------------------------- /chapter3/yield_psychologist.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter3/yield_psychologist.py -------------------------------------------------------------------------------- /chapter4/_NOTES.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter4/_NOTES.md -------------------------------------------------------------------------------- /chapter4/descriptors_init_on_access.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter4/descriptors_init_on_access.py -------------------------------------------------------------------------------- /chapter4/descriptors_lazy_class_attribute.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter4/descriptors_lazy_class_attribute.py -------------------------------------------------------------------------------- /chapter4/descriptors_revealing_access.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter4/descriptors_revealing_access.py -------------------------------------------------------------------------------- /chapter4/distinctdict.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter4/distinctdict.py -------------------------------------------------------------------------------- /chapter4/folder.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter4/folder.py -------------------------------------------------------------------------------- /chapter4/lists.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter4/lists.py -------------------------------------------------------------------------------- /chapter4/pizza.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter4/pizza.py -------------------------------------------------------------------------------- /chapter4/properties_decorator.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter4/properties_decorator.py -------------------------------------------------------------------------------- /chapter4/properties_explicit.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter4/properties_explicit.py -------------------------------------------------------------------------------- /chapter4/vector.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter4/vector.py -------------------------------------------------------------------------------- /chapter4/vector_as_dataclass.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter4/vector_as_dataclass.py -------------------------------------------------------------------------------- /chapter5/_NOTES.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter5/_NOTES.md -------------------------------------------------------------------------------- /chapter5/hyllo.hy: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter5/hyllo.hy -------------------------------------------------------------------------------- /chapter5/instance_counting.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter5/instance_counting.py -------------------------------------------------------------------------------- /chapter5/metaclasses.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter5/metaclasses.py -------------------------------------------------------------------------------- /chapter5/nonzero.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter5/nonzero.py -------------------------------------------------------------------------------- /chapter5/py_hyllo.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter5/py_hyllo.py -------------------------------------------------------------------------------- /chapter6/_NOTES.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter6/_NOTES.md -------------------------------------------------------------------------------- /chapter6/custom_container.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter6/custom_container.py -------------------------------------------------------------------------------- /chapter6/name_mangling.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter6/name_mangling.py -------------------------------------------------------------------------------- /chapter6/options.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter6/options.py -------------------------------------------------------------------------------- /chapter6/private_attributes.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter6/private_attributes.py -------------------------------------------------------------------------------- /chapter6/private_variables.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter6/private_variables.py -------------------------------------------------------------------------------- /chapter7/_NOTES.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter7/_NOTES.md -------------------------------------------------------------------------------- /chapter7/example_with_readme_conversion/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter7/example_with_readme_conversion/README.md -------------------------------------------------------------------------------- /chapter7/example_with_readme_conversion/example_with_readme_conversion/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter7/example_with_readme_conversion/example_with_readme_conversion/__init__.py -------------------------------------------------------------------------------- /chapter7/example_with_readme_conversion/setup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter7/example_with_readme_conversion/setup.py -------------------------------------------------------------------------------- /chapter7/example_with_version/example_with_version/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter7/example_with_version/example_with_version/__init__.py -------------------------------------------------------------------------------- /chapter7/example_with_version/setup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter7/example_with_version/setup.py -------------------------------------------------------------------------------- /chapter7/explicit_namespace_package/acme/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter7/explicit_namespace_package/acme/__init__.py -------------------------------------------------------------------------------- /chapter7/explicit_namespace_package/acme/templating/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter7/explicit_namespace_package/acme/templating/__init__.py -------------------------------------------------------------------------------- /chapter7/explicit_namespace_package/setup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter7/explicit_namespace_package/setup.py -------------------------------------------------------------------------------- /chapter7/implicit_namespace_package/acme/templating/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter7/implicit_namespace_package/acme/templating/__init__.py -------------------------------------------------------------------------------- /chapter7/implicit_namespace_package/setup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter7/implicit_namespace_package/setup.py -------------------------------------------------------------------------------- /chapter8/_NOTES.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter8/_NOTES.md -------------------------------------------------------------------------------- /chapter8/webxample-package/MANIFEST.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter8/webxample-package/MANIFEST.in -------------------------------------------------------------------------------- /chapter8/webxample-package/README.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /chapter8/webxample-package/circus.ini: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter8/webxample-package/circus.ini -------------------------------------------------------------------------------- /chapter8/webxample-package/fabfile.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter8/webxample-package/fabfile.py -------------------------------------------------------------------------------- /chapter8/webxample-package/fabutils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter8/webxample-package/fabutils.py -------------------------------------------------------------------------------- /chapter8/webxample-package/setup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter8/webxample-package/setup.py -------------------------------------------------------------------------------- /chapter8/webxample-package/webxample/__init__.py: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /chapter8/webxample-package/webxample/conf/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /chapter8/webxample-package/webxample/conf/settings.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter8/webxample-package/webxample/conf/settings.py -------------------------------------------------------------------------------- /chapter8/webxample-package/webxample/conf/urls.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter8/webxample-package/webxample/conf/urls.py -------------------------------------------------------------------------------- /chapter8/webxample-package/webxample/conf/wsgi.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter8/webxample-package/webxample/conf/wsgi.py -------------------------------------------------------------------------------- /chapter8/webxample-package/webxample/locale/de/LC_MESSAGES/django.po: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter8/webxample-package/webxample/locale/de/LC_MESSAGES/django.po -------------------------------------------------------------------------------- /chapter8/webxample-package/webxample/locale/en/LC_MESSAGES/django.po: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter8/webxample-package/webxample/locale/en/LC_MESSAGES/django.po -------------------------------------------------------------------------------- /chapter8/webxample-package/webxample/locale/pl/LC_MESSAGES/django.po: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter8/webxample-package/webxample/locale/pl/LC_MESSAGES/django.po -------------------------------------------------------------------------------- /chapter8/webxample-package/webxample/manage.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter8/webxample-package/webxample/manage.py -------------------------------------------------------------------------------- /chapter8/webxample-package/webxample/myapp/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /chapter8/webxample-package/webxample/myapp/admin.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter8/webxample-package/webxample/myapp/admin.py -------------------------------------------------------------------------------- /chapter8/webxample-package/webxample/myapp/apps.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter8/webxample-package/webxample/myapp/apps.py -------------------------------------------------------------------------------- /chapter8/webxample-package/webxample/myapp/migrations/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /chapter8/webxample-package/webxample/myapp/models.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter8/webxample-package/webxample/myapp/models.py -------------------------------------------------------------------------------- /chapter8/webxample-package/webxample/myapp/static/js/myapp.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /chapter8/webxample-package/webxample/myapp/static/sass/myapp.scss: -------------------------------------------------------------------------------- 1 | #foo { 2 | color: red; 3 | } 4 | -------------------------------------------------------------------------------- /chapter8/webxample-package/webxample/myapp/templates/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter8/webxample-package/webxample/myapp/templates/index.html -------------------------------------------------------------------------------- /chapter8/webxample-package/webxample/myapp/templates/some_view.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter8/webxample-package/webxample/myapp/templates/some_view.html -------------------------------------------------------------------------------- /chapter8/webxample-package/webxample/myapp/tests.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter8/webxample-package/webxample/myapp/tests.py -------------------------------------------------------------------------------- /chapter8/webxample-package/webxample/myapp/views.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter8/webxample-package/webxample/myapp/views.py -------------------------------------------------------------------------------- /chapter9/_NOTES.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter9/_NOTES.md -------------------------------------------------------------------------------- /chapter9/cffi_qsort.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter9/cffi_qsort.py -------------------------------------------------------------------------------- /chapter9/ctypes_libc_printf.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter9/ctypes_libc_printf.py -------------------------------------------------------------------------------- /chapter9/ctypes_qsort.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter9/ctypes_qsort.py -------------------------------------------------------------------------------- /chapter9/fibonacci_c/fibonacci.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter9/fibonacci_c/fibonacci.c -------------------------------------------------------------------------------- /chapter9/fibonacci_c/fibonacci.egg-info/PKG-INFO: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter9/fibonacci_c/fibonacci.egg-info/PKG-INFO -------------------------------------------------------------------------------- /chapter9/fibonacci_c/fibonacci.egg-info/SOURCES.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter9/fibonacci_c/fibonacci.egg-info/SOURCES.txt -------------------------------------------------------------------------------- /chapter9/fibonacci_c/fibonacci.egg-info/dependency_links.txt: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /chapter9/fibonacci_c/fibonacci.egg-info/top_level.txt: -------------------------------------------------------------------------------- 1 | fibonacci 2 | -------------------------------------------------------------------------------- /chapter9/fibonacci_c/setup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter9/fibonacci_c/setup.py -------------------------------------------------------------------------------- /chapter9/fibonacci_c_error_handling/fibonacci.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter9/fibonacci_c_error_handling/fibonacci.c -------------------------------------------------------------------------------- /chapter9/fibonacci_c_error_handling/setup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter9/fibonacci_c_error_handling/setup.py -------------------------------------------------------------------------------- /chapter9/fibonacci_c_releasing_gil/fibonacci.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter9/fibonacci_c_releasing_gil/fibonacci.c -------------------------------------------------------------------------------- /chapter9/fibonacci_c_releasing_gil/setup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter9/fibonacci_c_releasing_gil/setup.py -------------------------------------------------------------------------------- /chapter9/fibonacci_cython/fibonacci.pyx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter9/fibonacci_cython/fibonacci.pyx -------------------------------------------------------------------------------- /chapter9/fibonacci_cython/setup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter9/fibonacci_cython/setup.py -------------------------------------------------------------------------------- /chapter9/fibonacci_cython_nogil/fibonacci.pyx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter9/fibonacci_cython_nogil/fibonacci.pyx -------------------------------------------------------------------------------- /chapter9/fibonacci_cython_nogil/setup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter9/fibonacci_cython_nogil/setup.py -------------------------------------------------------------------------------- /chapter9/fibonacci_cythonize/fibonacci.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter9/fibonacci_cythonize/fibonacci.py -------------------------------------------------------------------------------- /chapter9/fibonacci_cythonize/setup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter9/fibonacci_cythonize/setup.py -------------------------------------------------------------------------------- /chapter9/fibonacci_cythonize_optionally/fibonacci.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter9/fibonacci_cythonize_optionally/fibonacci.py -------------------------------------------------------------------------------- /chapter9/fibonacci_cythonize_optionally/setup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Expert-Python-Programming-Third-Edition/HEAD/chapter9/fibonacci_cythonize_optionally/setup.py --------------------------------------------------------------------------------