├── .github └── workflows │ └── jekyll-gh-pages.yml ├── .gitignore ├── 01_Introduction_to_Python ├── pyscript_example_1.html └── pyscript_example_2.html ├── 02_The_Python_Interpreter └── pyscript_hello_world.html ├── 03_The_Python_Language ├── argument_collector_parameters.py ├── assignment_expressions.py ├── assignment_statements.py ├── attributes_of_function_objects_docstrings.py ├── attributes_of_function_objects_other.py ├── beware_of_using_unicode_characters_that_are_homoglyphs.py ├── break_statement.py ├── calling_functions_keyword_only_parameters.py ├── calling_functions_positional_and_named_arguments.py ├── calling_functions_semantics_of_argument_passing.py ├── comparison_chaining.py ├── continue_statement.py ├── control_flow_statements.py ├── count_trues.py ├── dict_comprehensions.py ├── dictionaries.py ├── dictionary_operations.py ├── ellipsis.py ├── else_clause_on_loop_statements.py ├── for_statement.py ├── function_annotations.py ├── functions.py ├── generators.py ├── generators_yield_from.py ├── indexing_a_sequence.py ├── iterators.py ├── lambda_expressions.py ├── list_comprehensions.py ├── lists.py ├── literals.py ├── match_statement_as_patterns.py ├── match_statement_capture_patterns.py ├── match_statement_class_patterns.py ├── match_statement_configuring_classes_for_positional_matching.py ├── match_statement_guards.py ├── match_statement_literal_patterns.py ├── match_statement_mapping_patterns.py ├── match_statement_or_patterns.py ├── match_statement_sequence_patterns.py ├── match_statement_value_patterns.py ├── match_statement_value_patterns_global_access.py ├── match_statement_wildcard_pattern.py ├── mutable_default_parameter_values.py ├── namespaces_global_statement.py ├── namespaces_nested_functions_and_nested_scopes.py ├── numbers.py ├── pass_statement.py ├── recursion.py ├── sequences_bytearray.py ├── sequences_bytes.py ├── sequences_lists.py ├── sequences_strings.py ├── sequences_tuples.py ├── set_comprehensions.py ├── set_operations.py ├── sets.py ├── slicing_a_sequence.py ├── sorting_a_list.py ├── strict_generator.py ├── underscores_in_numeric_literals.py ├── unicode_normalization_can_create_unintended_overlap_between_variables.py └── while_statement.py ├── 04_Object_Oriented_Python ├── attribute_reference_basics.py ├── bound_and_unbound_methods.py ├── class_body.py ├── class_level_methods.py ├── decorators_functools_wraps.py ├── decorators_showdoc.py ├── descriptors.py ├── enum_simple_example.py ├── enum_stat_file_permissions.py ├── enum_using_ints.py ├── factory_function.py ├── getattribute_list_no_append.py ├── inheritance_cooperative_superclass_method_calling.py ├── inheritance_delegating_to_superclass_methods.py ├── inheritance_overriding_attributes.py ├── instances.py ├── metaclass_alternatives.py ├── per_instance_methods.py ├── point_using_dataclass.py ├── point_using_dataclass_with_post_init.py ├── point_using_metaclass.py ├── properties.py ├── properties_and_inheritance.py ├── simple_bunch.py ├── singleton.py └── slots_rectangle.py ├── 05_Type_Annotations ├── TYPE_CHECKING_usage.py ├── examples_cast.py ├── examples_overload.py ├── forward_referencing_types_from_future_import_annotations.py ├── forward_referencing_types_not_yet_defined.py ├── generics_and_type_vars_accumulator.py ├── generics_and_type_vars_color_lookup.py ├── generics_and_type_vars_type_var_defns.py ├── namedtuple.py ├── newtype.py ├── protocols.py ├── protocols_roman_numeral.py ├── type_annotations_and_the_typing_module.py ├── typealias.py ├── typeddict.py ├── typeddict_generic.py ├── typeddict_required.py ├── typing_syntax_changes_in_python_39_and_310.py └── using_type_annotations_at_runtime.py ├── 06_Exceptions ├── cross_product.py ├── custom_exception_class.py ├── enclosing_tag_context_manager_class.py ├── enclosing_tag_context_manager_using_contextlib_contextmanager.py ├── exception_add_note.py ├── exception_group.py ├── exception_propagation_at_work.py ├── exception_wrapping_other_exception.py ├── exception_wrapping_raise_from_none.py ├── logging_example.py ├── read_or_default.py ├── safe_divide.py ├── the_try_statement.py ├── try_calling.py └── try_finally.py ├── 07_Modules ├── attributes_of_module_objects.py ├── custom_importers_import_hooks.py ├── mymodule.py └── python_builtins.py ├── 08_Core_Builtins_and_Standard_Library_Modules ├── argparse_example.py ├── collections_chain_map_equivalent.py ├── collections_defaultdict_equivalent.py ├── decorate_sort_undecorate.py ├── exec_with_data.py ├── functools_reduce_equivalent.py ├── greet.py ├── iter_examples.py ├── itertools_count_equivalent.py ├── itertools_cycle_equivalent.py ├── itertools_dropwhile_equivalent.py ├── itertools_groupby_example.py ├── itertools_islice_equivalent.py ├── itertools_repeat_unbounded.py ├── itertools_starmap_equivalent.py ├── itertools_takewhile_equivalent.py ├── keydefaultdict.py ├── safer_eval.py └── sys_ps1_ps2.py ├── 09_Strings_and_Things ├── digit_grouping.py ├── field_width.py ├── format_type.py ├── formatted_string_literals.py ├── formatting_of_user_coded_classes.py ├── legacy_string_formatting_with_percent.py ├── nested_format_specifications.py ├── precision_specification.py ├── str_split.py ├── string_formatting.py ├── unicodedata_module.py └── values_by_argument_lookup.py ├── 10_Regular_Expressions ├── afile.txt ├── anchoring_at_string_start_and_end.py ├── match_vs_search.py ├── re_and_the_walrus_operator.py ├── re_findall_1.py ├── re_findall_2.py ├── re_match.py ├── re_optional_flags.py ├── re_search.py └── res_and_bytes_vs_str.py ├── 11_File_and_Text_Operations ├── console_io_msvcrt_module.py ├── errno_module.py ├── fileinput_module.py ├── fnmatch_translate.py ├── gettext_install.py ├── gettext_module.py ├── locale_format_string.py ├── locale_strxfrm.py ├── os_path_expand_vars.py ├── os_path_join.py ├── os_stat.py ├── pathlib_glob.py ├── pathlib_mkdir.py ├── pathlib_replace.py ├── pathlib_touch.py ├── pian.po ├── print_function.py ├── shutil_copytree.py ├── standard_input.py ├── tempfile_module.py └── zipfile_module.py ├── 12_Persistence_and_Databases ├── csv_colors.py ├── dbm_find.py ├── dbm_save.py ├── json_find.py ├── json_save.py ├── pickle_find.py ├── pickle_save.py ├── shelve_find.py ├── shelve_save.py ├── sql_find.py └── sql_save.py ├── 13_Time_Operations ├── sched_module.py └── zoneinfo_module.py ├── 14_Contolling_Execution ├── code_object_type.py ├── gc_module.py └── weakref_module.py ├── 15_Threads_and_Processes ├── barrier_objects.py ├── concurrent_futures_as_completed.py ├── concurrent_futures_map.py ├── condition_objects.py ├── event_objects.py ├── manager_list.py ├── mmap_ipc_reader.py ├── mmap_ipc_writer.py ├── multiprocessing_array.py ├── multiprocessing_manager.py ├── multiprocessing_pool.py ├── multiprocessing_threadpool.py ├── process_environment.py ├── queue_eafp.py ├── queue_lbyl.py ├── rlock_objects.py ├── thread_local_storage.py ├── threaded_program_architecture_complete.py ├── threaded_program_architecture_external_interfacing.py ├── threaded_program_architecture_serializer.py ├── threaded_program_architecture_worker.py └── timer_objects.py ├── 16_Numeric_Processing ├── decimal_module.py ├── dont_use_a_float_as_a_loop_control_variable.py ├── dont_use_eqeq_between_floats_or_complex_numbers.py ├── floating_point_numbers.py ├── fractions_module.py ├── math_cmath_atan2.py ├── numpy_array.py ├── numpy_matrix_operations.py └── numpy_shape_indexing_and_slicing.py ├── 17_Testing_Debugging_and_Optimizing ├── building_up_a_string_from_pieces.py ├── inspect_example.py ├── inspect_getargvalues.py ├── inspect_getmro.py ├── inspect_stack.py ├── large_scale_optimization.py ├── memoizing.py ├── mod.py ├── nose2_example.py ├── optimizing_loops.py ├── pdb_example.py ├── pre_computing_a_lookup_table.py ├── pytest_example.py ├── pytest_parametrize.py ├── short_circuiting_of_iterators.py ├── using_doctest.py ├── using_unittest.py └── warnings_warn_to_unicode.py ├── 18_Basic_Networking ├── tcpclient.py ├── tcpclient6.py ├── tcpserver.py ├── tcpserver6.py ├── test.html ├── udpclient.py ├── udpclient6.py ├── udpserver.py └── udpserver6.py ├── 19_client_side_network_protocol_modules ├── third_party_requests_package.py ├── urllib_parse_module.py └── urllib_request_urlopen_example.py ├── 20_serving_http ├── client1.py ├── clitest.py ├── debug_test.py ├── flask_example.py ├── index.html ├── models.py ├── server1.py └── server2.py ├── 21_Email_MIME_and_Other_Network_Encodings └── email_example.py ├── 22_Structured_Text_HTML ├── bs4_attribute_references_on_bs4_and_tag.py ├── bs4_building_html.py ├── bs4_css_selectors.py ├── bs4_editing_and_creating_html.py ├── bs4_getting_an_actual_string.py ├── bs4_html_parsing_example.py ├── bs4_indexing_instances_of_tag.py ├── bs4_search_methods.py ├── bs4_unicode_and_encoding.py ├── bs4_which_parser.py └── jinja2_building_html.py ├── 23_Structured_Text_XML ├── building_an_elementtree_from_scratch.py ├── menu.csv ├── parsing_xml_iteratively_1.py ├── parsing_xml_iteratively_2.py ├── parsing_xml_with_elementtree_parse.py └── simple.xml ├── 24_Distributing_Extensions_and_Programs └── flask_setup.py ├── 25_Extending_and_Embedding_Classic_Python ├── hello │ ├── hello.c │ ├── hello_demo.py │ └── setup.py ├── intpair │ ├── intpair.c │ ├── intpair_demo.py │ └── setup.py └── merge │ ├── merge.c │ ├── merge_demo.py │ └── setup.py ├── README.md ├── chapters ├── 24 Packaging Programs and Extensions.pdf └── 25 Extending and Embedding Classic Python.pdf ├── static └── Pian_cover2.jpg └── test └── check_snippets.py /.github/workflows/jekyll-gh-pages.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/.github/workflows/jekyll-gh-pages.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/.gitignore -------------------------------------------------------------------------------- /01_Introduction_to_Python/pyscript_example_1.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/01_Introduction_to_Python/pyscript_example_1.html -------------------------------------------------------------------------------- /01_Introduction_to_Python/pyscript_example_2.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/01_Introduction_to_Python/pyscript_example_2.html -------------------------------------------------------------------------------- /02_The_Python_Interpreter/pyscript_hello_world.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/02_The_Python_Interpreter/pyscript_hello_world.html -------------------------------------------------------------------------------- /03_The_Python_Language/argument_collector_parameters.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/03_The_Python_Language/argument_collector_parameters.py -------------------------------------------------------------------------------- /03_The_Python_Language/assignment_expressions.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/03_The_Python_Language/assignment_expressions.py -------------------------------------------------------------------------------- /03_The_Python_Language/assignment_statements.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/03_The_Python_Language/assignment_statements.py -------------------------------------------------------------------------------- /03_The_Python_Language/attributes_of_function_objects_docstrings.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/03_The_Python_Language/attributes_of_function_objects_docstrings.py -------------------------------------------------------------------------------- /03_The_Python_Language/attributes_of_function_objects_other.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/03_The_Python_Language/attributes_of_function_objects_other.py -------------------------------------------------------------------------------- /03_The_Python_Language/beware_of_using_unicode_characters_that_are_homoglyphs.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/03_The_Python_Language/beware_of_using_unicode_characters_that_are_homoglyphs.py -------------------------------------------------------------------------------- /03_The_Python_Language/break_statement.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/03_The_Python_Language/break_statement.py -------------------------------------------------------------------------------- /03_The_Python_Language/calling_functions_keyword_only_parameters.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/03_The_Python_Language/calling_functions_keyword_only_parameters.py -------------------------------------------------------------------------------- /03_The_Python_Language/calling_functions_positional_and_named_arguments.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/03_The_Python_Language/calling_functions_positional_and_named_arguments.py -------------------------------------------------------------------------------- /03_The_Python_Language/calling_functions_semantics_of_argument_passing.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/03_The_Python_Language/calling_functions_semantics_of_argument_passing.py -------------------------------------------------------------------------------- /03_The_Python_Language/comparison_chaining.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/03_The_Python_Language/comparison_chaining.py -------------------------------------------------------------------------------- /03_The_Python_Language/continue_statement.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/03_The_Python_Language/continue_statement.py -------------------------------------------------------------------------------- /03_The_Python_Language/control_flow_statements.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/03_The_Python_Language/control_flow_statements.py -------------------------------------------------------------------------------- /03_The_Python_Language/count_trues.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/03_The_Python_Language/count_trues.py -------------------------------------------------------------------------------- /03_The_Python_Language/dict_comprehensions.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/03_The_Python_Language/dict_comprehensions.py -------------------------------------------------------------------------------- /03_The_Python_Language/dictionaries.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/03_The_Python_Language/dictionaries.py -------------------------------------------------------------------------------- /03_The_Python_Language/dictionary_operations.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/03_The_Python_Language/dictionary_operations.py -------------------------------------------------------------------------------- /03_The_Python_Language/ellipsis.py: -------------------------------------------------------------------------------- 1 | tally = dict.fromkeys(['A', 'B', None, ...], 0) 2 | -------------------------------------------------------------------------------- /03_The_Python_Language/else_clause_on_loop_statements.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/03_The_Python_Language/else_clause_on_loop_statements.py -------------------------------------------------------------------------------- /03_The_Python_Language/for_statement.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/03_The_Python_Language/for_statement.py -------------------------------------------------------------------------------- /03_The_Python_Language/function_annotations.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/03_The_Python_Language/function_annotations.py -------------------------------------------------------------------------------- /03_The_Python_Language/functions.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/03_The_Python_Language/functions.py -------------------------------------------------------------------------------- /03_The_Python_Language/generators.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/03_The_Python_Language/generators.py -------------------------------------------------------------------------------- /03_The_Python_Language/generators_yield_from.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/03_The_Python_Language/generators_yield_from.py -------------------------------------------------------------------------------- /03_The_Python_Language/indexing_a_sequence.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/03_The_Python_Language/indexing_a_sequence.py -------------------------------------------------------------------------------- /03_The_Python_Language/iterators.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/03_The_Python_Language/iterators.py -------------------------------------------------------------------------------- /03_The_Python_Language/lambda_expressions.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/03_The_Python_Language/lambda_expressions.py -------------------------------------------------------------------------------- /03_The_Python_Language/list_comprehensions.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/03_The_Python_Language/list_comprehensions.py -------------------------------------------------------------------------------- /03_The_Python_Language/lists.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/03_The_Python_Language/lists.py -------------------------------------------------------------------------------- /03_The_Python_Language/literals.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/03_The_Python_Language/literals.py -------------------------------------------------------------------------------- /03_The_Python_Language/match_statement_as_patterns.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/03_The_Python_Language/match_statement_as_patterns.py -------------------------------------------------------------------------------- /03_The_Python_Language/match_statement_capture_patterns.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/03_The_Python_Language/match_statement_capture_patterns.py -------------------------------------------------------------------------------- /03_The_Python_Language/match_statement_class_patterns.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/03_The_Python_Language/match_statement_class_patterns.py -------------------------------------------------------------------------------- /03_The_Python_Language/match_statement_configuring_classes_for_positional_matching.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/03_The_Python_Language/match_statement_configuring_classes_for_positional_matching.py -------------------------------------------------------------------------------- /03_The_Python_Language/match_statement_guards.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/03_The_Python_Language/match_statement_guards.py -------------------------------------------------------------------------------- /03_The_Python_Language/match_statement_literal_patterns.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/03_The_Python_Language/match_statement_literal_patterns.py -------------------------------------------------------------------------------- /03_The_Python_Language/match_statement_mapping_patterns.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/03_The_Python_Language/match_statement_mapping_patterns.py -------------------------------------------------------------------------------- /03_The_Python_Language/match_statement_or_patterns.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/03_The_Python_Language/match_statement_or_patterns.py -------------------------------------------------------------------------------- /03_The_Python_Language/match_statement_sequence_patterns.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/03_The_Python_Language/match_statement_sequence_patterns.py -------------------------------------------------------------------------------- /03_The_Python_Language/match_statement_value_patterns.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/03_The_Python_Language/match_statement_value_patterns.py -------------------------------------------------------------------------------- /03_The_Python_Language/match_statement_value_patterns_global_access.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/03_The_Python_Language/match_statement_value_patterns_global_access.py -------------------------------------------------------------------------------- /03_The_Python_Language/match_statement_wildcard_pattern.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/03_The_Python_Language/match_statement_wildcard_pattern.py -------------------------------------------------------------------------------- /03_The_Python_Language/mutable_default_parameter_values.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/03_The_Python_Language/mutable_default_parameter_values.py -------------------------------------------------------------------------------- /03_The_Python_Language/namespaces_global_statement.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/03_The_Python_Language/namespaces_global_statement.py -------------------------------------------------------------------------------- /03_The_Python_Language/namespaces_nested_functions_and_nested_scopes.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/03_The_Python_Language/namespaces_nested_functions_and_nested_scopes.py -------------------------------------------------------------------------------- /03_The_Python_Language/numbers.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/03_The_Python_Language/numbers.py -------------------------------------------------------------------------------- /03_The_Python_Language/pass_statement.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/03_The_Python_Language/pass_statement.py -------------------------------------------------------------------------------- /03_The_Python_Language/recursion.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/03_The_Python_Language/recursion.py -------------------------------------------------------------------------------- /03_The_Python_Language/sequences_bytearray.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/03_The_Python_Language/sequences_bytearray.py -------------------------------------------------------------------------------- /03_The_Python_Language/sequences_bytes.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/03_The_Python_Language/sequences_bytes.py -------------------------------------------------------------------------------- /03_The_Python_Language/sequences_lists.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/03_The_Python_Language/sequences_lists.py -------------------------------------------------------------------------------- /03_The_Python_Language/sequences_strings.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/03_The_Python_Language/sequences_strings.py -------------------------------------------------------------------------------- /03_The_Python_Language/sequences_tuples.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/03_The_Python_Language/sequences_tuples.py -------------------------------------------------------------------------------- /03_The_Python_Language/set_comprehensions.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/03_The_Python_Language/set_comprehensions.py -------------------------------------------------------------------------------- /03_The_Python_Language/set_operations.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/03_The_Python_Language/set_operations.py -------------------------------------------------------------------------------- /03_The_Python_Language/sets.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/03_The_Python_Language/sets.py -------------------------------------------------------------------------------- /03_The_Python_Language/slicing_a_sequence.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/03_The_Python_Language/slicing_a_sequence.py -------------------------------------------------------------------------------- /03_The_Python_Language/sorting_a_list.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/03_The_Python_Language/sorting_a_list.py -------------------------------------------------------------------------------- /03_The_Python_Language/strict_generator.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/03_The_Python_Language/strict_generator.py -------------------------------------------------------------------------------- /03_The_Python_Language/underscores_in_numeric_literals.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/03_The_Python_Language/underscores_in_numeric_literals.py -------------------------------------------------------------------------------- /03_The_Python_Language/unicode_normalization_can_create_unintended_overlap_between_variables.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/03_The_Python_Language/unicode_normalization_can_create_unintended_overlap_between_variables.py -------------------------------------------------------------------------------- /03_The_Python_Language/while_statement.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/03_The_Python_Language/while_statement.py -------------------------------------------------------------------------------- /04_Object_Oriented_Python/attribute_reference_basics.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/04_Object_Oriented_Python/attribute_reference_basics.py -------------------------------------------------------------------------------- /04_Object_Oriented_Python/bound_and_unbound_methods.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/04_Object_Oriented_Python/bound_and_unbound_methods.py -------------------------------------------------------------------------------- /04_Object_Oriented_Python/class_body.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/04_Object_Oriented_Python/class_body.py -------------------------------------------------------------------------------- /04_Object_Oriented_Python/class_level_methods.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/04_Object_Oriented_Python/class_level_methods.py -------------------------------------------------------------------------------- /04_Object_Oriented_Python/decorators_functools_wraps.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/04_Object_Oriented_Python/decorators_functools_wraps.py -------------------------------------------------------------------------------- /04_Object_Oriented_Python/decorators_showdoc.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/04_Object_Oriented_Python/decorators_showdoc.py -------------------------------------------------------------------------------- /04_Object_Oriented_Python/descriptors.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/04_Object_Oriented_Python/descriptors.py -------------------------------------------------------------------------------- /04_Object_Oriented_Python/enum_simple_example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/04_Object_Oriented_Python/enum_simple_example.py -------------------------------------------------------------------------------- /04_Object_Oriented_Python/enum_stat_file_permissions.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/04_Object_Oriented_Python/enum_stat_file_permissions.py -------------------------------------------------------------------------------- /04_Object_Oriented_Python/enum_using_ints.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/04_Object_Oriented_Python/enum_using_ints.py -------------------------------------------------------------------------------- /04_Object_Oriented_Python/factory_function.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/04_Object_Oriented_Python/factory_function.py -------------------------------------------------------------------------------- /04_Object_Oriented_Python/getattribute_list_no_append.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/04_Object_Oriented_Python/getattribute_list_no_append.py -------------------------------------------------------------------------------- /04_Object_Oriented_Python/inheritance_cooperative_superclass_method_calling.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/04_Object_Oriented_Python/inheritance_cooperative_superclass_method_calling.py -------------------------------------------------------------------------------- /04_Object_Oriented_Python/inheritance_delegating_to_superclass_methods.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/04_Object_Oriented_Python/inheritance_delegating_to_superclass_methods.py -------------------------------------------------------------------------------- /04_Object_Oriented_Python/inheritance_overriding_attributes.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/04_Object_Oriented_Python/inheritance_overriding_attributes.py -------------------------------------------------------------------------------- /04_Object_Oriented_Python/instances.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/04_Object_Oriented_Python/instances.py -------------------------------------------------------------------------------- /04_Object_Oriented_Python/metaclass_alternatives.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/04_Object_Oriented_Python/metaclass_alternatives.py -------------------------------------------------------------------------------- /04_Object_Oriented_Python/per_instance_methods.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/04_Object_Oriented_Python/per_instance_methods.py -------------------------------------------------------------------------------- /04_Object_Oriented_Python/point_using_dataclass.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/04_Object_Oriented_Python/point_using_dataclass.py -------------------------------------------------------------------------------- /04_Object_Oriented_Python/point_using_dataclass_with_post_init.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/04_Object_Oriented_Python/point_using_dataclass_with_post_init.py -------------------------------------------------------------------------------- /04_Object_Oriented_Python/point_using_metaclass.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/04_Object_Oriented_Python/point_using_metaclass.py -------------------------------------------------------------------------------- /04_Object_Oriented_Python/properties.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/04_Object_Oriented_Python/properties.py -------------------------------------------------------------------------------- /04_Object_Oriented_Python/properties_and_inheritance.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/04_Object_Oriented_Python/properties_and_inheritance.py -------------------------------------------------------------------------------- /04_Object_Oriented_Python/simple_bunch.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/04_Object_Oriented_Python/simple_bunch.py -------------------------------------------------------------------------------- /04_Object_Oriented_Python/singleton.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/04_Object_Oriented_Python/singleton.py -------------------------------------------------------------------------------- /04_Object_Oriented_Python/slots_rectangle.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/04_Object_Oriented_Python/slots_rectangle.py -------------------------------------------------------------------------------- /05_Type_Annotations/TYPE_CHECKING_usage.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/05_Type_Annotations/TYPE_CHECKING_usage.py -------------------------------------------------------------------------------- /05_Type_Annotations/examples_cast.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/05_Type_Annotations/examples_cast.py -------------------------------------------------------------------------------- /05_Type_Annotations/examples_overload.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/05_Type_Annotations/examples_overload.py -------------------------------------------------------------------------------- /05_Type_Annotations/forward_referencing_types_from_future_import_annotations.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/05_Type_Annotations/forward_referencing_types_from_future_import_annotations.py -------------------------------------------------------------------------------- /05_Type_Annotations/forward_referencing_types_not_yet_defined.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/05_Type_Annotations/forward_referencing_types_not_yet_defined.py -------------------------------------------------------------------------------- /05_Type_Annotations/generics_and_type_vars_accumulator.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/05_Type_Annotations/generics_and_type_vars_accumulator.py -------------------------------------------------------------------------------- /05_Type_Annotations/generics_and_type_vars_color_lookup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/05_Type_Annotations/generics_and_type_vars_color_lookup.py -------------------------------------------------------------------------------- /05_Type_Annotations/generics_and_type_vars_type_var_defns.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/05_Type_Annotations/generics_and_type_vars_type_var_defns.py -------------------------------------------------------------------------------- /05_Type_Annotations/namedtuple.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/05_Type_Annotations/namedtuple.py -------------------------------------------------------------------------------- /05_Type_Annotations/newtype.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/05_Type_Annotations/newtype.py -------------------------------------------------------------------------------- /05_Type_Annotations/protocols.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/05_Type_Annotations/protocols.py -------------------------------------------------------------------------------- /05_Type_Annotations/protocols_roman_numeral.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/05_Type_Annotations/protocols_roman_numeral.py -------------------------------------------------------------------------------- /05_Type_Annotations/type_annotations_and_the_typing_module.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/05_Type_Annotations/type_annotations_and_the_typing_module.py -------------------------------------------------------------------------------- /05_Type_Annotations/typealias.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/05_Type_Annotations/typealias.py -------------------------------------------------------------------------------- /05_Type_Annotations/typeddict.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/05_Type_Annotations/typeddict.py -------------------------------------------------------------------------------- /05_Type_Annotations/typeddict_generic.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/05_Type_Annotations/typeddict_generic.py -------------------------------------------------------------------------------- /05_Type_Annotations/typeddict_required.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/05_Type_Annotations/typeddict_required.py -------------------------------------------------------------------------------- /05_Type_Annotations/typing_syntax_changes_in_python_39_and_310.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/05_Type_Annotations/typing_syntax_changes_in_python_39_and_310.py -------------------------------------------------------------------------------- /05_Type_Annotations/using_type_annotations_at_runtime.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/05_Type_Annotations/using_type_annotations_at_runtime.py -------------------------------------------------------------------------------- /06_Exceptions/cross_product.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/06_Exceptions/cross_product.py -------------------------------------------------------------------------------- /06_Exceptions/custom_exception_class.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/06_Exceptions/custom_exception_class.py -------------------------------------------------------------------------------- /06_Exceptions/enclosing_tag_context_manager_class.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/06_Exceptions/enclosing_tag_context_manager_class.py -------------------------------------------------------------------------------- /06_Exceptions/enclosing_tag_context_manager_using_contextlib_contextmanager.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/06_Exceptions/enclosing_tag_context_manager_using_contextlib_contextmanager.py -------------------------------------------------------------------------------- /06_Exceptions/exception_add_note.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/06_Exceptions/exception_add_note.py -------------------------------------------------------------------------------- /06_Exceptions/exception_group.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/06_Exceptions/exception_group.py -------------------------------------------------------------------------------- /06_Exceptions/exception_propagation_at_work.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/06_Exceptions/exception_propagation_at_work.py -------------------------------------------------------------------------------- /06_Exceptions/exception_wrapping_other_exception.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/06_Exceptions/exception_wrapping_other_exception.py -------------------------------------------------------------------------------- /06_Exceptions/exception_wrapping_raise_from_none.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/06_Exceptions/exception_wrapping_raise_from_none.py -------------------------------------------------------------------------------- /06_Exceptions/logging_example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/06_Exceptions/logging_example.py -------------------------------------------------------------------------------- /06_Exceptions/read_or_default.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/06_Exceptions/read_or_default.py -------------------------------------------------------------------------------- /06_Exceptions/safe_divide.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/06_Exceptions/safe_divide.py -------------------------------------------------------------------------------- /06_Exceptions/the_try_statement.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/06_Exceptions/the_try_statement.py -------------------------------------------------------------------------------- /06_Exceptions/try_calling.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/06_Exceptions/try_calling.py -------------------------------------------------------------------------------- /06_Exceptions/try_finally.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/06_Exceptions/try_finally.py -------------------------------------------------------------------------------- /07_Modules/attributes_of_module_objects.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/07_Modules/attributes_of_module_objects.py -------------------------------------------------------------------------------- /07_Modules/custom_importers_import_hooks.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/07_Modules/custom_importers_import_hooks.py -------------------------------------------------------------------------------- /07_Modules/mymodule.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/07_Modules/mymodule.py -------------------------------------------------------------------------------- /07_Modules/python_builtins.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/07_Modules/python_builtins.py -------------------------------------------------------------------------------- /08_Core_Builtins_and_Standard_Library_Modules/argparse_example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/08_Core_Builtins_and_Standard_Library_Modules/argparse_example.py -------------------------------------------------------------------------------- /08_Core_Builtins_and_Standard_Library_Modules/collections_chain_map_equivalent.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/08_Core_Builtins_and_Standard_Library_Modules/collections_chain_map_equivalent.py -------------------------------------------------------------------------------- /08_Core_Builtins_and_Standard_Library_Modules/collections_defaultdict_equivalent.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/08_Core_Builtins_and_Standard_Library_Modules/collections_defaultdict_equivalent.py -------------------------------------------------------------------------------- /08_Core_Builtins_and_Standard_Library_Modules/decorate_sort_undecorate.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/08_Core_Builtins_and_Standard_Library_Modules/decorate_sort_undecorate.py -------------------------------------------------------------------------------- /08_Core_Builtins_and_Standard_Library_Modules/exec_with_data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/08_Core_Builtins_and_Standard_Library_Modules/exec_with_data.py -------------------------------------------------------------------------------- /08_Core_Builtins_and_Standard_Library_Modules/functools_reduce_equivalent.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/08_Core_Builtins_and_Standard_Library_Modules/functools_reduce_equivalent.py -------------------------------------------------------------------------------- /08_Core_Builtins_and_Standard_Library_Modules/greet.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/08_Core_Builtins_and_Standard_Library_Modules/greet.py -------------------------------------------------------------------------------- /08_Core_Builtins_and_Standard_Library_Modules/iter_examples.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/08_Core_Builtins_and_Standard_Library_Modules/iter_examples.py -------------------------------------------------------------------------------- /08_Core_Builtins_and_Standard_Library_Modules/itertools_count_equivalent.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/08_Core_Builtins_and_Standard_Library_Modules/itertools_count_equivalent.py -------------------------------------------------------------------------------- /08_Core_Builtins_and_Standard_Library_Modules/itertools_cycle_equivalent.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/08_Core_Builtins_and_Standard_Library_Modules/itertools_cycle_equivalent.py -------------------------------------------------------------------------------- /08_Core_Builtins_and_Standard_Library_Modules/itertools_dropwhile_equivalent.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/08_Core_Builtins_and_Standard_Library_Modules/itertools_dropwhile_equivalent.py -------------------------------------------------------------------------------- /08_Core_Builtins_and_Standard_Library_Modules/itertools_groupby_example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/08_Core_Builtins_and_Standard_Library_Modules/itertools_groupby_example.py -------------------------------------------------------------------------------- /08_Core_Builtins_and_Standard_Library_Modules/itertools_islice_equivalent.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/08_Core_Builtins_and_Standard_Library_Modules/itertools_islice_equivalent.py -------------------------------------------------------------------------------- /08_Core_Builtins_and_Standard_Library_Modules/itertools_repeat_unbounded.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/08_Core_Builtins_and_Standard_Library_Modules/itertools_repeat_unbounded.py -------------------------------------------------------------------------------- /08_Core_Builtins_and_Standard_Library_Modules/itertools_starmap_equivalent.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/08_Core_Builtins_and_Standard_Library_Modules/itertools_starmap_equivalent.py -------------------------------------------------------------------------------- /08_Core_Builtins_and_Standard_Library_Modules/itertools_takewhile_equivalent.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/08_Core_Builtins_and_Standard_Library_Modules/itertools_takewhile_equivalent.py -------------------------------------------------------------------------------- /08_Core_Builtins_and_Standard_Library_Modules/keydefaultdict.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/08_Core_Builtins_and_Standard_Library_Modules/keydefaultdict.py -------------------------------------------------------------------------------- /08_Core_Builtins_and_Standard_Library_Modules/safer_eval.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/08_Core_Builtins_and_Standard_Library_Modules/safer_eval.py -------------------------------------------------------------------------------- /08_Core_Builtins_and_Standard_Library_Modules/sys_ps1_ps2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/08_Core_Builtins_and_Standard_Library_Modules/sys_ps1_ps2.py -------------------------------------------------------------------------------- /09_Strings_and_Things/digit_grouping.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/09_Strings_and_Things/digit_grouping.py -------------------------------------------------------------------------------- /09_Strings_and_Things/field_width.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/09_Strings_and_Things/field_width.py -------------------------------------------------------------------------------- /09_Strings_and_Things/format_type.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/09_Strings_and_Things/format_type.py -------------------------------------------------------------------------------- /09_Strings_and_Things/formatted_string_literals.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/09_Strings_and_Things/formatted_string_literals.py -------------------------------------------------------------------------------- /09_Strings_and_Things/formatting_of_user_coded_classes.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/09_Strings_and_Things/formatting_of_user_coded_classes.py -------------------------------------------------------------------------------- /09_Strings_and_Things/legacy_string_formatting_with_percent.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/09_Strings_and_Things/legacy_string_formatting_with_percent.py -------------------------------------------------------------------------------- /09_Strings_and_Things/nested_format_specifications.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/09_Strings_and_Things/nested_format_specifications.py -------------------------------------------------------------------------------- /09_Strings_and_Things/precision_specification.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/09_Strings_and_Things/precision_specification.py -------------------------------------------------------------------------------- /09_Strings_and_Things/str_split.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/09_Strings_and_Things/str_split.py -------------------------------------------------------------------------------- /09_Strings_and_Things/string_formatting.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/09_Strings_and_Things/string_formatting.py -------------------------------------------------------------------------------- /09_Strings_and_Things/unicodedata_module.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/09_Strings_and_Things/unicodedata_module.py -------------------------------------------------------------------------------- /09_Strings_and_Things/values_by_argument_lookup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/09_Strings_and_Things/values_by_argument_lookup.py -------------------------------------------------------------------------------- /10_Regular_Expressions/afile.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/10_Regular_Expressions/afile.txt -------------------------------------------------------------------------------- /10_Regular_Expressions/anchoring_at_string_start_and_end.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/10_Regular_Expressions/anchoring_at_string_start_and_end.py -------------------------------------------------------------------------------- /10_Regular_Expressions/match_vs_search.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/10_Regular_Expressions/match_vs_search.py -------------------------------------------------------------------------------- /10_Regular_Expressions/re_and_the_walrus_operator.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/10_Regular_Expressions/re_and_the_walrus_operator.py -------------------------------------------------------------------------------- /10_Regular_Expressions/re_findall_1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/10_Regular_Expressions/re_findall_1.py -------------------------------------------------------------------------------- /10_Regular_Expressions/re_findall_2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/10_Regular_Expressions/re_findall_2.py -------------------------------------------------------------------------------- /10_Regular_Expressions/re_match.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/10_Regular_Expressions/re_match.py -------------------------------------------------------------------------------- /10_Regular_Expressions/re_optional_flags.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/10_Regular_Expressions/re_optional_flags.py -------------------------------------------------------------------------------- /10_Regular_Expressions/re_search.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/10_Regular_Expressions/re_search.py -------------------------------------------------------------------------------- /10_Regular_Expressions/res_and_bytes_vs_str.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/10_Regular_Expressions/res_and_bytes_vs_str.py -------------------------------------------------------------------------------- /11_File_and_Text_Operations/console_io_msvcrt_module.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/11_File_and_Text_Operations/console_io_msvcrt_module.py -------------------------------------------------------------------------------- /11_File_and_Text_Operations/errno_module.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/11_File_and_Text_Operations/errno_module.py -------------------------------------------------------------------------------- /11_File_and_Text_Operations/fileinput_module.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/11_File_and_Text_Operations/fileinput_module.py -------------------------------------------------------------------------------- /11_File_and_Text_Operations/fnmatch_translate.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/11_File_and_Text_Operations/fnmatch_translate.py -------------------------------------------------------------------------------- /11_File_and_Text_Operations/gettext_install.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/11_File_and_Text_Operations/gettext_install.py -------------------------------------------------------------------------------- /11_File_and_Text_Operations/gettext_module.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/11_File_and_Text_Operations/gettext_module.py -------------------------------------------------------------------------------- /11_File_and_Text_Operations/locale_format_string.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/11_File_and_Text_Operations/locale_format_string.py -------------------------------------------------------------------------------- /11_File_and_Text_Operations/locale_strxfrm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/11_File_and_Text_Operations/locale_strxfrm.py -------------------------------------------------------------------------------- /11_File_and_Text_Operations/os_path_expand_vars.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/11_File_and_Text_Operations/os_path_expand_vars.py -------------------------------------------------------------------------------- /11_File_and_Text_Operations/os_path_join.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/11_File_and_Text_Operations/os_path_join.py -------------------------------------------------------------------------------- /11_File_and_Text_Operations/os_stat.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/11_File_and_Text_Operations/os_stat.py -------------------------------------------------------------------------------- /11_File_and_Text_Operations/pathlib_glob.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/11_File_and_Text_Operations/pathlib_glob.py -------------------------------------------------------------------------------- /11_File_and_Text_Operations/pathlib_mkdir.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/11_File_and_Text_Operations/pathlib_mkdir.py -------------------------------------------------------------------------------- /11_File_and_Text_Operations/pathlib_replace.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/11_File_and_Text_Operations/pathlib_replace.py -------------------------------------------------------------------------------- /11_File_and_Text_Operations/pathlib_touch.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/11_File_and_Text_Operations/pathlib_touch.py -------------------------------------------------------------------------------- /11_File_and_Text_Operations/pian.po: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/11_File_and_Text_Operations/pian.po -------------------------------------------------------------------------------- /11_File_and_Text_Operations/print_function.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/11_File_and_Text_Operations/print_function.py -------------------------------------------------------------------------------- /11_File_and_Text_Operations/shutil_copytree.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/11_File_and_Text_Operations/shutil_copytree.py -------------------------------------------------------------------------------- /11_File_and_Text_Operations/standard_input.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/11_File_and_Text_Operations/standard_input.py -------------------------------------------------------------------------------- /11_File_and_Text_Operations/tempfile_module.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/11_File_and_Text_Operations/tempfile_module.py -------------------------------------------------------------------------------- /11_File_and_Text_Operations/zipfile_module.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/11_File_and_Text_Operations/zipfile_module.py -------------------------------------------------------------------------------- /12_Persistence_and_Databases/csv_colors.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/12_Persistence_and_Databases/csv_colors.py -------------------------------------------------------------------------------- /12_Persistence_and_Databases/dbm_find.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/12_Persistence_and_Databases/dbm_find.py -------------------------------------------------------------------------------- /12_Persistence_and_Databases/dbm_save.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/12_Persistence_and_Databases/dbm_save.py -------------------------------------------------------------------------------- /12_Persistence_and_Databases/json_find.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/12_Persistence_and_Databases/json_find.py -------------------------------------------------------------------------------- /12_Persistence_and_Databases/json_save.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/12_Persistence_and_Databases/json_save.py -------------------------------------------------------------------------------- /12_Persistence_and_Databases/pickle_find.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/12_Persistence_and_Databases/pickle_find.py -------------------------------------------------------------------------------- /12_Persistence_and_Databases/pickle_save.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/12_Persistence_and_Databases/pickle_save.py -------------------------------------------------------------------------------- /12_Persistence_and_Databases/shelve_find.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/12_Persistence_and_Databases/shelve_find.py -------------------------------------------------------------------------------- /12_Persistence_and_Databases/shelve_save.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/12_Persistence_and_Databases/shelve_save.py -------------------------------------------------------------------------------- /12_Persistence_and_Databases/sql_find.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/12_Persistence_and_Databases/sql_find.py -------------------------------------------------------------------------------- /12_Persistence_and_Databases/sql_save.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/12_Persistence_and_Databases/sql_save.py -------------------------------------------------------------------------------- /13_Time_Operations/sched_module.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/13_Time_Operations/sched_module.py -------------------------------------------------------------------------------- /13_Time_Operations/zoneinfo_module.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/13_Time_Operations/zoneinfo_module.py -------------------------------------------------------------------------------- /14_Contolling_Execution/code_object_type.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/14_Contolling_Execution/code_object_type.py -------------------------------------------------------------------------------- /14_Contolling_Execution/gc_module.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/14_Contolling_Execution/gc_module.py -------------------------------------------------------------------------------- /14_Contolling_Execution/weakref_module.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/14_Contolling_Execution/weakref_module.py -------------------------------------------------------------------------------- /15_Threads_and_Processes/barrier_objects.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/15_Threads_and_Processes/barrier_objects.py -------------------------------------------------------------------------------- /15_Threads_and_Processes/concurrent_futures_as_completed.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/15_Threads_and_Processes/concurrent_futures_as_completed.py -------------------------------------------------------------------------------- /15_Threads_and_Processes/concurrent_futures_map.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/15_Threads_and_Processes/concurrent_futures_map.py -------------------------------------------------------------------------------- /15_Threads_and_Processes/condition_objects.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/15_Threads_and_Processes/condition_objects.py -------------------------------------------------------------------------------- /15_Threads_and_Processes/event_objects.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/15_Threads_and_Processes/event_objects.py -------------------------------------------------------------------------------- /15_Threads_and_Processes/manager_list.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/15_Threads_and_Processes/manager_list.py -------------------------------------------------------------------------------- /15_Threads_and_Processes/mmap_ipc_reader.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/15_Threads_and_Processes/mmap_ipc_reader.py -------------------------------------------------------------------------------- /15_Threads_and_Processes/mmap_ipc_writer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/15_Threads_and_Processes/mmap_ipc_writer.py -------------------------------------------------------------------------------- /15_Threads_and_Processes/multiprocessing_array.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/15_Threads_and_Processes/multiprocessing_array.py -------------------------------------------------------------------------------- /15_Threads_and_Processes/multiprocessing_manager.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/15_Threads_and_Processes/multiprocessing_manager.py -------------------------------------------------------------------------------- /15_Threads_and_Processes/multiprocessing_pool.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/15_Threads_and_Processes/multiprocessing_pool.py -------------------------------------------------------------------------------- /15_Threads_and_Processes/multiprocessing_threadpool.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/15_Threads_and_Processes/multiprocessing_threadpool.py -------------------------------------------------------------------------------- /15_Threads_and_Processes/process_environment.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/15_Threads_and_Processes/process_environment.py -------------------------------------------------------------------------------- /15_Threads_and_Processes/queue_eafp.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/15_Threads_and_Processes/queue_eafp.py -------------------------------------------------------------------------------- /15_Threads_and_Processes/queue_lbyl.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/15_Threads_and_Processes/queue_lbyl.py -------------------------------------------------------------------------------- /15_Threads_and_Processes/rlock_objects.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/15_Threads_and_Processes/rlock_objects.py -------------------------------------------------------------------------------- /15_Threads_and_Processes/thread_local_storage.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/15_Threads_and_Processes/thread_local_storage.py -------------------------------------------------------------------------------- /15_Threads_and_Processes/threaded_program_architecture_complete.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/15_Threads_and_Processes/threaded_program_architecture_complete.py -------------------------------------------------------------------------------- /15_Threads_and_Processes/threaded_program_architecture_external_interfacing.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/15_Threads_and_Processes/threaded_program_architecture_external_interfacing.py -------------------------------------------------------------------------------- /15_Threads_and_Processes/threaded_program_architecture_serializer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/15_Threads_and_Processes/threaded_program_architecture_serializer.py -------------------------------------------------------------------------------- /15_Threads_and_Processes/threaded_program_architecture_worker.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/15_Threads_and_Processes/threaded_program_architecture_worker.py -------------------------------------------------------------------------------- /15_Threads_and_Processes/timer_objects.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/15_Threads_and_Processes/timer_objects.py -------------------------------------------------------------------------------- /16_Numeric_Processing/decimal_module.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/16_Numeric_Processing/decimal_module.py -------------------------------------------------------------------------------- /16_Numeric_Processing/dont_use_a_float_as_a_loop_control_variable.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/16_Numeric_Processing/dont_use_a_float_as_a_loop_control_variable.py -------------------------------------------------------------------------------- /16_Numeric_Processing/dont_use_eqeq_between_floats_or_complex_numbers.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/16_Numeric_Processing/dont_use_eqeq_between_floats_or_complex_numbers.py -------------------------------------------------------------------------------- /16_Numeric_Processing/floating_point_numbers.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/16_Numeric_Processing/floating_point_numbers.py -------------------------------------------------------------------------------- /16_Numeric_Processing/fractions_module.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/16_Numeric_Processing/fractions_module.py -------------------------------------------------------------------------------- /16_Numeric_Processing/math_cmath_atan2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/16_Numeric_Processing/math_cmath_atan2.py -------------------------------------------------------------------------------- /16_Numeric_Processing/numpy_array.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/16_Numeric_Processing/numpy_array.py -------------------------------------------------------------------------------- /16_Numeric_Processing/numpy_matrix_operations.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/16_Numeric_Processing/numpy_matrix_operations.py -------------------------------------------------------------------------------- /16_Numeric_Processing/numpy_shape_indexing_and_slicing.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/16_Numeric_Processing/numpy_shape_indexing_and_slicing.py -------------------------------------------------------------------------------- /17_Testing_Debugging_and_Optimizing/building_up_a_string_from_pieces.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/17_Testing_Debugging_and_Optimizing/building_up_a_string_from_pieces.py -------------------------------------------------------------------------------- /17_Testing_Debugging_and_Optimizing/inspect_example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/17_Testing_Debugging_and_Optimizing/inspect_example.py -------------------------------------------------------------------------------- /17_Testing_Debugging_and_Optimizing/inspect_getargvalues.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/17_Testing_Debugging_and_Optimizing/inspect_getargvalues.py -------------------------------------------------------------------------------- /17_Testing_Debugging_and_Optimizing/inspect_getmro.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/17_Testing_Debugging_and_Optimizing/inspect_getmro.py -------------------------------------------------------------------------------- /17_Testing_Debugging_and_Optimizing/inspect_stack.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/17_Testing_Debugging_and_Optimizing/inspect_stack.py -------------------------------------------------------------------------------- /17_Testing_Debugging_and_Optimizing/large_scale_optimization.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/17_Testing_Debugging_and_Optimizing/large_scale_optimization.py -------------------------------------------------------------------------------- /17_Testing_Debugging_and_Optimizing/memoizing.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/17_Testing_Debugging_and_Optimizing/memoizing.py -------------------------------------------------------------------------------- /17_Testing_Debugging_and_Optimizing/mod.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/17_Testing_Debugging_and_Optimizing/mod.py -------------------------------------------------------------------------------- /17_Testing_Debugging_and_Optimizing/nose2_example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/17_Testing_Debugging_and_Optimizing/nose2_example.py -------------------------------------------------------------------------------- /17_Testing_Debugging_and_Optimizing/optimizing_loops.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/17_Testing_Debugging_and_Optimizing/optimizing_loops.py -------------------------------------------------------------------------------- /17_Testing_Debugging_and_Optimizing/pdb_example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/17_Testing_Debugging_and_Optimizing/pdb_example.py -------------------------------------------------------------------------------- /17_Testing_Debugging_and_Optimizing/pre_computing_a_lookup_table.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/17_Testing_Debugging_and_Optimizing/pre_computing_a_lookup_table.py -------------------------------------------------------------------------------- /17_Testing_Debugging_and_Optimizing/pytest_example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/17_Testing_Debugging_and_Optimizing/pytest_example.py -------------------------------------------------------------------------------- /17_Testing_Debugging_and_Optimizing/pytest_parametrize.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/17_Testing_Debugging_and_Optimizing/pytest_parametrize.py -------------------------------------------------------------------------------- /17_Testing_Debugging_and_Optimizing/short_circuiting_of_iterators.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/17_Testing_Debugging_and_Optimizing/short_circuiting_of_iterators.py -------------------------------------------------------------------------------- /17_Testing_Debugging_and_Optimizing/using_doctest.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/17_Testing_Debugging_and_Optimizing/using_doctest.py -------------------------------------------------------------------------------- /17_Testing_Debugging_and_Optimizing/using_unittest.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/17_Testing_Debugging_and_Optimizing/using_unittest.py -------------------------------------------------------------------------------- /17_Testing_Debugging_and_Optimizing/warnings_warn_to_unicode.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/17_Testing_Debugging_and_Optimizing/warnings_warn_to_unicode.py -------------------------------------------------------------------------------- /18_Basic_Networking/tcpclient.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/18_Basic_Networking/tcpclient.py -------------------------------------------------------------------------------- /18_Basic_Networking/tcpclient6.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/18_Basic_Networking/tcpclient6.py -------------------------------------------------------------------------------- /18_Basic_Networking/tcpserver.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/18_Basic_Networking/tcpserver.py -------------------------------------------------------------------------------- /18_Basic_Networking/tcpserver6.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/18_Basic_Networking/tcpserver6.py -------------------------------------------------------------------------------- /18_Basic_Networking/test.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/18_Basic_Networking/test.html -------------------------------------------------------------------------------- /18_Basic_Networking/udpclient.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/18_Basic_Networking/udpclient.py -------------------------------------------------------------------------------- /18_Basic_Networking/udpclient6.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/18_Basic_Networking/udpclient6.py -------------------------------------------------------------------------------- /18_Basic_Networking/udpserver.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/18_Basic_Networking/udpserver.py -------------------------------------------------------------------------------- /18_Basic_Networking/udpserver6.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/18_Basic_Networking/udpserver6.py -------------------------------------------------------------------------------- /19_client_side_network_protocol_modules/third_party_requests_package.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/19_client_side_network_protocol_modules/third_party_requests_package.py -------------------------------------------------------------------------------- /19_client_side_network_protocol_modules/urllib_parse_module.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/19_client_side_network_protocol_modules/urllib_parse_module.py -------------------------------------------------------------------------------- /19_client_side_network_protocol_modules/urllib_request_urlopen_example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/19_client_side_network_protocol_modules/urllib_request_urlopen_example.py -------------------------------------------------------------------------------- /20_serving_http/client1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/20_serving_http/client1.py -------------------------------------------------------------------------------- /20_serving_http/clitest.py: -------------------------------------------------------------------------------- 1 | from server2 import connect, MItem 2 | -------------------------------------------------------------------------------- /20_serving_http/debug_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/20_serving_http/debug_test.py -------------------------------------------------------------------------------- /20_serving_http/flask_example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/20_serving_http/flask_example.py -------------------------------------------------------------------------------- /20_serving_http/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/20_serving_http/index.html -------------------------------------------------------------------------------- /20_serving_http/models.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/20_serving_http/models.py -------------------------------------------------------------------------------- /20_serving_http/server1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/20_serving_http/server1.py -------------------------------------------------------------------------------- /20_serving_http/server2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/20_serving_http/server2.py -------------------------------------------------------------------------------- /21_Email_MIME_and_Other_Network_Encodings/email_example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/21_Email_MIME_and_Other_Network_Encodings/email_example.py -------------------------------------------------------------------------------- /22_Structured_Text_HTML/bs4_attribute_references_on_bs4_and_tag.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/22_Structured_Text_HTML/bs4_attribute_references_on_bs4_and_tag.py -------------------------------------------------------------------------------- /22_Structured_Text_HTML/bs4_building_html.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/22_Structured_Text_HTML/bs4_building_html.py -------------------------------------------------------------------------------- /22_Structured_Text_HTML/bs4_css_selectors.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/22_Structured_Text_HTML/bs4_css_selectors.py -------------------------------------------------------------------------------- /22_Structured_Text_HTML/bs4_editing_and_creating_html.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/22_Structured_Text_HTML/bs4_editing_and_creating_html.py -------------------------------------------------------------------------------- /22_Structured_Text_HTML/bs4_getting_an_actual_string.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/22_Structured_Text_HTML/bs4_getting_an_actual_string.py -------------------------------------------------------------------------------- /22_Structured_Text_HTML/bs4_html_parsing_example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/22_Structured_Text_HTML/bs4_html_parsing_example.py -------------------------------------------------------------------------------- /22_Structured_Text_HTML/bs4_indexing_instances_of_tag.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/22_Structured_Text_HTML/bs4_indexing_instances_of_tag.py -------------------------------------------------------------------------------- /22_Structured_Text_HTML/bs4_search_methods.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/22_Structured_Text_HTML/bs4_search_methods.py -------------------------------------------------------------------------------- /22_Structured_Text_HTML/bs4_unicode_and_encoding.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/22_Structured_Text_HTML/bs4_unicode_and_encoding.py -------------------------------------------------------------------------------- /22_Structured_Text_HTML/bs4_which_parser.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/22_Structured_Text_HTML/bs4_which_parser.py -------------------------------------------------------------------------------- /22_Structured_Text_HTML/jinja2_building_html.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/22_Structured_Text_HTML/jinja2_building_html.py -------------------------------------------------------------------------------- /23_Structured_Text_XML/building_an_elementtree_from_scratch.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/23_Structured_Text_XML/building_an_elementtree_from_scratch.py -------------------------------------------------------------------------------- /23_Structured_Text_XML/menu.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/23_Structured_Text_XML/menu.csv -------------------------------------------------------------------------------- /23_Structured_Text_XML/parsing_xml_iteratively_1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/23_Structured_Text_XML/parsing_xml_iteratively_1.py -------------------------------------------------------------------------------- /23_Structured_Text_XML/parsing_xml_iteratively_2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/23_Structured_Text_XML/parsing_xml_iteratively_2.py -------------------------------------------------------------------------------- /23_Structured_Text_XML/parsing_xml_with_elementtree_parse.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/23_Structured_Text_XML/parsing_xml_with_elementtree_parse.py -------------------------------------------------------------------------------- /23_Structured_Text_XML/simple.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/23_Structured_Text_XML/simple.xml -------------------------------------------------------------------------------- /24_Distributing_Extensions_and_Programs/flask_setup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/24_Distributing_Extensions_and_Programs/flask_setup.py -------------------------------------------------------------------------------- /25_Extending_and_Embedding_Classic_Python/hello/hello.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/25_Extending_and_Embedding_Classic_Python/hello/hello.c -------------------------------------------------------------------------------- /25_Extending_and_Embedding_Classic_Python/hello/hello_demo.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/25_Extending_and_Embedding_Classic_Python/hello/hello_demo.py -------------------------------------------------------------------------------- /25_Extending_and_Embedding_Classic_Python/hello/setup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/25_Extending_and_Embedding_Classic_Python/hello/setup.py -------------------------------------------------------------------------------- /25_Extending_and_Embedding_Classic_Python/intpair/intpair.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/25_Extending_and_Embedding_Classic_Python/intpair/intpair.c -------------------------------------------------------------------------------- /25_Extending_and_Embedding_Classic_Python/intpair/intpair_demo.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/25_Extending_and_Embedding_Classic_Python/intpair/intpair_demo.py -------------------------------------------------------------------------------- /25_Extending_and_Embedding_Classic_Python/intpair/setup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/25_Extending_and_Embedding_Classic_Python/intpair/setup.py -------------------------------------------------------------------------------- /25_Extending_and_Embedding_Classic_Python/merge/merge.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/25_Extending_and_Embedding_Classic_Python/merge/merge.c -------------------------------------------------------------------------------- /25_Extending_and_Embedding_Classic_Python/merge/merge_demo.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/25_Extending_and_Embedding_Classic_Python/merge/merge_demo.py -------------------------------------------------------------------------------- /25_Extending_and_Embedding_Classic_Python/merge/setup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/25_Extending_and_Embedding_Classic_Python/merge/setup.py -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/README.md -------------------------------------------------------------------------------- /chapters/24 Packaging Programs and Extensions.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/chapters/24 Packaging Programs and Extensions.pdf -------------------------------------------------------------------------------- /chapters/25 Extending and Embedding Classic Python.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/chapters/25 Extending and Embedding Classic Python.pdf -------------------------------------------------------------------------------- /static/Pian_cover2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/static/Pian_cover2.jpg -------------------------------------------------------------------------------- /test/check_snippets.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pynutshell/pynut4/HEAD/test/check_snippets.py --------------------------------------------------------------------------------