MCPcopy Create free account

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

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

↓ 35 callersMethodappend
(self, str_grid)
item_40_consider_coroutines.py:395
↓ 17 callersMethodget
(self)
item_39_use_queue.py:52
↓ 13 callersMethod__init__
(self, value)
item_25_init_parent_classes_with_super.py:44
↓ 9 callersMethodput
(self, item)
item_39_use_queue.py:46
↓ 9 callersMethodreport_grade
(self, score, weight)
item_22_prefer_helper_classes.py:240
↓ 7 callersFunctionlog
(message, values)
item_18_reduce_visual_noise.py:13
↓ 6 callersMethodassign
(self, y, x, state)
item_40_consider_coroutines.py:343
↓ 6 callersFunctionflow_rate
(weight_diff, time_diff)
item_19_provide_optimal_behavior.py:70
↓ 6 callersMethodread
(self)
item_24_use_classmethod.py:22
↓ 6 callersFunctionto_str
(data)
item_56_utils.py:4
↓ 5 callersMethodclose
(self)
item_39_use_queue.py:286
↓ 5 callersFunctiondivide
(a, b)
item_14_prefer_exceptions.py:26
↓ 5 callersFunctionremainder
(number, divisor)
item_19_provide_optimal_behavior.py:8
↓ 5 callersMethodserialize
(self)
item_34_register_class_existence.py:20
↓ 5 callersMethodto_dict
(self)
item_26_when_use_multiple_inheritance.py:31
↓ 4 callersMethod__init__
(self, ohms)
item_29_use_plain_attributes.py:73
↓ 4 callersMethod__init__
(self, x, y)
item_34_register_class_existence.py:29
↓ 4 callersMethodaverage_grade
(self)
item_22_prefer_helper_classes.py:243
↓ 4 callersFunctiondecode
(data, default={})
item_20_use_none_and_docstrings.py:66
↓ 4 callersFunctiondeduct
(bucket, amount)
item_30_consider_property.py:46
↓ 4 callersMethodget_ohms
(self)
item_29_use_plain_attributes.py:35
↓ 4 callersFunctionlog
(message, when=datetime.datetime.now())
item_20_use_none_and_docstrings.py:15
↓ 4 callersFunctionnormalize
(numbers)
item_17_be_defensive.py:16
↓ 4 callersFunctionread_visits
(data_path)
item_17_be_defensive.py:41
↓ 4 callersFunctionsafe_division_d
(number, divisor, **kwargs)
item_21_enforce_clarity.py:175
↓ 3 callersMethod_traverse_dict
(self, instance_dict)
item_26_when_use_multiple_inheritance.py:38
↓ 3 callersMethodrun
(self)
item_39_use_queue.py:76
↓ 3 callersFunctionsafe_division_b
(number, divisor, ignore_overflow=False, ignore_zero_division=False)
item_21_enforce_clarity.py:55
↓ 2 callersMethod_check_grade
(value)
item_31_use_descriptors.py:51
↓ 2 callersMethod_search
(self, count, index)
item_28_inherit_from_collections_abc.py:82
↓ 2 callersMethod_traverse
(self, key, value)
item_26_when_use_multiple_inheritance.py:44
↓ 2 callersMethodadd_student
(self, name)
item_22_prefer_helper_classes.py:32
↓ 2 callersFunctioncomposed
()
item_40_consider_coroutines.py:467
↓ 2 callersFunctioncount_neighbors
(y, x)
item_40_consider_coroutines.py:144
↓ 2 callersFunctiondelegated
()
item_40_consider_coroutines.py:462
↓ 2 callersFunctiondeserialize
(data)
item_34_register_class_existence.py:117
↓ 2 callersFunctionexecute
(workers)
item_24_use_classmethod.py:102
↓ 2 callersFunctionfactorize
(number)
item_37_use_threads.py:33
↓ 2 callersFunctionfill
(bucket, amount)
item_30_consider_property.py:34
↓ 2 callersMethodget
(self)
item_27_prefer_public_attributes.py:213
↓ 2 callersMethodget_value
(self)
item_27_prefer_public_attributes.py:141
↓ 2 callersFunctionindex_words
(text)
item_16_generators_instead_of_lists.py:11
↓ 2 callersMethodmap
(self)
item_24_use_classmethod.py:53
↓ 2 callersFunctionmapreduce
(data_dir)
item_24_use_classmethod.py:119
↓ 2 callersFunctionmy_function
()
item_43_consider_contexlib.py:39
↓ 2 callersFunctionmy_utility
(a, b)
item_58_profile_before_optimizing.py:173
↓ 2 callersFunctionnormalize_copy
(numbers)
item_17_be_defensive.py:84
↓ 2 callersFunctionnormalize_defensive
(numbers)
item_17_be_defensive.py:184
↓ 2 callersMethodquery
(self, y, x)
item_40_consider_coroutines.py:340
↓ 2 callersFunctionregister_class
(target_class)
item_34_register_class_existence.py:113
↓ 2 callersFunctionrun_openssl
(data)
item_36_use_subprocess.py:133
↓ 2 callersFunctionrun_sleep
(period)
item_36_use_subprocess.py:98
↓ 2 callersFunctionrun_threads
(func, how_many, counter)
item_38_use_lock.py:51
↓ 2 callersFunctionsafe_division
(number, divisor, ignore_overflow, ignore_zero_division)
item_21_enforce_clarity.py:15
↓ 2 callersFunctionsafe_division_c
(number, divisor, *, ignore_overflow=False, ignore_zero_division=False
item_21_enforce_clarity.py:102
↓ 2 callersMethodset_ohms
(self, ohms)
item_29_use_plain_attributes.py:38
↓ 2 callersFunctionstep_cell
(y, x)
item_40_consider_coroutines.py:234
↓ 2 callersMethodsubject
(self, name)
item_22_prefer_helper_classes.py:258
↓ 2 callersFunctionwrite_test_files
(tmpdir)
item_24_use_classmethod.py:128
↓ 1 callersMethod__getattr__
(self, name)
item_32_use_getattr.py:23
↓ 1 callersMethod__getattribute__
(self, name)
item_32_use_getattr.py:92
↓ 1 callersMethod__getitem__
(self, index)
item_28_inherit_from_collections_abc.py:88
↓ 1 callersMethod__init__
(self, func, in_queue, out_queue)
item_39_use_queue.py:64
↓ 1 callersMethod__init__
(self, input_data)
item_24_use_classmethod.py:49
↓ 1 callersMethod__init__
(self)
item_27_prefer_public_attributes.py:218
↓ 1 callersMethod__init__
(self, value, left=None, right=None)
item_28_inherit_from_collections_abc.py:50
↓ 1 callersMethod__init__
(self, value, left=None, right=None)
item_26_when_use_multiple_inheritance.py:62
↓ 1 callersMethod__new__
(meta, name, bases, class_dict)
item_33_validate_subclass.py:25
↓ 1 callersMethod__setattr__
Save some data to the DB log
item_32_use_getattr.py:167
↓ 1 callersFunctioncompute_helicopter_location
(index)
item_37_use_threads.py:161
↓ 1 callersFunctioncreate_workers
(input_list)
item_24_use_classmethod.py:89
↓ 1 callersMethodcreate_workers
(cls, input_class, config)
item_24_use_classmethod.py:215
↓ 1 callersFunctiondebug_logging
(level)
item_43_consider_contexlib.py:57
↓ 1 callersMethoddeserialize
(cls, json_data)
item_34_register_class_existence.py:52
↓ 1 callersFunctionfibonacci
Return the n-th Fibonacci number
item_42_define_function_decorators.py:45
↓ 1 callersFunctionfirst_func
()
item_58_profile_before_optimizing.py:180
↓ 1 callersMethodfrequency
(self)
item_28_inherit_from_collections_abc.py:21
↓ 1 callersFunctiongame_logic
(state, neighbors)
item_40_consider_coroutines.py:222
↓ 1 callersFunctiongenerate_inputs
(data_dir)
item_24_use_classmethod.py:80
↓ 1 callersMethodgenerate_inputs
(cls, config)
item_24_use_classmethod.py:194
↓ 1 callersFunctionget_first_int
(values, key, default=0)
item_04_helper_function.py:117
↓ 1 callersMethodget_private_field
(self)
item_27_prefer_public_attributes.py:13
↓ 1 callersMethodget_private_field_of_instance
(cls, instance)
item_27_prefer_public_attributes.py:51
↓ 1 callersMethodincrement
(self, offset)
item_38_use_lock.py:32
↓ 1 callersFunctionincrement_with_report
(current, increments)
item_23_accepts_functions_4_interfaces.py:72
↓ 1 callersFunctionindex_file
(handle)
item_16_generators_instead_of_lists.py:81
↓ 1 callersFunctioninsert_value
(array, value)
item_58_profile_before_optimizing.py:39
↓ 1 callersFunctioninsert_value_bi
(array, value)
item_58_profile_before_optimizing.py:123
↓ 1 callersFunctioninsertion_sort
(data)
item_58_profile_before_optimizing.py:26
↓ 1 callersFunctioninsertion_sort_bi
(data)
item_58_profile_before_optimizing.py:133
↓ 1 callersFunctionlive_a_generation
(grid, sim)
item_40_consider_coroutines.py:353
↓ 1 callersFunctionlog_level
(level, name)
item_43_consider_contexlib.py:118
↓ 1 callersFunctionminimize
()
item_40_consider_coroutines.py:64
↓ 1 callersFunctionmy_corountine
()
item_40_consider_coroutines.py:40
↓ 1 callersFunctionmy_func
(*args)
item_18_reduce_visual_noise.py:73
↓ 1 callersFunctionmy_generator
()
item_18_reduce_visual_noise.py:68
↓ 1 callersFunctionnormalize_func
(get_iter)
item_17_be_defensive.py:109
↓ 1 callersFunctionprint_args
(*args, **kwargs)
item_21_enforce_clarity.py:157
↓ 1 callersMethodreduce
(self, other)
item_24_use_classmethod.py:56
↓ 1 callersFunctionrun_md5
(input_stdin)
item_36_use_subprocess.py:169
next →1–100 of 279, ranked by callers