MCPcopy Create free account

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

Functions870 in github.com/dabeaz/python-cookbook

↓ 62 callersMethodsend
Send a message to the actor
src/12/defining_an_actor_task/actor.py:12
↓ 42 callersMethodjoin
(self)
src/12/defining_an_actor_task/actor.py:50
↓ 35 callersMethodrecv
Receive an incoming message
src/12/defining_an_actor_task/actor.py:18
↓ 24 callersFunctionfunc
()
src/13/adding_logging_to_libraries/somelib.py:8
↓ 20 callersMethodpop
(self)
src/1/implementing_a_priority_queue/example.py:16
↓ 20 callersMethodread
(self, maxbytes=-1)
src/8/how_to_define_an_interface_or_abstract_base_class/example.py:7
↓ 19 callersMethodaccept
(self)
src/12/using_generators_as_an_alternative_to_threads/netsched.py:108
↓ 19 callersMethodwrite
(self, data)
src/8/how_to_define_an_interface_or_abstract_base_class/example.py:10
↓ 16 callersMethodclose
(self)
src/11/event_driven_io_explained/tcpserver.py:35
↓ 15 callersMethodadd
(self, item)
src/8/implementing_custom_containers/example1.py:18
↓ 15 callersMethodvisit
(self, node)
src/8/implementing_the_visitor_pattern/example.py:38
↓ 14 callersMethodparse
(self,text)
src/2/writing_a_simple_recursive_descent_parser/example.py:41
↓ 14 callersMethodstart
Start concurrent execution
src/12/defining_an_actor_task/actor.py:33
↓ 14 callersMethodstart
(self)
src/12/how_to_determine_if_a_thread_has_started/example2.py:10
↓ 13 callersMethod_accept
Test and consume the next token if it matches toktype
src/2/writing_a_simple_recursive_descent_parser/example.py:52
↓ 13 callersMethodclose
Close the actor, thus shutting it down
src/12/defining_an_actor_task/actor.py:27
↓ 13 callersMethodvisit
(self, node)
src/8/implementing_the_visitor_pattern_without_recursion/node.py:13
↓ 11 callersMethodadd_room
(self, room)
src/8/making_classes_support_comparison_operations/example.py:20
↓ 10 callersFunctionapply_async
(func, args, *, callback)
src/7/carrying_extra_state_with_callback_functions/example.py:5
↓ 10 callersMethodget
(self)
src/12/polling_multiple_thread_queues/pqueue.py:28
↓ 10 callersMethodkeys
(self)
src/11/adding_ssl_to_network_servers/ssl_xmlrpc_server.py:32
↓ 10 callersMethodserve_forever
(self)
src/11/adding_ssl_to_network_servers/ssl_xmlrpc_server.py:35
↓ 9 callersMethodfileno
(self)
src/12/polling_multiple_thread_queues/pqueue.py:21
↓ 9 callersMethodput
(self, item, priority)
src/12/how_to_communicate_between_threads/example2.py:10
↓ 8 callersFunctionspam
(b=[])
src/7/functions_with_default_arguments/example.py:5
↓ 7 callersFunctionacquire
(*locks)
src/12/locking_with_deadlock_avoidance/deadlock.py:8
↓ 7 callersMethodstart
(self)
src/13/making_a_stopwatch/stopwatch.py:9
↓ 6 callersMethodfileno
(self)
src/11/event_driven_io_explained/tcpserver.py:15
↓ 6 callersMethodput
(self, item)
src/12/polling_multiple_thread_queues/pqueue.py:24
↓ 5 callersMethodadd_child
(self, node)
src/4/easy_implementation_of_the_iterator_protocol/example.py:13
↓ 5 callersMethodadd_child
(self, other_node)
src/4/easy_implementation_of_the_iterator_protocol/hardexample.py:11
↓ 5 callersMethodopen
(self)
src/8/implementing_stateful_objects_or_state_machines/example2.py:15
↓ 5 callersMethodset
(self, name, value)
src/11/adding_ssl_to_network_servers/ssl_xmlrpc_server.py:23
↓ 5 callersMethodsubmit
(self, func, *args, **kwargs)
src/12/defining_an_actor_task/worker.py:18
↓ 4 callersMethod__new__
(cls, name)
src/8/creating_cached_instances/example3.py:7
↓ 4 callersMethodbar
(self, *args)
src/9/multiple_dispatch_with_function_annotations/example2.py:36
↓ 4 callersMethodbar
(self, x:int, y:int)
src/9/multiple_dispatch_with_function_annotations/example1.py:89
↓ 4 callersMethodbinop
(self, node, instruction)
src/8/implementing_the_visitor_pattern/example.py:80
↓ 4 callersMethoddistance
(self, x, y)
src/8/calling_a_method_on_an_object_given_the_name_as_a_string/example.py:12
↓ 4 callersMethodexists
(self, name)
src/11/adding_ssl_to_network_servers/ssl_xmlrpc_server.py:29
↓ 4 callersMethodget
(self, name)
src/11/adding_ssl_to_network_servers/ssl_xmlrpc_server.py:20
↓ 4 callersMethodnew
Add a newly started task to the scheduler
src/12/using_generators_as_an_alternative_to_threads/netsched.py:30
↓ 4 callersMethodpop
(self)
src/7/accessing_variables_defined_inside_a_closure/example3.py:11
↓ 4 callersMethodpush
(self, item, priority)
src/1/implementing_a_priority_queue/example.py:12
↓ 4 callersMethodregister_function
(self, func)
src/11/implementing_remote_procedure_call/rpcserver.py:8
↓ 4 callersMethodresult
(self)
src/12/defining_an_actor_task/worker.py:13
↓ 4 callersMethodsend
Send a message to a named actor
src/12/using_generators_as_an_alternative_to_threads/actorsched.py:15
↓ 4 callersMethodsend
(self, msg)
src/12/implementing_publish_subscribe_messaging/exchange1.py:29
↓ 4 callersMethodsend
(self, msg)
src/12/implementing_publish_subscribe_messaging/exchange2.py:42
↓ 3 callersMethod__init__
(self)
src/8/calling_a_method_on_a_parent_class/example4.py:9
↓ 3 callersMethod__set__
(self, instance, value)
src/8/extending_a_property_in_a_subclass/example2.py:11
↓ 3 callersFunction_get_links
(url)
src/10/loading_modules_from_a_remote_machine_using_import_hooks/urlimport.py:15
↓ 3 callersFunctionadd
(x, y)
src/9/defining_a_decorator_with_user_adjustable_attributes/example2.py:33
↓ 3 callersFunctionadd
(x, y)
src/9/defining_a_decorator_with_user_adjustable_attributes/example1.py:43
↓ 3 callersMethodadd_ready
Append an already started task to the ready queue. msg is what to send into the task when it resumes.
src/12/using_generators_as_an_alternative_to_threads/netsched.py:37
↓ 3 callersMethodbar
(self, x)
src/9/defining_decorators_as_classes/example3.py:35
↓ 3 callersMethodbar
(self, x)
src/9/defining_decorators_as_classes/example2.py:22
↓ 3 callersMethodbar
(self, x)
src/9/defining_decorators_as_classes/example1.py:28
↓ 3 callersMethodclear
(self)
src/4/generators_with_state/example.py:16
↓ 3 callersMethodclose
(self)
src/8/implementing_stateful_objects_or_state_machines/example2.py:18
↓ 3 callersFunctionevent_loop
(handlers)
src/11/event_driven_io_explained/eventhandler.py:24
↓ 3 callersFunctionfunc
()
src/7/accessing_variables_defined_inside_a_closure/example1.py:6
↓ 3 callersMethodget
(self)
src/12/how_to_communicate_between_threads/example2.py:16
↓ 3 callersMethodget_filename
(self, fullname)
src/10/loading_modules_from_a_remote_machine_using_import_hooks/urlimport.py:112
↓ 3 callersFunctionget_spam
(name)
src/8/creating_cached_instances/example2.py:20
↓ 3 callersFunctionget_spam
(name)
src/8/creating_cached_instances/example1.py:11
↓ 3 callersMethodinsert
(self, index, value)
src/8/implementing_custom_containers/example2.py:20
↓ 3 callersFunctionmake_sig
(*names)
src/9/enforcing_an_argument_signature/example1.py:5
↓ 3 callersMethodnew_state
(self, newstate)
src/8/implementing_stateful_objects_or_state_machines/example2.py:5
↓ 3 callersMethodnew_state
(self, state)
src/8/implementing_stateful_objects_or_state_machines/example1.py:5
↓ 3 callersMethodnew_task
Admit a newly started task to the scheduler
src/12/using_generators_as_an_alternative_to_threads/simple.py:24
↓ 3 callersMethodpush
(self, item)
src/7/accessing_variables_defined_inside_a_closure/example3.py:8
↓ 3 callersMethodregister
(self, method, path, function)
src/11/creating_a_simple_rest_based_interface/resty.py:22
↓ 3 callersMethodregister
Register a new method as a multimethod
src/9/multiple_dispatch_with_function_annotations/example1.py:12
↓ 3 callersFunctionsample
()
src/2/combining_and_concatenating_strings/example.py:5
↓ 3 callersMethodsend
(self, data)
src/12/using_generators_as_an_alternative_to_threads/netsched.py:106
↓ 3 callersFunctionserialize
(obj, stream)
src/8/how_to_define_an_interface_or_abstract_base_class/example.py:21
↓ 3 callersFunctionspam
(x, y, z=42)
src/9/enforcing_type_checking_on_a_function_using_a_decorator/example.py:35
↓ 3 callersFunctionsub
(text)
src/2/variable_interpolation_in_strings/example.py:25
↓ 3 callersFunctiontest
(s)
src/8/implementing_a_data_model_or_type_system/example.py:78
↓ 3 callersFunctiontest
(s)
src/8/implementing_a_data_model_or_type_system/example_clsdec.py:94
↓ 3 callersMethodtoday
(cls)
src/8/creating_an_instance_without_invoking_init/example.py:11
↓ 3 callersMethodtoday
(cls)
src/8/how_to_define_more_than_one_constructor_in_a_class/example.py:12
↓ 3 callersMethodtoday
(cls)
src/8/how_to_define_more_than_one_constructor_in_a_class/example2.py:12
↓ 2 callersMethod__delete__
(self, instance)
src/8/creating_a_new_kind_of_class_or_instance_attribute/example2.py:18
↓ 2 callersMethod__init__
(self)
src/8/calling_a_method_on_a_parent_class/example5.py:9
↓ 2 callersMethod__set__
(self, instance, value)
src/8/implementing_a_data_model_or_type_system/example.py:14
↓ 2 callersMethod__setitem__
(self, key, value)
src/8/extending_classes_with_mixins/example1.py:11
↓ 2 callersMethod_advance
Advance one token ahead
src/2/writing_a_simple_recursive_descent_parser/example.py:48
↓ 2 callersMethod_expect
Consume next token if it matches toktype or raise SyntaxError
src/2/writing_a_simple_recursive_descent_parser/example.py:60
↓ 2 callersMethod_read_wait
(self, fileno, evt, task)
src/12/using_generators_as_an_alternative_to_threads/netsched.py:45
↓ 2 callersFunctionadd
(x, y)
src/9/defining_decorators_as_classes/example3.py:30
↓ 2 callersFunctionadd
(x, y)
src/9/defining_decorators_as_classes/example2.py:17
↓ 2 callersFunctionadd
(x, y)
src/9/defining_decorators_as_classes/example1.py:23
↓ 2 callersFunctionadd
(x, y)
src/9/enforcing_type_checking_on_a_function_using_a_decorator/example.py:31
↓ 2 callersMethodadd_child
(self, node)
src/4/delegating-iteration/example.py:11
↓ 2 callersMethodadd_child
(self, child)
src/8/managing_memory_in_cyclic_data_structures/example.py:21
↓ 2 callersMethodattach
(self, task)
src/12/implementing_publish_subscribe_messaging/exchange1.py:7
↓ 2 callersFunctionavg
(values)
src/15/accessing_c_code_using_ctypes/sample.py:66
↓ 2 callersFunctionavg
(first, *rest)
src/7/functions_that_accept_any_number_of_arguments/example.py:3
next →1–100 of 870, ranked by callers