René's URL Explorer Experiment


Title: Programming FAQ — Python 3.14.2 documentation

Open Graph Title: Programming FAQ

Description: Contents: Programming FAQ- General Questions- Is there a source code level debugger with breakpoints, single-stepping, etc.?, Are there tools to help find bugs or perform static analysis?, How can ...

Open Graph Description: Contents: Programming FAQ- General Questions- Is there a source code level debugger with breakpoints, single-stepping, etc.?, Are there tools to help find bugs or perform static analysis?, How can ...

Opengraph URL: https://docs.python.org/3/faq/programming.html

direct link

Domain: docs.python.org

og:typewebsite
og:site_namePython documentation
og:image:width1146
og:image:height600
og:imagehttps://docs.python.org/3.14/_images/social_previews/summary_faq_programming_b3b7ecb8.png
og:image:altContents: Programming FAQ- General Questions- Is there a source code level debugger with breakpoints, single-stepping, etc.?, Are there tools to help find bugs or perform static analysis?, How can ...
twitter:cardsummary_large_image
theme-color#3776ab
readthedocs-addons-api-version1

Links:

https://www.python.org/
Table of Contentshttps://docs.python.org/contents.html
Programming FAQhttps://docs.python.org/faq/programming.html
General Questionshttps://docs.python.org/faq/programming.html#general-questions
Core Languagehttps://docs.python.org/faq/programming.html#core-language
Numbers and stringshttps://docs.python.org/faq/programming.html#numbers-and-strings
Performancehttps://docs.python.org/faq/programming.html#performance
Sequences (Tuples/Lists)https://docs.python.org/faq/programming.html#sequences-tuples-lists
Objectshttps://docs.python.org/faq/programming.html#objects
Moduleshttps://docs.python.org/faq/programming.html#modules
General Python FAQhttps://docs.python.org/faq/general.html
Design and History FAQhttps://docs.python.org/faq/design.html
Report a bughttps://docs.python.org/bugs.html
Show source https://github.com/python/cpython/blob/main/Doc/faq/programming.rst?plain=1
indexhttps://docs.python.org/genindex.html
moduleshttps://docs.python.org/py-modindex.html
nexthttps://docs.python.org/faq/design.html
previoushttps://docs.python.org/faq/general.html
Pythonhttps://www.python.org/
3.14.2 Documentationhttps://docs.python.org/index.html
Python Frequently Asked Questionshttps://docs.python.org/faq/index.html
Programming FAQhttps://docs.python.org/faq/programming.html
Programming FAQhttps://docs.python.org/faq/programming.html#id2
https://docs.python.org/faq/programming.html#programming-faq
Programming FAQhttps://docs.python.org/faq/programming.html#programming-faq
General Questionshttps://docs.python.org/faq/programming.html#general-questions
Is there a source code level debugger with breakpoints, single-stepping, etc.?https://docs.python.org/faq/programming.html#is-there-a-source-code-level-debugger-with-breakpoints-single-stepping-etc
Are there tools to help find bugs or perform static analysis?https://docs.python.org/faq/programming.html#are-there-tools-to-help-find-bugs-or-perform-static-analysis
How can I create a stand-alone binary from a Python script?https://docs.python.org/faq/programming.html#how-can-i-create-a-stand-alone-binary-from-a-python-script
Are there coding standards or a style guide for Python programs?https://docs.python.org/faq/programming.html#are-there-coding-standards-or-a-style-guide-for-python-programs
Core Languagehttps://docs.python.org/faq/programming.html#core-language
Why am I getting an UnboundLocalError when the variable has a value?https://docs.python.org/faq/programming.html#why-am-i-getting-an-unboundlocalerror-when-the-variable-has-a-value
What are the rules for local and global variables in Python?https://docs.python.org/faq/programming.html#what-are-the-rules-for-local-and-global-variables-in-python
Why do lambdas defined in a loop with different values all return the same result?https://docs.python.org/faq/programming.html#why-do-lambdas-defined-in-a-loop-with-different-values-all-return-the-same-result
How do I share global variables across modules?https://docs.python.org/faq/programming.html#how-do-i-share-global-variables-across-modules
What are the “best practices” for using import in a module?https://docs.python.org/faq/programming.html#what-are-the-best-practices-for-using-import-in-a-module
Why are default values shared between objects?https://docs.python.org/faq/programming.html#why-are-default-values-shared-between-objects
How can I pass optional or keyword parameters from one function to another?https://docs.python.org/faq/programming.html#how-can-i-pass-optional-or-keyword-parameters-from-one-function-to-another
What is the difference between arguments and parameters?https://docs.python.org/faq/programming.html#what-is-the-difference-between-arguments-and-parameters
Why did changing list ‘y’ also change list ‘x’?https://docs.python.org/faq/programming.html#why-did-changing-list-y-also-change-list-x
How do I write a function with output parameters (call by reference)?https://docs.python.org/faq/programming.html#how-do-i-write-a-function-with-output-parameters-call-by-reference
How do you make a higher order function in Python?https://docs.python.org/faq/programming.html#how-do-you-make-a-higher-order-function-in-python
How do I copy an object in Python?https://docs.python.org/faq/programming.html#how-do-i-copy-an-object-in-python
How can I find the methods or attributes of an object?https://docs.python.org/faq/programming.html#how-can-i-find-the-methods-or-attributes-of-an-object
How can my code discover the name of an object?https://docs.python.org/faq/programming.html#how-can-my-code-discover-the-name-of-an-object
What’s up with the comma operator’s precedence?https://docs.python.org/faq/programming.html#what-s-up-with-the-comma-operator-s-precedence
Is there an equivalent of C’s “?:” ternary operator?https://docs.python.org/faq/programming.html#is-there-an-equivalent-of-c-s-ternary-operator
Is it possible to write obfuscated one-liners in Python?https://docs.python.org/faq/programming.html#is-it-possible-to-write-obfuscated-one-liners-in-python
What does the slash(/) in the parameter list of a function mean?https://docs.python.org/faq/programming.html#what-does-the-slash-in-the-parameter-list-of-a-function-mean
Numbers and stringshttps://docs.python.org/faq/programming.html#numbers-and-strings
How do I specify hexadecimal and octal integers?https://docs.python.org/faq/programming.html#how-do-i-specify-hexadecimal-and-octal-integers
Why does -22 // 10 return -3?https://docs.python.org/faq/programming.html#why-does-22-10-return-3
How do I get int literal attribute instead of SyntaxError?https://docs.python.org/faq/programming.html#how-do-i-get-int-literal-attribute-instead-of-syntaxerror
How do I convert a string to a number?https://docs.python.org/faq/programming.html#how-do-i-convert-a-string-to-a-number
How do I convert a number to a string?https://docs.python.org/faq/programming.html#how-do-i-convert-a-number-to-a-string
How do I modify a string in place?https://docs.python.org/faq/programming.html#how-do-i-modify-a-string-in-place
How do I use strings to call functions/methods?https://docs.python.org/faq/programming.html#how-do-i-use-strings-to-call-functions-methods
Is there an equivalent to Perl’s chomp() for removing trailing newlines from strings?https://docs.python.org/faq/programming.html#is-there-an-equivalent-to-perl-s-chomp-for-removing-trailing-newlines-from-strings
Is there a scanf() or sscanf() equivalent?https://docs.python.org/faq/programming.html#is-there-a-scanf-or-sscanf-equivalent
What does UnicodeDecodeError or UnicodeEncodeError error mean?https://docs.python.org/faq/programming.html#what-does-unicodedecodeerror-or-unicodeencodeerror-error-mean
Can I end a raw string with an odd number of backslashes?https://docs.python.org/faq/programming.html#can-i-end-a-raw-string-with-an-odd-number-of-backslashes
Performancehttps://docs.python.org/faq/programming.html#performance
My program is too slow. How do I speed it up?https://docs.python.org/faq/programming.html#my-program-is-too-slow-how-do-i-speed-it-up
What is the most efficient way to concatenate many strings together?https://docs.python.org/faq/programming.html#what-is-the-most-efficient-way-to-concatenate-many-strings-together
Sequences (Tuples/Lists)https://docs.python.org/faq/programming.html#sequences-tuples-lists
How do I convert between tuples and lists?https://docs.python.org/faq/programming.html#how-do-i-convert-between-tuples-and-lists
What’s a negative index?https://docs.python.org/faq/programming.html#what-s-a-negative-index
How do I iterate over a sequence in reverse order?https://docs.python.org/faq/programming.html#how-do-i-iterate-over-a-sequence-in-reverse-order
How do you remove duplicates from a list?https://docs.python.org/faq/programming.html#how-do-you-remove-duplicates-from-a-list
How do you remove multiple items from a listhttps://docs.python.org/faq/programming.html#how-do-you-remove-multiple-items-from-a-list
How do you make an array in Python?https://docs.python.org/faq/programming.html#how-do-you-make-an-array-in-python
How do I create a multidimensional list?https://docs.python.org/faq/programming.html#how-do-i-create-a-multidimensional-list
How do I apply a method or function to a sequence of objects?https://docs.python.org/faq/programming.html#how-do-i-apply-a-method-or-function-to-a-sequence-of-objects
Why does a_tuple[i] += [‘item’] raise an exception when the addition works?https://docs.python.org/faq/programming.html#why-does-a-tuple-i-item-raise-an-exception-when-the-addition-works
I want to do a complicated sort: can you do a Schwartzian Transform in Python?https://docs.python.org/faq/programming.html#i-want-to-do-a-complicated-sort-can-you-do-a-schwartzian-transform-in-python
How can I sort one list by values from another list?https://docs.python.org/faq/programming.html#how-can-i-sort-one-list-by-values-from-another-list
Objectshttps://docs.python.org/faq/programming.html#objects
What is a class?https://docs.python.org/faq/programming.html#what-is-a-class
What is a method?https://docs.python.org/faq/programming.html#what-is-a-method
What is self?https://docs.python.org/faq/programming.html#what-is-self
How do I check if an object is an instance of a given class or of a subclass of it?https://docs.python.org/faq/programming.html#how-do-i-check-if-an-object-is-an-instance-of-a-given-class-or-of-a-subclass-of-it
What is delegation?https://docs.python.org/faq/programming.html#what-is-delegation
How do I call a method defined in a base class from a derived class that extends it?https://docs.python.org/faq/programming.html#how-do-i-call-a-method-defined-in-a-base-class-from-a-derived-class-that-extends-it
How can I organize my code to make it easier to change the base class?https://docs.python.org/faq/programming.html#how-can-i-organize-my-code-to-make-it-easier-to-change-the-base-class
How do I create static class data and static class methods?https://docs.python.org/faq/programming.html#how-do-i-create-static-class-data-and-static-class-methods
How can I overload constructors (or methods) in Python?https://docs.python.org/faq/programming.html#how-can-i-overload-constructors-or-methods-in-python
I try to use __spam and I get an error about _SomeClassName__spam.https://docs.python.org/faq/programming.html#i-try-to-use-spam-and-i-get-an-error-about-someclassname-spam
My class defines __del__ but it is not called when I delete the object.https://docs.python.org/faq/programming.html#my-class-defines-del-but-it-is-not-called-when-i-delete-the-object
How do I get a list of all instances of a given class?https://docs.python.org/faq/programming.html#how-do-i-get-a-list-of-all-instances-of-a-given-class
Why does the result of id() appear to be not unique?https://docs.python.org/faq/programming.html#why-does-the-result-of-id-appear-to-be-not-unique
When can I rely on identity tests with the is operator?https://docs.python.org/faq/programming.html#when-can-i-rely-on-identity-tests-with-the-is-operator
How can a subclass control what data is stored in an immutable instance?https://docs.python.org/faq/programming.html#how-can-a-subclass-control-what-data-is-stored-in-an-immutable-instance
How do I cache method calls?https://docs.python.org/faq/programming.html#how-do-i-cache-method-calls
Moduleshttps://docs.python.org/faq/programming.html#modules
How do I create a .pyc file?https://docs.python.org/faq/programming.html#how-do-i-create-a-pyc-file
How do I find the current module name?https://docs.python.org/faq/programming.html#how-do-i-find-the-current-module-name
How can I have modules that mutually import each other?https://docs.python.org/faq/programming.html#how-can-i-have-modules-that-mutually-import-each-other
__import__(‘x.y.z’) returns ; how do I get z?https://docs.python.org/faq/programming.html#import-x-y-z-returns-module-x-how-do-i-get-z
When I edit an imported module and reimport it, the changes don’t show up. Why does this happen?https://docs.python.org/faq/programming.html#when-i-edit-an-imported-module-and-reimport-it-the-changes-don-t-show-up-why-does-this-happen
General Questionshttps://docs.python.org/faq/programming.html#id3
https://docs.python.org/faq/programming.html#general-questions
Is there a source code level debugger with breakpoints, single-stepping, etc.?https://docs.python.org/faq/programming.html#id4
https://docs.python.org/faq/programming.html#is-there-a-source-code-level-debugger-with-breakpoints-single-stepping-etc
breakpoint()https://docs.python.org/library/functions.html#breakpoint
documented in the Library Reference Manualhttps://docs.python.org/library/pdb.html#module-pdb
Tools/scripts/idle3https://github.com/python/cpython/blob/main/Tools/scripts/idle3
pywin32https://github.com/mhammond/pywin32
ActivePythonhttps://www.activestate.com/products/python/
Erichttps://eric-ide.python-projects.org/
trepan3khttps://github.com/rocky/python3-trepan/
Visual Studio Codehttps://code.visualstudio.com/
Wing IDEhttps://wingware.com/
Komodo IDEhttps://www.activestate.com/products/komodo-ide/
PyCharmhttps://www.jetbrains.com/pycharm/
Are there tools to help find bugs or perform static analysis?https://docs.python.org/faq/programming.html#id5
https://docs.python.org/faq/programming.html#are-there-tools-to-help-find-bugs-or-perform-static-analysis
Pylinthttps://pylint.pycqa.org/en/latest/index.html
Pyflakeshttps://github.com/PyCQA/pyflakes
Mypyhttps://mypy-lang.org/
Pyrehttps://pyre-check.org/
Pytypehttps://github.com/google/pytype
How can I create a stand-alone binary from a Python script?https://docs.python.org/faq/programming.html#id6
https://docs.python.org/faq/programming.html#how-can-i-create-a-stand-alone-binary-from-a-python-script
Tools/freezehttps://github.com/python/cpython/tree/main/Tools/freeze
Nuitkahttps://nuitka.net/
PyInstallerhttps://pyinstaller.org/
PyOxidizerhttps://pyoxidizer.readthedocs.io/en/stable/
cx_Freezehttps://marcelotduarte.github.io/cx_Freeze/
py2apphttps://github.com/ronaldoussoren/py2app
py2exehttps://www.py2exe.org/
Are there coding standards or a style guide for Python programs?https://docs.python.org/faq/programming.html#id7
https://docs.python.org/faq/programming.html#are-there-coding-standards-or-a-style-guide-for-python-programs
PEP 8https://peps.python.org/pep-0008/
Core Languagehttps://docs.python.org/faq/programming.html#id8
https://docs.python.org/faq/programming.html#core-language
Why am I getting an UnboundLocalError when the variable has a value?https://docs.python.org/faq/programming.html#id9
https://docs.python.org/faq/programming.html#why-am-i-getting-an-unboundlocalerror-when-the-variable-has-a-value
UnboundLocalErrorhttps://docs.python.org/library/exceptions.html#UnboundLocalError
nonlocalhttps://docs.python.org/reference/simple_stmts.html#nonlocal
What are the rules for local and global variables in Python?https://docs.python.org/faq/programming.html#id10
https://docs.python.org/faq/programming.html#what-are-the-rules-for-local-and-global-variables-in-python
globalhttps://docs.python.org/reference/simple_stmts.html#global
Why do lambdas defined in a loop with different values all return the same result?https://docs.python.org/faq/programming.html#id11
https://docs.python.org/faq/programming.html#why-do-lambdas-defined-in-a-loop-with-different-values-all-return-the-same-result
How do I share global variables across modules?https://docs.python.org/faq/programming.html#id12
https://docs.python.org/faq/programming.html#how-do-i-share-global-variables-across-modules
What are the “best practices” for using import in a module?https://docs.python.org/faq/programming.html#id13
https://docs.python.org/faq/programming.html#what-are-the-best-practices-for-using-import-in-a-module
syshttps://docs.python.org/library/sys.html#module-sys
oshttps://docs.python.org/library/os.html#module-os
argparsehttps://docs.python.org/library/argparse.html#module-argparse
rehttps://docs.python.org/library/re.html#module-re
sys.moduleshttps://docs.python.org/library/sys.html#sys.modules
Why are default values shared between objects?https://docs.python.org/faq/programming.html#id14
https://docs.python.org/faq/programming.html#why-are-default-values-shared-between-objects
How can I pass optional or keyword parameters from one function to another?https://docs.python.org/faq/programming.html#id15
https://docs.python.org/faq/programming.html#how-can-i-pass-optional-or-keyword-parameters-from-one-function-to-another
What is the difference between arguments and parameters?https://docs.python.org/faq/programming.html#id16
https://docs.python.org/faq/programming.html#what-is-the-difference-between-arguments-and-parameters
Parametershttps://docs.python.org/glossary.html#term-parameter
argumentshttps://docs.python.org/glossary.html#term-argument
kind of argumentshttps://docs.python.org/glossary.html#term-parameter
Why did changing list ‘y’ also change list ‘x’?https://docs.python.org/faq/programming.html#id17
https://docs.python.org/faq/programming.html#why-did-changing-list-y-also-change-list-x
mutablehttps://docs.python.org/glossary.html#term-mutable
append()https://docs.python.org/library/stdtypes.html#sequence.append
immutablehttps://docs.python.org/glossary.html#term-immutable
sorted(y)https://docs.python.org/library/functions.html#sorted
listhttps://docs.python.org/library/stdtypes.html#list
dicthttps://docs.python.org/library/stdtypes.html#dict
sethttps://docs.python.org/library/stdtypes.html#set
strhttps://docs.python.org/library/stdtypes.html#str
inthttps://docs.python.org/library/functions.html#int
tuplehttps://docs.python.org/library/stdtypes.html#tuple
ishttps://docs.python.org/reference/expressions.html#is
id()https://docs.python.org/library/functions.html#id
How do I write a function with output parameters (call by reference)?https://docs.python.org/faq/programming.html#id18
https://docs.python.org/faq/programming.html#how-do-i-write-a-function-with-output-parameters-call-by-reference
How do you make a higher order function in Python?https://docs.python.org/faq/programming.html#id19
https://docs.python.org/faq/programming.html#how-do-you-make-a-higher-order-function-in-python
How do I copy an object in Python?https://docs.python.org/faq/programming.html#id20
https://docs.python.org/faq/programming.html#how-do-i-copy-an-object-in-python
copy.copy()https://docs.python.org/library/copy.html#copy.copy
copy.deepcopy()https://docs.python.org/library/copy.html#copy.deepcopy
copy()https://docs.python.org/library/stdtypes.html#dict.copy
How can I find the methods or attributes of an object?https://docs.python.org/faq/programming.html#id21
https://docs.python.org/faq/programming.html#how-can-i-find-the-methods-or-attributes-of-an-object
dir(x)https://docs.python.org/library/functions.html#dir
How can my code discover the name of an object?https://docs.python.org/faq/programming.html#id22
https://docs.python.org/faq/programming.html#how-can-my-code-discover-the-name-of-an-object
What’s up with the comma operator’s precedence?https://docs.python.org/faq/programming.html#id23
https://docs.python.org/faq/programming.html#what-s-up-with-the-comma-operator-s-precedence
Is there an equivalent of C’s “?:” ternary operator?https://docs.python.org/faq/programming.html#id24
https://docs.python.org/faq/programming.html#is-there-an-equivalent-of-c-s-ternary-operator
Is it possible to write obfuscated one-liners in Python?https://docs.python.org/faq/programming.html#id25
https://docs.python.org/faq/programming.html#is-it-possible-to-write-obfuscated-one-liners-in-python
lambdahttps://docs.python.org/reference/expressions.html#lambda
What does the slash(/) in the parameter list of a function mean?https://docs.python.org/faq/programming.html#id26
https://docs.python.org/faq/programming.html#what-does-the-slash-in-the-parameter-list-of-a-function-mean
divmod()https://docs.python.org/library/functions.html#divmod
divmod()https://docs.python.org/library/functions.html#divmod
Numbers and stringshttps://docs.python.org/faq/programming.html#id27
https://docs.python.org/faq/programming.html#numbers-and-strings
How do I specify hexadecimal and octal integers?https://docs.python.org/faq/programming.html#id28
https://docs.python.org/faq/programming.html#how-do-i-specify-hexadecimal-and-octal-integers
Why does -22 // 10 return -3?https://docs.python.org/faq/programming.html#id29
https://docs.python.org/faq/programming.html#why-does-22-10-return-3
How do I get int literal attribute instead of SyntaxError?https://docs.python.org/faq/programming.html#id30
https://docs.python.org/faq/programming.html#how-do-i-get-int-literal-attribute-instead-of-syntaxerror
SyntaxErrorhttps://docs.python.org/library/exceptions.html#SyntaxError
How do I convert a string to a number?https://docs.python.org/faq/programming.html#id31
https://docs.python.org/faq/programming.html#how-do-i-convert-a-string-to-a-number
int()https://docs.python.org/library/functions.html#int
float()https://docs.python.org/library/functions.html#float
ValueErrorhttps://docs.python.org/library/exceptions.html#ValueError
eval()https://docs.python.org/library/functions.html#eval
eval()https://docs.python.org/library/functions.html#eval
eval()https://docs.python.org/library/functions.html#eval
How do I convert a number to a string?https://docs.python.org/faq/programming.html#id32
https://docs.python.org/faq/programming.html#how-do-i-convert-a-number-to-a-string
str()https://docs.python.org/library/stdtypes.html#str
hex()https://docs.python.org/library/functions.html#hex
oct()https://docs.python.org/library/functions.html#oct
f-stringshttps://docs.python.org/reference/lexical_analysis.html#f-strings
Format String Syntaxhttps://docs.python.org/library/string.html#formatstrings
How do I modify a string in place?https://docs.python.org/faq/programming.html#id33
https://docs.python.org/faq/programming.html#how-do-i-modify-a-string-in-place
io.StringIOhttps://docs.python.org/library/io.html#io.StringIO
arrayhttps://docs.python.org/library/array.html#module-array
How do I use strings to call functions/methods?https://docs.python.org/faq/programming.html#id34
https://docs.python.org/faq/programming.html#how-do-i-use-strings-to-call-functions-methods
getattr()https://docs.python.org/library/functions.html#getattr
getattr()https://docs.python.org/library/functions.html#getattr
locals()https://docs.python.org/library/functions.html#locals
Is there an equivalent to Perl’s chomp() for removing trailing newlines from strings?https://docs.python.org/faq/programming.html#id35
https://docs.python.org/faq/programming.html#is-there-an-equivalent-to-perl-s-chomp-for-removing-trailing-newlines-from-strings
Is there a scanf() or sscanf() equivalent?https://docs.python.org/faq/programming.html#id36
https://docs.python.org/faq/programming.html#is-there-a-scanf-or-sscanf-equivalent
split()https://docs.python.org/library/stdtypes.html#str.split
int()https://docs.python.org/library/functions.html#int
float()https://docs.python.org/library/functions.html#float
What does UnicodeDecodeError or UnicodeEncodeError error mean?https://docs.python.org/faq/programming.html#id37
https://docs.python.org/faq/programming.html#what-does-unicodedecodeerror-or-unicodeencodeerror-error-mean
Unicode HOWTOhttps://docs.python.org/howto/unicode.html#unicode-howto
Can I end a raw string with an odd number of backslashes?https://docs.python.org/faq/programming.html#id38
https://docs.python.org/faq/programming.html#can-i-end-a-raw-string-with-an-odd-number-of-backslashes
os.path.join()https://docs.python.org/library/os.path.html#os.path.join
language referencehttps://docs.python.org/reference/lexical_analysis.html#strings
Performancehttps://docs.python.org/faq/programming.html#id39
https://docs.python.org/faq/programming.html#performance
My program is too slow. How do I speed it up?https://docs.python.org/faq/programming.html#id40
https://docs.python.org/faq/programming.html#my-program-is-too-slow-how-do-i-speed-it-up
CPythonhttps://docs.python.org/glossary.html#term-CPython
profilehttps://docs.python.org/library/profile.html#module-profile
timeithttps://docs.python.org/library/timeit.html#module-timeit
Built-in Typeshttps://docs.python.org/library/stdtypes.html#bltin-types
collectionshttps://docs.python.org/library/collections.html#module-collections
list.sort()https://docs.python.org/library/stdtypes.html#list.sort
sorted()https://docs.python.org/library/functions.html#sorted
Sorting Techniqueshttps://docs.python.org/howto/sorting.html#sortinghowto
Cythonhttps://cython.org
write a C extension modulehttps://docs.python.org/extending/index.html#extending-index
performance tipshttps://wiki.python.org/moin/PythonSpeed/PerformanceTips
What is the most efficient way to concatenate many strings together?https://docs.python.org/faq/programming.html#id41
https://docs.python.org/faq/programming.html#what-is-the-most-efficient-way-to-concatenate-many-strings-together
strhttps://docs.python.org/library/stdtypes.html#str
byteshttps://docs.python.org/library/stdtypes.html#bytes
strhttps://docs.python.org/library/stdtypes.html#str
str.join()https://docs.python.org/library/stdtypes.html#str.join
io.StringIOhttps://docs.python.org/library/io.html#io.StringIO
byteshttps://docs.python.org/library/stdtypes.html#bytes
bytearrayhttps://docs.python.org/library/stdtypes.html#bytearray
Sequences (Tuples/Lists)https://docs.python.org/faq/programming.html#id42
https://docs.python.org/faq/programming.html#sequences-tuples-lists
How do I convert between tuples and lists?https://docs.python.org/faq/programming.html#id43
https://docs.python.org/faq/programming.html#how-do-i-convert-between-tuples-and-lists
tuple()https://docs.python.org/library/stdtypes.html#tuple
What’s a negative index?https://docs.python.org/faq/programming.html#id44
https://docs.python.org/faq/programming.html#what-s-a-negative-index
How do I iterate over a sequence in reverse order?https://docs.python.org/faq/programming.html#id45
https://docs.python.org/faq/programming.html#how-do-i-iterate-over-a-sequence-in-reverse-order
reversed()https://docs.python.org/library/functions.html#reversed
How do you remove duplicates from a list?https://docs.python.org/faq/programming.html#id46
https://docs.python.org/faq/programming.html#how-do-you-remove-duplicates-from-a-list
https://code.activestate.com/recipes/52560/https://code.activestate.com/recipes/52560/
hashablehttps://docs.python.org/glossary.html#term-hashable
How do you remove multiple items from a listhttps://docs.python.org/faq/programming.html#id47
https://docs.python.org/faq/programming.html#how-do-you-remove-multiple-items-from-a-list
How do you make an array in Python?https://docs.python.org/faq/programming.html#id48
https://docs.python.org/faq/programming.html#how-do-you-make-an-array-in-python
NumPyhttps://numpy.org/
How do I create a multidimensional list?https://docs.python.org/faq/programming.html#id49
https://docs.python.org/faq/programming.html#how-do-i-create-a-multidimensional-list
NumPyhttps://numpy.org/
How do I apply a method or function to a sequence of objects?https://docs.python.org/faq/programming.html#id50
https://docs.python.org/faq/programming.html#how-do-i-apply-a-method-or-function-to-a-sequence-of-objects
list comprehensionhttps://docs.python.org/glossary.html#term-list-comprehension
forhttps://docs.python.org/reference/compound_stmts.html#for
Why does a_tuple[i] += [‘item’] raise an exception when the addition works?https://docs.python.org/faq/programming.html#id51
https://docs.python.org/faq/programming.html#why-does-a-tuple-i-item-raise-an-exception-when-the-addition-works
__iadd__()https://docs.python.org/reference/datamodel.html#object.__iadd__
extend()https://docs.python.org/library/stdtypes.html#sequence.extend
list.extend()https://docs.python.org/library/stdtypes.html#list.extend
I want to do a complicated sort: can you do a Schwartzian Transform in Python?https://docs.python.org/faq/programming.html#id52
https://docs.python.org/faq/programming.html#i-want-to-do-a-complicated-sort-can-you-do-a-schwartzian-transform-in-python
list.sort()https://docs.python.org/library/stdtypes.html#list.sort
How can I sort one list by values from another list?https://docs.python.org/faq/programming.html#id53
https://docs.python.org/faq/programming.html#how-can-i-sort-one-list-by-values-from-another-list
Objectshttps://docs.python.org/faq/programming.html#id54
https://docs.python.org/faq/programming.html#objects
What is a class?https://docs.python.org/faq/programming.html#id55
https://docs.python.org/faq/programming.html#what-is-a-class
What is a method?https://docs.python.org/faq/programming.html#id56
https://docs.python.org/faq/programming.html#what-is-a-method
What is self?https://docs.python.org/faq/programming.html#id57
https://docs.python.org/faq/programming.html#what-is-self
Why must ‘self’ be used explicitly in method definitions and calls?https://docs.python.org/faq/design.html#why-self
How do I check if an object is an instance of a given class or of a subclass of it?https://docs.python.org/faq/programming.html#id58
https://docs.python.org/faq/programming.html#how-do-i-check-if-an-object-is-an-instance-of-a-given-class-or-of-a-subclass-of-it
isinstance(obj, cls)https://docs.python.org/library/functions.html#isinstance
isinstance()https://docs.python.org/library/functions.html#isinstance
abstract base classhttps://docs.python.org/glossary.html#term-abstract-base-class
MROhttps://docs.python.org/glossary.html#term-MRO
isinstance()https://docs.python.org/library/functions.html#isinstance
What is delegation?https://docs.python.org/faq/programming.html#id59
https://docs.python.org/faq/programming.html#what-is-delegation
__getattr__()https://docs.python.org/reference/datamodel.html#object.__getattr__
the language referencehttps://docs.python.org/reference/datamodel.html#attribute-access
__setattr__()https://docs.python.org/reference/datamodel.html#object.__setattr__
__setattr__()https://docs.python.org/reference/datamodel.html#object.__setattr__
self.__dict__https://docs.python.org/reference/datamodel.html#object.__dict__
How do I call a method defined in a base class from a derived class that extends it?https://docs.python.org/faq/programming.html#id60
https://docs.python.org/faq/programming.html#how-do-i-call-a-method-defined-in-a-base-class-from-a-derived-class-that-extends-it
super()https://docs.python.org/library/functions.html#super
super()https://docs.python.org/library/functions.html#super
method resolution orderhttps://docs.python.org/glossary.html#term-method-resolution-order
How can I organize my code to make it easier to change the base class?https://docs.python.org/faq/programming.html#id61
https://docs.python.org/faq/programming.html#how-can-i-organize-my-code-to-make-it-easier-to-change-the-base-class
How do I create static class data and static class methods?https://docs.python.org/faq/programming.html#id62
https://docs.python.org/faq/programming.html#how-do-i-create-static-class-data-and-static-class-methods
How can I overload constructors (or methods) in Python?https://docs.python.org/faq/programming.html#id63
https://docs.python.org/faq/programming.html#how-can-i-overload-constructors-or-methods-in-python
I try to use __spam and I get an error about _SomeClassName__spam.https://docs.python.org/faq/programming.html#id64
https://docs.python.org/faq/programming.html#i-try-to-use-spam-and-i-get-an-error-about-someclassname-spam
private name mangling specificationshttps://docs.python.org/reference/expressions.html#private-name-mangling
My class defines __del__ but it is not called when I delete the object.https://docs.python.org/faq/programming.html#id65
https://docs.python.org/faq/programming.html#my-class-defines-del-but-it-is-not-called-when-i-delete-the-object
delhttps://docs.python.org/reference/simple_stmts.html#del
__del__()https://docs.python.org/reference/datamodel.html#object.__del__
gc.collect()https://docs.python.org/library/gc.html#gc.collect
weakrefhttps://docs.python.org/library/weakref.html#module-weakref
sys.stderrhttps://docs.python.org/library/sys.html#sys.stderr
How do I get a list of all instances of a given class?https://docs.python.org/faq/programming.html#id66
https://docs.python.org/faq/programming.html#how-do-i-get-a-list-of-all-instances-of-a-given-class
Why does the result of id() appear to be not unique?https://docs.python.org/faq/programming.html#id67
https://docs.python.org/faq/programming.html#why-does-the-result-of-id-appear-to-be-not-unique
id()https://docs.python.org/library/functions.html#id
When can I rely on identity tests with the is operator?https://docs.python.org/faq/programming.html#id68
https://docs.python.org/faq/programming.html#when-can-i-rely-on-identity-tests-with-the-is-operator
inthttps://docs.python.org/library/functions.html#int
strhttps://docs.python.org/library/stdtypes.html#str
PEP 8https://peps.python.org/pep-0008/
dict.pop()https://docs.python.org/library/stdtypes.html#dict.pop
How can a subclass control what data is stored in an immutable instance?https://docs.python.org/faq/programming.html#id69
https://docs.python.org/faq/programming.html#how-can-a-subclass-control-what-data-is-stored-in-an-immutable-instance
__new__()https://docs.python.org/reference/datamodel.html#object.__new__
__init__()https://docs.python.org/reference/datamodel.html#object.__init__
How do I cache method calls?https://docs.python.org/faq/programming.html#id70
https://docs.python.org/faq/programming.html#how-do-i-cache-method-calls
functools.cached_property()https://docs.python.org/library/functools.html#functools.cached_property
functools.lru_cache()https://docs.python.org/library/functools.html#functools.lru_cache
hashablehttps://docs.python.org/glossary.html#term-hashable
__eq__()https://docs.python.org/reference/datamodel.html#object.__eq__
__hash__()https://docs.python.org/reference/datamodel.html#object.__hash__
Moduleshttps://docs.python.org/faq/programming.html#id71
https://docs.python.org/faq/programming.html#modules
How do I create a .pyc file?https://docs.python.org/faq/programming.html#id72
https://docs.python.org/faq/programming.html#how-do-i-create-a-pyc-file
PEP 3147https://peps.python.org/pep-3147/
PYTHONDONTWRITEBYTECODEhttps://docs.python.org/using/cmdline.html#envvar-PYTHONDONTWRITEBYTECODE
py_compilehttps://docs.python.org/library/py_compile.html#module-py_compile
compileallhttps://docs.python.org/library/compileall.html#module-compileall
py_compilehttps://docs.python.org/library/py_compile.html#module-py_compile
compileallhttps://docs.python.org/library/compileall.html#module-compileall
How do I find the current module name?https://docs.python.org/faq/programming.html#id73
https://docs.python.org/faq/programming.html#how-do-i-find-the-current-module-name
How can I have modules that mutually import each other?https://docs.python.org/faq/programming.html#id74
https://docs.python.org/faq/programming.html#how-can-i-have-modules-that-mutually-import-each-other
__import__(‘x.y.z’) returns ; how do I get z?https://docs.python.org/faq/programming.html#id75
https://docs.python.org/faq/programming.html#import-x-y-z-returns-module-x-how-do-i-get-z
import_module()https://docs.python.org/library/importlib.html#importlib.import_module
importlibhttps://docs.python.org/library/importlib.html#module-importlib
When I edit an imported module and reimport it, the changes don’t show up. Why does this happen?https://docs.python.org/faq/programming.html#id76
https://docs.python.org/faq/programming.html#when-i-edit-an-imported-module-and-reimport-it-the-changes-don-t-show-up-why-does-this-happen
Table of Contentshttps://docs.python.org/contents.html
Programming FAQhttps://docs.python.org/faq/programming.html
General Questionshttps://docs.python.org/faq/programming.html#general-questions
Core Languagehttps://docs.python.org/faq/programming.html#core-language
Numbers and stringshttps://docs.python.org/faq/programming.html#numbers-and-strings
Performancehttps://docs.python.org/faq/programming.html#performance
Sequences (Tuples/Lists)https://docs.python.org/faq/programming.html#sequences-tuples-lists
Objectshttps://docs.python.org/faq/programming.html#objects
Moduleshttps://docs.python.org/faq/programming.html#modules
General Python FAQhttps://docs.python.org/faq/general.html
Design and History FAQhttps://docs.python.org/faq/design.html
Report a bughttps://docs.python.org/bugs.html
Show source https://github.com/python/cpython/blob/main/Doc/faq/programming.rst?plain=1
indexhttps://docs.python.org/genindex.html
moduleshttps://docs.python.org/py-modindex.html
nexthttps://docs.python.org/faq/design.html
previoushttps://docs.python.org/faq/general.html
Pythonhttps://www.python.org/
3.14.2 Documentationhttps://docs.python.org/index.html
Python Frequently Asked Questionshttps://docs.python.org/faq/index.html
Programming FAQhttps://docs.python.org/faq/programming.html
Copyrighthttps://docs.python.org/copyright.html
History and Licensehttps://docs.python.org/license.html
Please donate.https://www.python.org/psf/donations/
Found a bughttps://docs.python.org/bugs.html
Sphinxhttps://www.sphinx-doc.org/

Viewport: width=device-width, initial-scale=1.0


URLs of crawlers that visited me.