MCPcopy Create free account

hub / github.com/SigmaQuan/Better-Python-59-Ways / functions

Functions279 in github.com/SigmaQuan/Better-Python-59-Ways

Method__str__
(self)
item_40_consider_coroutines.py:412
Function_dot_product
(a, b)
item_50_use_packages.py:139
Method_traverse
(self, key, value)
item_26_when_use_multiple_inheritance.py:111
Methodadd_student
(self, name)
item_22_prefer_helper_classes.py:66
Methodadd_student
(self, name)
item_22_prefer_helper_classes.py:112
Methodaverage_grade
(self, name)
item_22_prefer_helper_classes.py:38
Methodaverage_grade
(self, name)
item_22_prefer_helper_classes.py:78
Methodaverage_grade
(self)
item_22_prefer_helper_classes.py:263
Functioncomplex_func
(a, b, c)
item_57_pdb.py:27
Functionconsumer
()
item_39_use_queue.py:183
Functioncoprime
(a, b)
item_12_avoid_else.py:100
Functioncoprime2
(a, b)
item_12_avoid_else.py:112
Functiondetermine_weight
(volume, density)
item_51_define_a_root_exception.py:15
Functiondivide_json
(path)
item_13_try_except_else_finally.py:77
Functiondownload
(item)
item_39_use_queue.py:93
Functionfind_anagrms
Find all anagrams for a word. This function only runs as fast as the test for membership in the 'dictionary' container. It will be slow if th
item_49_write_docstrings_4_everything.py:146
Methodfoo
(self)
item_33_validate_subclass.py:33
Methodfrom_json
(cls, data)
item_26_when_use_multiple_inheritance.py:170
Functiongcd
(pair)
item_41_consider_concurrent_futures.py:59
Methodgenerate_inputs
(cls, config)
item_24_use_classmethod.py:179
Methodget_private_field
(self)
item_27_prefer_public_attributes.py:69
Methodget_value
(self)
item_27_prefer_public_attributes.py:167
Methodgrade
(self)
item_31_use_descriptors.py:20
Functionhelper
(x)
item_15_closure_variable_scope.py:16
Methodincrement
(self, offset)
item_38_use_lock.py:133
Functionindex_words_iter
(text)
item_16_generators_instead_of_lists.py:50
Methodinterior_angles
(cls)
item_33_validate_subclass.py:100
Functionload_json_key
(data, key)
item_13_try_except_else_finally.py:45
Functionlog_missing
()
item_23_accepts_functions_4_interfaces.py:35
Methodmap
(self)
item_24_use_classmethod.py:65
Methodmap
(self)
item_24_use_classmethod.py:208
Methodmath_grade
(self)
item_31_use_descriptors.py:67
Functionmissing
()
item_23_accepts_functions_4_interfaces.py:75
Methodmissing
(self)
item_23_accepts_functions_4_interfaces.py:108
Functionmy_program
()
item_58_profile_before_optimizing.py:190
Methodohms
(self)
item_29_use_plain_attributes.py:136
Methodohms
(self)
item_29_use_plain_attributes.py:175
Methodohms
(self)
item_29_use_plain_attributes.py:207
Functionpalindrome
Return True if the given word is a palindrome.
item_49_write_docstrings_4_everything.py:30
Functionpickle_game_state
(game_state)
item_44_make_pickle_reliable.py:131
Methodquota
(self)
item_30_consider_property.py:113
Methodread
(self)
item_24_use_classmethod.py:35
Methodread
(self)
item_24_use_classmethod.py:175
Methodreduce
(self, other)
item_24_use_classmethod.py:69
Methodreduce
(self, other)
item_24_use_classmethod.py:211
Methodreport_grade
(self, name, score)
item_22_prefer_helper_classes.py:35
Methodreport_grade
(self, name, subject, grade)
item_22_prefer_helper_classes.py:73
Methodreport_grade
(self, name, subject, score, weight)
item_22_prefer_helper_classes.py:115
Functionresize
(item)
item_39_use_queue.py:99
Functionrun
()
item_59_use_tracemalloc_waste_memory.py:3
Methodrun
(self)
item_39_use_queue.py:316
Methodrun
(self)
item_37_use_threads.py:61
Methodserialize
(self)
item_34_register_class_existence.py:95
MethodsetUp
(self)
item_56_test_utils.py:19
MethodsetUp
(self)
item_56_unittest.py:100
Functionsort_priority3
(numbers, group)
item_15_closure_variable_scope.py:135
MethodtearDown
(self)
item_56_test_utils.py:22
MethodtearDown
(self)
item_56_unittest.py:103
Methodtest_to_str_bad
(self)
item_56_test_utils.py:14
Methodtest_to_str_bad
(self)
item_56_test_utils.py:31
Methodtest_to_str_bad
(self)
item_56_unittest.py:64
Methodtest_to_str_bytes
(self)
item_56_test_utils.py:8
Methodtest_to_str_bytes
(self)
item_56_test_utils.py:25
Methodtest_to_str_bytes
(self)
item_56_unittest.py:58
Methodtest_to_str_str
(self)
item_56_test_utils.py:11
Methodtest_to_str_str
(self)
item_56_test_utils.py:28
Methodtest_to_str_str
(self)
item_56_unittest.py:61
Functionto_bytes
(bytes_or_str)
item_03_Difference_bytes_str_unicode.py:53
Methodto_json
(self)
item_26_when_use_multiple_inheritance.py:174
Functionto_str
(bytes_or_str)
item_03_Difference_bytes_str_unicode.py:41
Functionto_str
(data)
item_56_unittest.py:44
Functionto_unicode
(unicode_or_str)
item_03_Difference_bytes_str_unicode.py:65
Functiontrace
(func)
item_42_define_function_decorators.py:33
Functionunpickle_game_state
(kwargs)
item_44_make_pickle_reliable.py:141
Functionupload
(item)
item_39_use_queue.py:105
Methodvoltage
(self)
item_29_use_plain_attributes.py:105
Functionworker
(sensor_index, how_many, counter)
item_38_use_lock.py:41
Functionwrapper
(*args, **kwargs)
item_42_define_function_decorators.py:34
Methodwriting_grade
(self)
item_31_use_descriptors.py:58
← previous201–279 of 279, ranked by callers