How can I write code that optionally uses a module if it exists?
3840
How can I require an optional Perl module if installed?
139143
How to specify optional arguments that take functional values
35006
How to overload __init__ method based on argument type?
71258
Functions with both optional arguments and options
19902
Shortcut for "null if object is null, or object.member if object is not null"
10257
Does PHP allow named parameters so that optional arguments can be omitted from function calls?
57612
How to add optional arguments to a package I'm writing?
59066
`if __name__ == '__main__'` equivalent in Ruby
68272
Checking a Python module version at runtime
91447
Check if a method exists
34250
Catching module loading errors and processing them
15693
How to detect existence of a class using SFINAE?
129354
What is the pythonic way to avoid default parameters that are empty lists?
18187
How to make a cross-module variable?
27678
Loading a package conditionally
10536
Making code internal but available for unit testing from other projects
95382
How to create a Python decorator that can be used either with or without parameters?