File tree
364 files changed
+25786
-0
lines changed- src
- 1
- calculating_with_dictionaries
- determine_the_top_n_items_occurring_in_a_list
- extracting_a_subset_of_a_dictionary
- filtering_list_elements
- finding_out_what_two_dictionaries_have_in_common
- finding_the_largest_or_smallest_n_items
- grouping-records-together-based-on-a-field
- implementing_a_priority_queue
- keeping_the_last_n_items
- mapping_names_to_sequence_elements
- removing_duplicates_from_a_sequence_while_maintaining_order
- sort_a_list_of_dictionaries_by_a_common_key
- sort_objects_without_native_comparison_support
- transforming_and_reducing_data_at_the_same_time
- unpack_a_fixed_number_of_elements_from_iterables_of_arbitrary_length
- working_with_multiple_mappings_as_a_single_mapping
- 10
- loading_modules_from_a_remote_machine_using_import_hooks
- testcode
- grok
- making_separate_directories_import_under_a_common_namespace
- bar-package/spam
- foo-package/spam
- monkeypatching_modules_on_import
- splitting_a_module_into_multiple_files
- mymodule
- 11
- adding_ssl_to_network_servers
- creating_a_simple_rest_based_interface
- creating_a_tcp_server
- creating_a_udp_server
- event_driven_io_explained
- implementing_remote_procedure_call
- interacting_with_http_services_as_a_client
- passing_a_socket_file_descriptor_between_processes
- simple_authentication_of_clients
- simple_communication_between_interpreters
- simple_remote_procedure_call_with_xmlrpc
- zero_copy_sending_and_receiving_of_large_arrays
- 12
- defining_an_actor_task
- how_to_communicate_between_threads
- how_to_create_a_thread_pool
- how_to_determine_if_a_thread_has_started
- how_to_lock_critical_sections
- how_to_start_and_stop_threads
- implementing_publish_subscribe_messaging
- launching_a_daemon_process_on_unix
- locking_with_deadlock_avoidance
- polling_multiple_thread_queues
- simple_parallel_programming
- logs
- storing_thread_specific_state
- using_generators_as_an_alternative_to_threads
- 13
- adding_logging_to_libraries
- executing_an_external_command_and_getting_its_output
- finding_files
- generating_a_range_of_ip_addresses_from_a_cidr_address
- getting_the_terminal_size
- making_a_stopwatch
- parsing_command_line_options
- prompting_for_a_password_at_runtime
- putting_limits_on_memory_and_cpu_usage
- reading_configuration_files
- simple_logging_for_scripts
- 14
- logging_test_output_to_a_file
- make_your_programs_run_faster
- profiling_and_timing_your_program
- raising_an_exception_in_response_to_another_exception
- skipping_or_anticipating_test_failures
- testing_for_exceptional_conditions_in_unit_tests
- testing_output_sent_to_stdout
- 15
- accessing_c_code_using_ctypes
- calling_python_from_c
- consuming_an_iterable_from_c
- defining_and_exporting_c_apis_from_extension_modules
- diagnosing_segmentation_faults
- managing_opaque_pointers_in_c_extension_modules
- passing_null_terminated_strings_to_c_libraries
- passing_unicode_strings_to_c_libraries
- reading_file_like_objects_from_c
- turning_a_function_pointer_into_a_callable
- using_cython_to_write_high_performance_array_operations
- working_with_c_strings_of_dubious_encoding
- wrapping_c_code_with_swig
- wrapping_existing_c_code_with_cython
- writing_a_simple_c_extension_module
- writing_an_extension_function_that_operates_on_arrays
- 2
- combining_and_concatenating_strings
- matching_and_searching_for_text_patterns_using_regular_expressions
- matching_strings_using_shell_wildcard_patterns
- normalizing_unicode_text_to_a_standard_representation
- reformatting_text_to_fixed_number_of_columns
- sanitizing_and_cleaning_up_text
- searching_and_replacing_text
- specifying_a_regular_expression_for_the_shortest_match
- splitting_strings_on_any_of_multiple_delimiters
- tokenizing_text
- variable_interpolation_in_strings
- writing_a_regular_expression_for_multiline_patterns
- writing_a_simple_recursive_descent_parser
- 3
- determining_last_fridays_date
- finding_the_date_range_for_the_current_month
- 4
- creating_data_processing_pipelines
- www
- bar
- foo
- creating_new_iteration_patterns_with_generators
- delegating-iteration
- easy_implementation_of_the_iterator_protocol
- generators_with_state
- how_to_flatten_a_nested_sequence
- iterate_over_the_index-value_pairs_of_a_list
- iterating_in_reverse
- iterating_in_sorted_order_over_merged_sorted_iterables
- iterating_on_items_in_separate_containers
- 5
- adding_or_changing_the_encoding_of_an_already_open_file
- getting_a_directory_listing
- iterating_over_fixed-sized_records
- reading_and_writing_text_data
- wrapping_an_existing_file_descriptor_as_a_file_object
- writing_bytes_to_a_text_file
- 6
- incremental_parsing_of_huge_xml_files
- parsing_modifying_and_rewriting_xml
- parsing_simple_xml_data
- parsing_xml_documents_with_namespaces
- reading_and_writing_binary_arrays_of_structures
- reading_and_writing_csv_data
- reading_and_writing_json_data
- reading_nested_and_variable_sized_binary_structures
- 7
- accessing_variables_defined_inside_a_closure
- carrying_extra_state_with_callback_functions
- functions_that_accept_any_number_of_arguments
- functions_that_only_accept_keyword_arguments
- functions_with_default_arguments
- inlining_callback_functions
- making_an_n-argument_callable_work_as_a_callable_with_fewer_arguments
- 8
- calling_a_method_on_a_parent_class
- calling_a_method_on_an_object_given_the_name_as_a_string
- changing_the_string_representation_of_instances
- creating_a_new_kind_of_class_or_instance_attribute
- creating_an_instance_without_invoking_init
- creating_cached_instances
- creating_managed_attributes
- customized_formatting
- delegation_and_proxies
- extending_a_property_in_a_subclass
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
364 files changed
+25786
-0
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + |
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + |
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + |
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + |
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + |
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + |
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + |
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + |
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + |
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + |
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + |
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + |
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + |
0 commit comments