Appearance
Python
Snippets in this category (481–520 of 539).
- What does ** (double star/asterisk) and * (star/asterisk) do for parameters?
- What does -> mean in Python function definitions?
- What does all mean in Python?
- What does functools.wraps do?
- What does if name == "main": do?
- What does the "at" (@) symbol do in Python?
- What does the "yield" keyword do?
- What does the 'b' character do in front of a string literal?
- What exactly do "u" and "r" string prefixes do, and what are raw string literals?
- What IDE to use for Python?
- What is future in Python used for and how/when to use it, and how it works
- What is init.py for?
- What is pycache?
- What is a clean "pythonic" way to implement multiple constructors?
- What is a cross-platform way to get the home directory?
- What is a mixin and why is it useful?
- What is setup.py?
- What is the best project structure for a Python application?
- What is the difference between str and repr?
- What is the difference between dict.items() and dict.iteritems() in Python2?
- What is the difference between null=True and blank=True in Django?
- What is the difference between old style and new style classes in Python?
- What is the difference between pip and conda?
- What is the difference between Python's list methods append and extend?
- What is the difference between range and xrange functions in Python 2.X?
- What is the difference between venv, pyvenv, pyenv, virtualenv, virtualenvwrapper, pipenv, etc?
- What is the easiest way to remove all packages installed by pip?
- What is the maximum recursion depth in Python, and how to increase it?
- What is the meaning of single and double underscore before an object name?
- What is the naming convention in Python for variable and function?
- What is the purpose and use of **kwargs?
- What is the purpose of the
selfparameter? Why is it needed? - What is the Python 3 equivalent of "python -m SimpleHTTPServer"
- What is the Python equivalent for a case/switch statement?
- What is the quickest way to HTTP GET in Python?
- What is the use of "assert" in Python?
- What should I do with "Unexpected indent" in Python?
- What's the canonical way to check for type in Python?
- What's the difference between lists and tuples?
- When to use cla(), clf() or close() for clearing a plot in matplotlib?