MCPcopy Create free account

hub / github.com/dabeaz/python-cookbook / functions

Functions870 in github.com/dabeaz/python-cookbook

↓ 1 callersFunctionwrite_records
Write a sequence of tuples to a binary file of structures.
src/6/reading_and_writing_binary_arrays_of_structures/writerecords.py:3
FunctionLoggedMapping
(cls)
src/8/extending_classes_with_mixins/example3.py:3
FunctionMaxSized
(cls)
src/8/implementing_a_data_model_or_type_system/example_clsdec.py:31
FunctionTyped
(expected_type, cls=None)
src/8/implementing_a_data_model_or_type_system/example_clsdec.py:10
FunctionUnsigned
(cls)
src/8/implementing_a_data_model_or_type_system/example_clsdec.py:22
Method__call__
(self, path)
src/6/parsing_xml_documents_with_namespaces/example.py:14
Method__call__
(self, environ, start_response)
src/11/creating_a_simple_rest_based_interface/resty.py:13
Method__call__
(self, *args)
src/9/using_metaclasses_to_control_instance_creation/example3.py:12
Method__call__
(self, *args, **kwargs)
src/9/using_metaclasses_to_control_instance_creation/example2.py:10
Method__call__
(self, *args, **kwargs)
src/9/using_metaclasses_to_control_instance_creation/example1.py:6
Method__call__
(self, *args, **kwargs)
src/9/defining_decorators_as_classes/example1.py:10
Method__call__
(self, *args)
src/9/multiple_dispatch_with_function_annotations/example2.py:19
Method__call__
Call a method based on type signature of the arguments
src/9/multiple_dispatch_with_function_annotations/example1.py:37
Method__delattr__
(self, name)
src/8/delegation_and_proxies/example2.py:22
Method__delete__
(self, instance)
src/8/creating_a_new_kind_of_class_or_instance_attribute/example1.py:17
Function__delitem__
(self, key)
src/8/extending_classes_with_mixins/example3.py:16
Method__delitem__
(self, index)
src/8/implementing_custom_containers/example2.py:16
Method__delitem__
(self, index)
src/8/delegation_and_proxies/example3.py:14
Method__delitem__
(self, key)
src/8/extending_classes_with_mixins/example1.py:15
Method__enter__
(self)
src/8/making_objects_support_the_context_manager_protocol/example2.py:10
Method__enter__
(self)
src/8/making_objects_support_the_context_manager_protocol/example1.py:10
Method__enter__
(self)
src/13/making_a_stopwatch/stopwatch.py:28
Method__enter__
(self)
src/12/storing_thread_specific_state/example2.py:11
Method__enter__
(self)
src/12/storing_thread_specific_state/example1.py:11
Method__eq__
(self, other)
src/8/making_classes_support_comparison_operations/example.py:28
Method__exit__
(self, exc_ty, exc_val, tb)
src/8/making_objects_support_the_context_manager_protocol/example2.py:16
Method__exit__
(self, exc_ty, exc_val, tb)
src/8/making_objects_support_the_context_manager_protocol/example1.py:17
Method__exit__
(self, *args)
src/13/making_a_stopwatch/stopwatch.py:32
Method__exit__
(self, exc_ty, exc_val, tb)
src/12/storing_thread_specific_state/example2.py:19
Method__exit__
(self, exc_ty, exc_val, tb)
src/12/storing_thread_specific_state/example1.py:18
Method__format__
(self, code)
src/8/customized_formatting/example1.py:13
Method__get__
(self, instance, cls)
src/6/reading_nested_and_variable_sized_binary_structures/example4.py:12
Method__get__
(self, instance, cls)
src/6/reading_nested_and_variable_sized_binary_structures/example4.py:28
Method__get__
(self, instance, cls)
src/6/reading_nested_and_variable_sized_binary_structures/example3.py:12
Method__get__
(self, instance, cls)
src/6/reading_nested_and_variable_sized_binary_structures/example3.py:28
Method__get__
(self, instance, cls)
src/6/reading_nested_and_variable_sized_binary_structures/example2.py:9
Method__get__
(self, instance, cls)
src/6/reading_nested_and_variable_sized_binary_structures/example1.py:7
Method__get__
(self, instance, cls)
src/8/creating_a_new_kind_of_class_or_instance_attribute/example2.py:7
Method__get__
(self, instance, cls)
src/8/creating_a_new_kind_of_class_or_instance_attribute/example1.py:6
Method__get__
(self, instance, cls)
src/8/extending_a_property_in_a_subclass/example2.py:6
Method__get__
(self, instance, cls)
src/8/lazily_computed_attributes/example1.py:4
Method__get__
(self, instance, cls)
src/9/defining_decorators_as_classes/example1.py:14
Method__get__
(self, instance, cls)
src/9/multiple_dispatch_with_function_annotations/example2.py:27
Method__get__
Descriptor method needed to make calls work in a class
src/9/multiple_dispatch_with_function_annotations/example1.py:48
Method__getattr__
(self, name)
src/8/delegation_and_proxies/example4.py:16
Method__getattr__
(self, name)
src/8/delegation_and_proxies/example3.py:4
Method__getattr__
(self, name)
src/8/delegation_and_proxies/example2.py:9
Method__getattr__
(self, name)
src/8/delegation_and_proxies/example1.py:16
Method__getattr__
(self, name)
src/8/calling_a_method_on_a_parent_class/example3.py:6
Method__getattr__
(self, name)
src/12/using_generators_as_an_alternative_to_threads/netsched.py:110
Method__getattr__
(self, name)
src/11/implementing_remote_procedure_call/rpcclient.py:6
Method__getattr__
(self, name)
src/11/implementing_remote_procedure_call/jsonrpclient.py:6
Function__getitem__
(self, key)
src/8/extending_classes_with_mixins/example3.py:8
Method__getitem__
(self, index)
src/8/implementing_custom_containers/example2.py:8
Method__getitem__
(self, index)
src/8/implementing_custom_containers/example1.py:11
Method__getitem__
(self, index)
src/8/delegation_and_proxies/example3.py:10
Method__getitem__
(self, key)
src/8/extending_classes_with_mixins/example1.py:7
Function__init__
(self, name=None, **opts)
src/8/implementing_a_data_model_or_type_system/example_clsdec.py:33
Function__init__
(self, name, shares, price)
src/9/defining_classes_programmatically/example1.py:4
Method__init__
(self, lines, histlen=3)
src/4/generators_with_state/example.py:7
Method__init__
(self, value)
src/4/easy_implementation_of_the_iterator_protocol/example.py:6
Method__init__
(self, value)
src/4/easy_implementation_of_the_iterator_protocol/hardexample.py:4
Method__init__
(self, start_node)
src/4/easy_implementation_of_the_iterator_protocol/hardexample.py:24
Method__init__
(self, start)
src/4/iterating_in_reverse/example.py:4
Method__init__
(self, value)
src/4/delegating-iteration/example.py:4
Method__init__
(self, user_id)
src/1/sort_objects_without_native_comparison_support/example.py:4
Method__init__
(self)
src/1/implementing_a_priority_queue/example.py:8
Method__init__
(self, name)
src/1/implementing_a_priority_queue/example.py:21
Method__init__
(self, d)
src/6/reading_and_writing_json_data/example.py:16
Method__init__
(self, x, y)
src/6/reading_and_writing_json_data/example.py:27
Method__init__
(self, format, offset)
src/6/reading_nested_and_variable_sized_binary_structures/example4.py:9
Method__init__
(self, name, struct_type, offset)
src/6/reading_nested_and_variable_sized_binary_structures/example4.py:24
Method__init__
(self, clsname, bases, clsdict)
src/6/reading_nested_and_variable_sized_binary_structures/example4.py:42
Method__init__
(self, bytedata)
src/6/reading_nested_and_variable_sized_binary_structures/example4.py:60
Method__init__
(self, bytedata)
src/6/reading_nested_and_variable_sized_binary_structures/example4.py:68
Method__init__
(self, format, offset)
src/6/reading_nested_and_variable_sized_binary_structures/example3.py:9
Method__init__
(self, name, struct_type, offset)
src/6/reading_nested_and_variable_sized_binary_structures/example3.py:24
Method__init__
(self, clsname, bases, clsdict)
src/6/reading_nested_and_variable_sized_binary_structures/example3.py:42
Method__init__
(self, bytedata)
src/6/reading_nested_and_variable_sized_binary_structures/example3.py:60
Method__init__
(self, format, offset)
src/6/reading_nested_and_variable_sized_binary_structures/example2.py:6
Method__init__
(self, clsname, bases, clsdict)
src/6/reading_nested_and_variable_sized_binary_structures/example2.py:21
Method__init__
(self, bytedata)
src/6/reading_nested_and_variable_sized_binary_structures/example2.py:35
Method__init__
(self, format, offset)
src/6/reading_nested_and_variable_sized_binary_structures/example1.py:4
Method__init__
(self, bytedata)
src/6/reading_nested_and_variable_sized_binary_structures/example1.py:16
Method__init__
(self, **kwargs)
src/6/parsing_xml_documents_with_namespaces/example.py:8
Method__init__
(self, first_name)
src/8/creating_managed_attributes/example.py:4
Method__init__
(self, initial=None)
src/8/implementing_custom_containers/example2.py:4
Method__init__
(self, initial=None)
src/8/implementing_custom_containers/example1.py:7
Method__init__
(self, name, expected_type)
src/8/creating_a_new_kind_of_class_or_instance_attribute/example2.py:3
Method__init__
(self, name, shares, price)
src/8/creating_a_new_kind_of_class_or_instance_attribute/example2.py:33
Method__init__
(self, name)
src/8/creating_a_new_kind_of_class_or_instance_attribute/example1.py:3
Method__init__
(self, x, y)
src/8/creating_a_new_kind_of_class_or_instance_attribute/example1.py:23
Method__init__
(self, year, month, day)
src/8/creating_an_instance_without_invoking_init/example.py:4
Method__init__
(self, x, y)
src/8/changing_the_string_representation_of_instances/example.py:2
Method__init__
(self, node)
src/8/implementing_the_visitor_pattern_without_recursion/example3.py:10
Method__init__
(self, operand)
src/8/implementing_the_visitor_pattern_without_recursion/example3.py:42
Method__init__
(self, left, right)
src/8/implementing_the_visitor_pattern_without_recursion/example3.py:46
Method__init__
(self, value)
src/8/implementing_the_visitor_pattern_without_recursion/example3.py:66
Method__init__
(self, operand)
src/8/implementing_the_visitor_pattern_without_recursion/example2.py:6
Method__init__
(self, left, right)
src/8/implementing_the_visitor_pattern_without_recursion/example2.py:10
← previousnext →301–400 of 870, ranked by callers