Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dabeaz/python-cookbook
/ functions
Functions
870 in github.com/dabeaz/python-cookbook
⨍
Functions
870
◇
Types & classes
318
↳
Endpoints
3
↓ 62 callers
Method
send
Send a message to the actor
src/12/defining_an_actor_task/actor.py:12
↓ 42 callers
Method
join
(self)
src/12/defining_an_actor_task/actor.py:50
↓ 35 callers
Method
recv
Receive an incoming message
src/12/defining_an_actor_task/actor.py:18
↓ 24 callers
Function
func
()
src/13/adding_logging_to_libraries/somelib.py:8
↓ 20 callers
Method
pop
(self)
src/1/implementing_a_priority_queue/example.py:16
↓ 20 callers
Method
read
(self, maxbytes=-1)
src/8/how_to_define_an_interface_or_abstract_base_class/example.py:7
↓ 19 callers
Method
accept
(self)
src/12/using_generators_as_an_alternative_to_threads/netsched.py:108
↓ 19 callers
Method
write
(self, data)
src/8/how_to_define_an_interface_or_abstract_base_class/example.py:10
↓ 16 callers
Method
close
(self)
src/11/event_driven_io_explained/tcpserver.py:35
↓ 15 callers
Method
add
(self, item)
src/8/implementing_custom_containers/example1.py:18
↓ 15 callers
Method
visit
(self, node)
src/8/implementing_the_visitor_pattern/example.py:38
↓ 14 callers
Method
parse
(self,text)
src/2/writing_a_simple_recursive_descent_parser/example.py:41
↓ 14 callers
Method
start
Start concurrent execution
src/12/defining_an_actor_task/actor.py:33
↓ 14 callers
Method
start
(self)
src/12/how_to_determine_if_a_thread_has_started/example2.py:10
↓ 13 callers
Method
_accept
Test and consume the next token if it matches toktype
src/2/writing_a_simple_recursive_descent_parser/example.py:52
↓ 13 callers
Method
close
Close the actor, thus shutting it down
src/12/defining_an_actor_task/actor.py:27
↓ 13 callers
Method
visit
(self, node)
src/8/implementing_the_visitor_pattern_without_recursion/node.py:13
↓ 11 callers
Method
add_room
(self, room)
src/8/making_classes_support_comparison_operations/example.py:20
↓ 10 callers
Function
apply_async
(func, args, *, callback)
src/7/carrying_extra_state_with_callback_functions/example.py:5
↓ 10 callers
Method
get
(self)
src/12/polling_multiple_thread_queues/pqueue.py:28
↓ 10 callers
Method
keys
(self)
src/11/adding_ssl_to_network_servers/ssl_xmlrpc_server.py:32
↓ 10 callers
Method
serve_forever
(self)
src/11/adding_ssl_to_network_servers/ssl_xmlrpc_server.py:35
↓ 9 callers
Method
fileno
(self)
src/12/polling_multiple_thread_queues/pqueue.py:21
↓ 9 callers
Method
put
(self, item, priority)
src/12/how_to_communicate_between_threads/example2.py:10
↓ 8 callers
Function
spam
(b=[])
src/7/functions_with_default_arguments/example.py:5
↓ 7 callers
Function
acquire
(*locks)
src/12/locking_with_deadlock_avoidance/deadlock.py:8
↓ 7 callers
Method
start
(self)
src/13/making_a_stopwatch/stopwatch.py:9
↓ 6 callers
Method
fileno
(self)
src/11/event_driven_io_explained/tcpserver.py:15
↓ 6 callers
Method
put
(self, item)
src/12/polling_multiple_thread_queues/pqueue.py:24
↓ 5 callers
Method
add_child
(self, node)
src/4/easy_implementation_of_the_iterator_protocol/example.py:13
↓ 5 callers
Method
add_child
(self, other_node)
src/4/easy_implementation_of_the_iterator_protocol/hardexample.py:11
↓ 5 callers
Method
open
(self)
src/8/implementing_stateful_objects_or_state_machines/example2.py:15
↓ 5 callers
Method
set
(self, name, value)
src/11/adding_ssl_to_network_servers/ssl_xmlrpc_server.py:23
↓ 5 callers
Method
submit
(self, func, *args, **kwargs)
src/12/defining_an_actor_task/worker.py:18
↓ 4 callers
Method
__new__
(cls, name)
src/8/creating_cached_instances/example3.py:7
↓ 4 callers
Method
bar
(self, *args)
src/9/multiple_dispatch_with_function_annotations/example2.py:36
↓ 4 callers
Method
bar
(self, x:int, y:int)
src/9/multiple_dispatch_with_function_annotations/example1.py:89
↓ 4 callers
Method
binop
(self, node, instruction)
src/8/implementing_the_visitor_pattern/example.py:80
↓ 4 callers
Method
distance
(self, x, y)
src/8/calling_a_method_on_an_object_given_the_name_as_a_string/example.py:12
↓ 4 callers
Method
exists
(self, name)
src/11/adding_ssl_to_network_servers/ssl_xmlrpc_server.py:29
↓ 4 callers
Method
get
(self, name)
src/11/adding_ssl_to_network_servers/ssl_xmlrpc_server.py:20
↓ 4 callers
Method
new
Add a newly started task to the scheduler
src/12/using_generators_as_an_alternative_to_threads/netsched.py:30
↓ 4 callers
Method
pop
(self)
src/7/accessing_variables_defined_inside_a_closure/example3.py:11
↓ 4 callers
Method
push
(self, item, priority)
src/1/implementing_a_priority_queue/example.py:12
↓ 4 callers
Method
register_function
(self, func)
src/11/implementing_remote_procedure_call/rpcserver.py:8
↓ 4 callers
Method
result
(self)
src/12/defining_an_actor_task/worker.py:13
↓ 4 callers
Method
send
Send a message to a named actor
src/12/using_generators_as_an_alternative_to_threads/actorsched.py:15
↓ 4 callers
Method
send
(self, msg)
src/12/implementing_publish_subscribe_messaging/exchange1.py:29
↓ 4 callers
Method
send
(self, msg)
src/12/implementing_publish_subscribe_messaging/exchange2.py:42
↓ 3 callers
Method
__init__
(self)
src/8/calling_a_method_on_a_parent_class/example4.py:9
↓ 3 callers
Method
__set__
(self, instance, value)
src/8/extending_a_property_in_a_subclass/example2.py:11
↓ 3 callers
Function
_get_links
(url)
src/10/loading_modules_from_a_remote_machine_using_import_hooks/urlimport.py:15
↓ 3 callers
Function
add
(x, y)
src/9/defining_a_decorator_with_user_adjustable_attributes/example2.py:33
↓ 3 callers
Function
add
(x, y)
src/9/defining_a_decorator_with_user_adjustable_attributes/example1.py:43
↓ 3 callers
Method
add_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 callers
Method
bar
(self, x)
src/9/defining_decorators_as_classes/example3.py:35
↓ 3 callers
Method
bar
(self, x)
src/9/defining_decorators_as_classes/example2.py:22
↓ 3 callers
Method
bar
(self, x)
src/9/defining_decorators_as_classes/example1.py:28
↓ 3 callers
Method
clear
(self)
src/4/generators_with_state/example.py:16
↓ 3 callers
Method
close
(self)
src/8/implementing_stateful_objects_or_state_machines/example2.py:18
↓ 3 callers
Function
event_loop
(handlers)
src/11/event_driven_io_explained/eventhandler.py:24
↓ 3 callers
Function
func
()
src/7/accessing_variables_defined_inside_a_closure/example1.py:6
↓ 3 callers
Method
get
(self)
src/12/how_to_communicate_between_threads/example2.py:16
↓ 3 callers
Method
get_filename
(self, fullname)
src/10/loading_modules_from_a_remote_machine_using_import_hooks/urlimport.py:112
↓ 3 callers
Function
get_spam
(name)
src/8/creating_cached_instances/example2.py:20
↓ 3 callers
Function
get_spam
(name)
src/8/creating_cached_instances/example1.py:11
↓ 3 callers
Method
insert
(self, index, value)
src/8/implementing_custom_containers/example2.py:20
↓ 3 callers
Function
make_sig
(*names)
src/9/enforcing_an_argument_signature/example1.py:5
↓ 3 callers
Method
new_state
(self, newstate)
src/8/implementing_stateful_objects_or_state_machines/example2.py:5
↓ 3 callers
Method
new_state
(self, state)
src/8/implementing_stateful_objects_or_state_machines/example1.py:5
↓ 3 callers
Method
new_task
Admit a newly started task to the scheduler
src/12/using_generators_as_an_alternative_to_threads/simple.py:24
↓ 3 callers
Method
push
(self, item)
src/7/accessing_variables_defined_inside_a_closure/example3.py:8
↓ 3 callers
Method
register
(self, method, path, function)
src/11/creating_a_simple_rest_based_interface/resty.py:22
↓ 3 callers
Method
register
Register a new method as a multimethod
src/9/multiple_dispatch_with_function_annotations/example1.py:12
↓ 3 callers
Function
sample
()
src/2/combining_and_concatenating_strings/example.py:5
↓ 3 callers
Method
send
(self, data)
src/12/using_generators_as_an_alternative_to_threads/netsched.py:106
↓ 3 callers
Function
serialize
(obj, stream)
src/8/how_to_define_an_interface_or_abstract_base_class/example.py:21
↓ 3 callers
Function
spam
(x, y, z=42)
src/9/enforcing_type_checking_on_a_function_using_a_decorator/example.py:35
↓ 3 callers
Function
sub
(text)
src/2/variable_interpolation_in_strings/example.py:25
↓ 3 callers
Function
test
(s)
src/8/implementing_a_data_model_or_type_system/example.py:78
↓ 3 callers
Function
test
(s)
src/8/implementing_a_data_model_or_type_system/example_clsdec.py:94
↓ 3 callers
Method
today
(cls)
src/8/creating_an_instance_without_invoking_init/example.py:11
↓ 3 callers
Method
today
(cls)
src/8/how_to_define_more_than_one_constructor_in_a_class/example.py:12
↓ 3 callers
Method
today
(cls)
src/8/how_to_define_more_than_one_constructor_in_a_class/example2.py:12
↓ 2 callers
Method
__delete__
(self, instance)
src/8/creating_a_new_kind_of_class_or_instance_attribute/example2.py:18
↓ 2 callers
Method
__init__
(self)
src/8/calling_a_method_on_a_parent_class/example5.py:9
↓ 2 callers
Method
__set__
(self, instance, value)
src/8/implementing_a_data_model_or_type_system/example.py:14
↓ 2 callers
Method
__setitem__
(self, key, value)
src/8/extending_classes_with_mixins/example1.py:11
↓ 2 callers
Method
_advance
Advance one token ahead
src/2/writing_a_simple_recursive_descent_parser/example.py:48
↓ 2 callers
Method
_expect
Consume next token if it matches toktype or raise SyntaxError
src/2/writing_a_simple_recursive_descent_parser/example.py:60
↓ 2 callers
Method
_read_wait
(self, fileno, evt, task)
src/12/using_generators_as_an_alternative_to_threads/netsched.py:45
↓ 2 callers
Function
add
(x, y)
src/9/defining_decorators_as_classes/example3.py:30
↓ 2 callers
Function
add
(x, y)
src/9/defining_decorators_as_classes/example2.py:17
↓ 2 callers
Function
add
(x, y)
src/9/defining_decorators_as_classes/example1.py:23
↓ 2 callers
Function
add
(x, y)
src/9/enforcing_type_checking_on_a_function_using_a_decorator/example.py:31
↓ 2 callers
Method
add_child
(self, node)
src/4/delegating-iteration/example.py:11
↓ 2 callers
Method
add_child
(self, child)
src/8/managing_memory_in_cyclic_data_structures/example.py:21
↓ 2 callers
Method
attach
(self, task)
src/12/implementing_publish_subscribe_messaging/exchange1.py:7
↓ 2 callers
Function
avg
(values)
src/15/accessing_c_code_using_ctypes/sample.py:66
↓ 2 callers
Function
avg
(first, *rest)
src/7/functions_that_accept_any_number_of_arguments/example.py:3
next →
1–100 of 870, ranked by callers