MCPcopy Create free account

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

Functions870 in github.com/dabeaz/python-cookbook

↓ 2 callersFunctioncidr_range
(cidr_address)
src/13/generating_a_range_of_ip_addresses_from_a_cidr_address/example.py:3
↓ 2 callersMethodclient_handler
(self,client)
src/12/using_generators_as_an_alternative_to_threads/netsched.py:145
↓ 2 callersFunctioncountdown
(n)
src/13/making_a_stopwatch/stopwatch.py:37
↓ 2 callersFunctioncountdown
(n)
src/12/using_generators_as_an_alternative_to_threads/simple.py:4
↓ 2 callersFunctioncountdown
(n)
src/9/defining_decorators_as_classes/example3.py:40
↓ 2 callersFunctioncountdown
(n)
src/9/defining_a_decorator_with_user_adjustable_attributes/example1.py:65
↓ 2 callersFunctioncountdown2
(n)
src/9/defining_a_decorator_with_user_adjustable_attributes/example1.py:72
↓ 2 callersFunctiondaterange
(start, stop, step)
src/3/finding_the_date_range_for_the_current_month/example.py:17
↓ 2 callersMethoddepth_first
(self)
src/4/easy_implementation_of_the_iterator_protocol/hardexample.py:17
↓ 2 callersMethoddetach
(self, task)
src/12/implementing_publish_subscribe_messaging/exchange1.py:10
↓ 2 callersMethodend
(self)
src/13/making_a_stopwatch/stopwatch.py:14
↓ 2 callersMethodexpr
expression ::= term { ('+'|'-') term }*
src/2/writing_a_simple_recursive_descent_parser/example.py:67
↓ 2 callersMethodfactor
factor ::= NUM | ( expr )
src/2/writing_a_simple_recursive_descent_parser/example.py:93
↓ 2 callersMethodfactor
factor ::= NUM | ( expr )
src/2/writing_a_simple_recursive_descent_parser/example.py:141
↓ 2 callersFunctionflatten
(items, ignore_types=(str, bytes))
src/4/how_to_flatten_a_nested_sequence/example.py:5
↓ 2 callersMethodfrom_file
(cls, f)
src/6/reading_nested_and_variable_sized_binary_structures/example4.py:64
↓ 2 callersFunctiongen_concatenate
Chain a sequence of iterators together into a single sequence.
src/4/creating_data_processing_pipelines/example.py:30
↓ 2 callersFunctiongen_find
Find all filenames in a directory tree that match a shell wildcard pattern
src/4/creating_data_processing_pipelines/example.py:7
↓ 2 callersFunctiongen_grep
Look for a regex pattern in a sequence of lines
src/4/creating_data_processing_pipelines/example.py:37
↓ 2 callersFunctiongen_opener
Open a sequence of filenames one at a time producing a file object. The file is closed immediately when proceeding to the next iteration.
src/4/creating_data_processing_pipelines/example.py:15
↓ 2 callersMethodget
(self, name)
src/11/simple_remote_procedure_call_with_xmlrpc/keyserv.py:11
↓ 2 callersMethodhandle_resume
(self, sched, task)
src/12/using_generators_as_an_alternative_to_threads/netsched.py:8
↓ 2 callersFunctionlist_transaction
(orig_list)
src/9/defining_context_managers_the_easy_way/example2.py:4
↓ 2 callersFunctionload_module
(url)
src/10/loading_modules_from_a_remote_machine_using_import_hooks/explicit_load.py:7
↓ 2 callersMethodload_module
(self, fullname)
src/10/loading_modules_from_a_remote_machine_using_import_hooks/urlimport.py:136
↓ 2 callersFunctionlogged
(func)
src/10/monkeypatching_modules_on_import/example2.py:5
↓ 2 callersFunctionmake_element
(name,value,**attrs)
src/7/functions_that_accept_any_number_of_arguments/example.py:11
↓ 2 callersFunctionmake_handler
()
src/7/carrying_extra_state_with_callback_functions/example.py:45
↓ 2 callersFunctionminimum
(*values, clip=None)
src/7/functions_that_only_accept_keyword_arguments/example.py:14
↓ 2 callersMethodnew_actor
Admit a newly started actor to the scheduler and give it a name
src/12/using_generators_as_an_alternative_to_threads/actorsched.py:8
↓ 2 callersMethodread
(self)
src/8/implementing_stateful_objects_or_state_machines/example2.py:9
↓ 2 callersMethodread
(self)
src/8/implementing_stateful_objects_or_state_machines/example1.py:8
↓ 2 callersFunctionrecv
(maxsize, *, block=True)
src/7/functions_that_only_accept_keyword_arguments/example.py:4
↓ 2 callersMethodrecv
(self, maxbytes)
src/12/using_generators_as_an_alternative_to_threads/netsched.py:104
↓ 2 callersMethodregister
(self, name, uri)
src/6/parsing_xml_documents_with_namespaces/example.py:12
↓ 2 callersMethodregister_function
(self, func)
src/11/implementing_remote_procedure_call/jsonrpcserver.py:8
↓ 2 callersMethodrun
Run method to be implemented by the user
src/12/defining_an_actor_task/actor.py:53
↓ 2 callersMethodset
(self, name, value)
src/11/simple_remote_procedure_call_with_xmlrpc/keyserv.py:14
↓ 2 callersMethodspam
(self)
src/8/delegation_and_proxies/example4.py:2
↓ 2 callersMethodspam
(self)
src/8/calling_a_method_on_a_parent_class/example1.py:2
↓ 2 callersMethodterm
term ::= factor { ('*'|'/') factor }*
src/2/writing_a_simple_recursive_descent_parser/example.py:80
↓ 2 callersMethodterm
term ::= factor { ('*'|'/') factor }
src/2/writing_a_simple_recursive_descent_parser/example.py:128
↓ 2 callersFunctiontest
()
src/7/inlining_callback_functions/example.py:41
↓ 2 callersFunctiontyped_property
(name, expected_type)
src/9/avoiding_repetitive_property_methods/example1.py:1
↓ 2 callersMethodvisit
(self, node)
src/8/implementing_the_visitor_pattern_without_recursion/example3.py:14
↓ 2 callersMethodwait_for_tick
Wait for the next tick of the timer
src/12/how_to_determine_if_a_thread_has_started/example2.py:25
↓ 1 callersFunctionStack
()
src/7/accessing_variables_defined_inside_a_closure/example2.py:17
↓ 1 callersMethod__init__
(self, name, shares, price)
src/8/implementing_a_data_model_or_type_system/example.py:104
↓ 1 callersMethod__init__
(self)
src/8/how_to_encapsulate_names_in_a_class/example.py:5
↓ 1 callersMethod__init__
(self)
src/8/calling_a_method_on_a_parent_class/example2.py:2
↓ 1 callersMethod__init__
(self, name)
src/9/using_metaclasses_to_control_instance_creation/example3.py:21
↓ 1 callersMethod__init__
(self)
src/9/using_metaclasses_to_control_instance_creation/example2.py:18
↓ 1 callersMethod__new__
(cls, name, bases, ns, *, debug=False, synchronize=False)
src/9/defining_a_metaclass_that_takes_optional_arguments/example.py:11
↓ 1 callersMethod__private_method
(self)
src/8/how_to_encapsulate_names_in_a_class/example.py:7
↓ 1 callersMethod_complete
(self, callback, r)
src/11/event_driven_io_explained/threadpool.py:15
↓ 1 callersMethod_iopoll
(self)
src/12/using_generators_as_an_alternative_to_threads/netsched.py:20
↓ 1 callersMethod_visit
(self, node)
src/8/implementing_the_visitor_pattern_without_recursion/node.py:30
↓ 1 callersMethod_visit
(self, node)
src/8/implementing_the_visitor_pattern_without_recursion/example3.py:31
↓ 1 callersMethod_write_wait
(self, fileno, evt, task)
src/12/using_generators_as_an_alternative_to_threads/netsched.py:49
↓ 1 callersFunctionadd
(x, y)
src/9/defining_a_decorator_that_takes_arguments/example.py:25
↓ 1 callersFunctionadd
(x, y)
src/9/unwrapping_a_decorator/example.py:21
↓ 1 callersFunctionadd
(x, y)
src/9/defining_a_decorator_that_takes_an_optional_argument/example.py:19
↓ 1 callersFunctionapply_async
(func, args, *, callback)
src/7/inlining_callback_functions/example.py:5
↓ 1 callersMethodas_csv
(self)
src/9/capturing_class_attribute_definition_order/example1.py:43
↓ 1 callersMethodattach
(self, task)
src/12/implementing_publish_subscribe_messaging/exchange2.py:8
↓ 1 callersFunctionbar
()
src/15/diagnosing_segmentation_faults/example.py:8
↓ 1 callersMethodbar
(self, y)
src/8/delegation_and_proxies/example2.py:33
↓ 1 callersMethodbar
(self)
src/8/delegation_and_proxies/example1.py:12
↓ 1 callersMethodbar
(self)
src/10/splitting_a_module_into_multiple_files/mymodule/b.py:6
↓ 1 callersMethodclass_method
(cls, n)
src/9/applying_decorators_to_class_and_static_methods/example.py:25
↓ 1 callersFunctionclient_authenticate
Authenticate client to a remote service. connection represents a network connection. secret_key is a key known only to both client/server
src/11/simple_authentication_of_clients/auth.py:6
↓ 1 callersMethodclose
(self)
src/8/implementing_stateful_objects_or_state_machines/example1.py:17
↓ 1 callersFunctioncombine
(source, maxsize)
src/2/combining_and_concatenating_strings/example.py:22
↓ 1 callersFunctioncompute_cost
(records)
src/1/mapping_names_to_sequence_elements/example1.py:7
↓ 1 callersFunctioncountdown
(n)
src/14/profiling_and_timing_your_program/timethis.py:18
↓ 1 callersFunctioncountdown
(n)
src/15/consuming_an_iterable_from_c/example.py:5
↓ 1 callersFunctioncountdown
Counts down
src/9/preserving_function_metadata_when_writing_decorators/example.py:19
↓ 1 callersFunctioncountdown1
(n)
src/9/parsing_and_analyzing_python_source/namelower.py:56
↓ 1 callersFunctioncountdown2
(n)
src/9/parsing_and_analyzing_python_source/namelower.py:61
↓ 1 callersFunctioncounter
(sched)
src/12/using_generators_as_an_alternative_to_threads/actorsched.py:41
↓ 1 callersFunctioncountup
(n)
src/12/using_generators_as_an_alternative_to_threads/simple.py:11
↓ 1 callersFunctiondaemonize
(pidfile, *, stdin='/dev/null', stdout='/dev/null', stderr
src/12/launching_a_daemon_process_on_unix/daemon.py:9
↓ 1 callersMethoddecr
Decrement the counter with locking
src/12/how_to_lock_critical_sections/example1.py:18
↓ 1 callersFunctiondedupe
(items)
src/1/removing_duplicates_from_a_sequence_while_maintaining_order/example.py:5
↓ 1 callersFunctiondedupe
(items, key=None)
src/1/removing_duplicates_from_a_sequence_while_maintaining_order/example2.py:5
↓ 1 callersMethoddelete
(self, name)
src/11/simple_remote_procedure_call_with_xmlrpc/keyserv.py:17
↓ 1 callersMethoddelete
(self, name)
src/11/adding_ssl_to_network_servers/ssl_xmlrpc_server.py:26
↓ 1 callersMethoddepth_first
(self)
src/4/easy_implementation_of_the_iterator_protocol/example.py:19
↓ 1 callersMethoddetach
(self, task)
src/12/implementing_publish_subscribe_messaging/exchange2.py:11
↓ 1 callersFunctiondo_bar
(s)
src/1/unpack_a_fixed_number_of_elements_from_iterables_of_arbitrary_length/example.py:14
↓ 1 callersFunctiondo_foo
(x,y)
src/1/unpack_a_fixed_number_of_elements_from_iterables_of_arbitrary_length/example.py:11
↓ 1 callersFunctionecho_client
(client_sock, addr)
src/5/wrapping_an_existing_file_descriptor_as_a_file_object/echo.py:3
↓ 1 callersFunctionecho_client
(conn)
src/11/simple_communication_between_interpreters/echoserv.py:4
↓ 1 callersFunctionecho_client
(s)
src/11/adding_ssl_to_network_servers/echoserv.py:8
↓ 1 callersFunctionecho_handler
(client_sock)
src/11/simple_authentication_of_clients/server.py:6
↓ 1 callersFunctionecho_handler
(address, client_sock)
src/11/creating_a_tcp_server/echoserv5.py:5
↓ 1 callersFunctionecho_server
(address)
src/5/wrapping_an_existing_file_descriptor_as_a_file_object/echo.py:16
↓ 1 callersFunctionecho_server
(addr, nworkers)
src/12/how_to_create_a_thread_pool/example2.py:19
↓ 1 callersFunctionecho_server
(addr)
src/12/how_to_create_a_thread_pool/example1.py:17
↓ 1 callersFunctionecho_server
(address, authkey)
src/11/simple_communication_between_interpreters/echoserv.py:12
← previousnext →101–200 of 870, ranked by callers