Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SigmaQuan/Better-Python-59-Ways
/ functions
Functions
279 in github.com/SigmaQuan/Better-Python-59-Ways
⨍
Functions
279
◇
Types & classes
117
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
Method
add_student
(self, name)
item_22_prefer_helper_classes.py:66
Method
add_student
(self, name)
item_22_prefer_helper_classes.py:112
Method
average_grade
(self, name)
item_22_prefer_helper_classes.py:38
Method
average_grade
(self, name)
item_22_prefer_helper_classes.py:78
Method
average_grade
(self)
item_22_prefer_helper_classes.py:263
Function
complex_func
(a, b, c)
item_57_pdb.py:27
Function
consumer
()
item_39_use_queue.py:183
Function
coprime
(a, b)
item_12_avoid_else.py:100
Function
coprime2
(a, b)
item_12_avoid_else.py:112
Function
determine_weight
(volume, density)
item_51_define_a_root_exception.py:15
Function
divide_json
(path)
item_13_try_except_else_finally.py:77
Function
download
(item)
item_39_use_queue.py:93
Function
find_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
Method
foo
(self)
item_33_validate_subclass.py:33
Method
from_json
(cls, data)
item_26_when_use_multiple_inheritance.py:170
Function
gcd
(pair)
item_41_consider_concurrent_futures.py:59
Method
generate_inputs
(cls, config)
item_24_use_classmethod.py:179
Method
get_private_field
(self)
item_27_prefer_public_attributes.py:69
Method
get_value
(self)
item_27_prefer_public_attributes.py:167
Method
grade
(self)
item_31_use_descriptors.py:20
Function
helper
(x)
item_15_closure_variable_scope.py:16
Method
increment
(self, offset)
item_38_use_lock.py:133
Function
index_words_iter
(text)
item_16_generators_instead_of_lists.py:50
Method
interior_angles
(cls)
item_33_validate_subclass.py:100
Function
load_json_key
(data, key)
item_13_try_except_else_finally.py:45
Function
log_missing
()
item_23_accepts_functions_4_interfaces.py:35
Method
map
(self)
item_24_use_classmethod.py:65
Method
map
(self)
item_24_use_classmethod.py:208
Method
math_grade
(self)
item_31_use_descriptors.py:67
Function
missing
()
item_23_accepts_functions_4_interfaces.py:75
Method
missing
(self)
item_23_accepts_functions_4_interfaces.py:108
Function
my_program
()
item_58_profile_before_optimizing.py:190
Method
ohms
(self)
item_29_use_plain_attributes.py:136
Method
ohms
(self)
item_29_use_plain_attributes.py:175
Method
ohms
(self)
item_29_use_plain_attributes.py:207
Function
palindrome
Return True if the given word is a palindrome.
item_49_write_docstrings_4_everything.py:30
Function
pickle_game_state
(game_state)
item_44_make_pickle_reliable.py:131
Method
quota
(self)
item_30_consider_property.py:113
Method
read
(self)
item_24_use_classmethod.py:35
Method
read
(self)
item_24_use_classmethod.py:175
Method
reduce
(self, other)
item_24_use_classmethod.py:69
Method
reduce
(self, other)
item_24_use_classmethod.py:211
Method
report_grade
(self, name, score)
item_22_prefer_helper_classes.py:35
Method
report_grade
(self, name, subject, grade)
item_22_prefer_helper_classes.py:73
Method
report_grade
(self, name, subject, score, weight)
item_22_prefer_helper_classes.py:115
Function
resize
(item)
item_39_use_queue.py:99
Function
run
()
item_59_use_tracemalloc_waste_memory.py:3
Method
run
(self)
item_39_use_queue.py:316
Method
run
(self)
item_37_use_threads.py:61
Method
serialize
(self)
item_34_register_class_existence.py:95
Method
setUp
(self)
item_56_test_utils.py:19
Method
setUp
(self)
item_56_unittest.py:100
Function
sort_priority3
(numbers, group)
item_15_closure_variable_scope.py:135
Method
tearDown
(self)
item_56_test_utils.py:22
Method
tearDown
(self)
item_56_unittest.py:103
Method
test_to_str_bad
(self)
item_56_test_utils.py:14
Method
test_to_str_bad
(self)
item_56_test_utils.py:31
Method
test_to_str_bad
(self)
item_56_unittest.py:64
Method
test_to_str_bytes
(self)
item_56_test_utils.py:8
Method
test_to_str_bytes
(self)
item_56_test_utils.py:25
Method
test_to_str_bytes
(self)
item_56_unittest.py:58
Method
test_to_str_str
(self)
item_56_test_utils.py:11
Method
test_to_str_str
(self)
item_56_test_utils.py:28
Method
test_to_str_str
(self)
item_56_unittest.py:61
Function
to_bytes
(bytes_or_str)
item_03_Difference_bytes_str_unicode.py:53
Method
to_json
(self)
item_26_when_use_multiple_inheritance.py:174
Function
to_str
(bytes_or_str)
item_03_Difference_bytes_str_unicode.py:41
Function
to_str
(data)
item_56_unittest.py:44
Function
to_unicode
(unicode_or_str)
item_03_Difference_bytes_str_unicode.py:65
Function
trace
(func)
item_42_define_function_decorators.py:33
Function
unpickle_game_state
(kwargs)
item_44_make_pickle_reliable.py:141
Function
upload
(item)
item_39_use_queue.py:105
Method
voltage
(self)
item_29_use_plain_attributes.py:105
Function
worker
(sensor_index, how_many, counter)
item_38_use_lock.py:41
Function
wrapper
(*args, **kwargs)
item_42_define_function_decorators.py:34
Method
writing_grade
(self)
item_31_use_descriptors.py:58
← previous
201–279 of 279, ranked by callers