René's URL Explorer Experiment


Title: Python Keywords & Identifiers -- `list` Shadowing Crash

Open Graph Title: Python Keywords & Identifiers -- `list` Shadowing Crash

Description: A variable named `list` triggered `TypeError: 'list' object is not callable` in production. See how to catch built-in shadowing with CI checks.

Open Graph Description: A variable named `list` triggered `TypeError: 'list' object is not callable` in production. See how to catch built-in shadowing with CI checks.

Opengraph URL: https://thecodeforge.io/python/python-keywords-identifiers/

direct link

Domain: thecodeforge.io


Hey, it has json ld scripts:
{
  "@context": "https://schema.org",
  "@type": "TechArticle",
  "mainEntityOfPage": {
    "@type": "WebPage",
    "@id": "https://thecodeforge.io/python/python-keywords-identifiers/"
  },
  "headline": "Python Keywords & Identifiers -- `list` Shadowing Crash",
  "description": "A variable named `list` triggered `TypeError: 'list' object is not callable` in production. See how to catch built-in shadowing with CI checks.",
  "keywords": "Python Keywords & Identifiers -- `list` Shadowing Crash, Python, Beginner, Python Basics, A variable named `list` triggered `TypeError: 'list' object is not callable` in production. See how to catch built-in shadowing with CI checks.",
  "proficiencyLevel": "Beginner",
  "author": {
    "@type": "Person",
    "@id": "https://thecodeforge.io/about/#naren",
    "name": "Naren",
    "url": "https://thecodeforge.io/about/"
  },
  "publisher": {
    "@type": "Organization",
    "@id": "https://thecodeforge.io/#org",
    "name": "TheCodeForge",
    "url": "https://thecodeforge.io",
    "logo": {"@type": "ImageObject", "url": "https://thecodeforge.io/assets/og-image.png"}
  },
  "datePublished": "2026-03-05T00:00:00+00:00",
  "dateModified": "2026-10-31T00:00:00+00:00",
  "url": "https://thecodeforge.io/python/python-keywords-identifiers/",
  "inLanguage": "en",
  "educationalLevel": "Beginner",
  "image": "https://thecodeforge.io/assets/og-image.png",
  "isPartOf": {"@id": "https://thecodeforge.io/#website"}
}
{
  "@context": "https://schema.org",
  "@type": "BreadcrumbList",
  "itemListElement": [
    {"@type": "ListItem", "position": 1, "name": "Home", "item": "https://thecodeforge.io/"},
    {"@type": "ListItem", "position": 2, "name": "Python", "item": "https://thecodeforge.io/python/"},
    {"@type": "ListItem", "position": 3, "name": "Python Keywords & Identifiers -- `list` Shadowing Crash", "item": "https://thecodeforge.io/python/python-keywords-identifiers/"}
  ]
}
{
  "@context": "https://schema.org",
  "@type": "FAQPage",
  "mainEntity": [
    {
      "@type": "Question",
      "name": "How many keywords does Python have?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "Python 3.12 has exactly 35 keywords. This number has changed across Python versions — Python 3.5 added 'async' and 'await', for example. You can always get the exact count for your version by running 'import keyword; print(len(keyword.kwlist))' in your Python environment."
      }
    },
    {
      "@type": "Question",
      "name": "Is 'None' a keyword in Python?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "Yes, 'None' is one of Python's 35 keywords — and it must be written with a capital N. It represents the complete absence of a value, similar to 'null' in other languages. 'none' (all lowercase) is not a keyword and could technically be used as a variable name, though doing so is a recipe for confusion."
      }
    },
    {
      "@type": "Question",
      "name": "What is the difference between a Python keyword and an identifier?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "A keyword is a word with a fixed, built-in meaning that Python's interpreter recognises before your code even runs — you cannot use keywords as variable names. An identifier is a name you choose for your own variables, functions, and classes — it follows Python's naming rules but its meaning is entirely up to you. Keywords are the language's vocabulary; identifiers are your vocabulary inside that language."
      }
    },
    {
      "@type": "Question",
      "name": "Can I use 'print' as a variable name in Python?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "Yes, technically — 'print' is not a keyword (check with `keyword.iskeyword('print')` -> False). You CAN assign `print = 42` without a SyntaxError. But doing so shadows the built-in `print()` function, and any later call to `print(...)` in that scope will raise `TypeError: 'int' object is not callable`. Never use built-in names as identifiers."
      }
    },
    {
      "@type": "Question",
      "name": "What does a syntax error for an invalid identifier look like?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "Run `1player = 5` — you'll get `SyntaxError: invalid decimal literal`. For a hyphen: `player-score = 10` gives `SyntaxError: cannot assign to operator here. Maybe you meant '==' instead of '='?`. For a keyword: `for = 2` gives `SyntaxError: cannot assign to for`. The message varies but always points to the line where the parser got confused."
      }
    }
  ]
}

og:typewebsite
og:imagehttps://thecodeforge.io/assets/og-image.png
og:image:width1200
og:image:height630

Links:

TheCodeForge https://thecodeforge.io/
Pythonhttps://thecodeforge.io/python/
Buy me a coffee https://ko-fi.com/thecodeforge
1Introduction to Pythonhttps://thecodeforge.io/python/introduction-python/
2Python Installation and Setuphttps://thecodeforge.io/python/python-installation-setup/
3Python Data Typeshttps://thecodeforge.io/python/python-data-types/
4Variables in Pythonhttps://thecodeforge.io/python/variables-python/
5Operators in Pythonhttps://thecodeforge.io/python/operators-python/
6Input and Output in Pythonhttps://thecodeforge.io/python/input-output-python/
7Type Conversion in Pythonhttps://thecodeforge.io/python/type-conversion-python/
8Comments in Pythonhttps://thecodeforge.io/python/comments-python/
9Python Indentation and Syntaxhttps://thecodeforge.io/python/python-indentation-syntax/
10Python Keywords and Identifiershttps://thecodeforge.io/python/python-keywords-identifiers/
11Python vs Other Languageshttps://thecodeforge.io/python/python-vs-other-languages/
12How to Read Python Documentationhttps://thecodeforge.io/python/python-documentation/
13Python append(): Add Items to a List (with Examples)https://thecodeforge.io/python/python-append/
14Python print() Function: Syntax, Formatting and Exampleshttps://thecodeforge.io/python/python-print-function/
15Python range() Function Explained with Exampleshttps://thecodeforge.io/python/python-range-function/
16Python split() Method — Syntax, Edge Cases, and Production Pitfallshttps://thecodeforge.io/python/python-split/
17Python enumerate(): Loop with Index and Valuehttps://thecodeforge.io/python/python-enumerate/
← Back to Python track https://thecodeforge.io/python/
Homehttps://thecodeforge.io/
Pythonhttps://thecodeforge.io/python/
Follow https://www.linkedin.com/in/thecodeforge-io-a0676b3b5/
 ● Production Incidenthttps://thecodeforge.io/python/python-keywords-identifiers/#v2-production-incident
 🔎 Debug Guidehttps://thecodeforge.io/python/python-keywords-identifiers/#v2-debug-guide
 ⚙ Triage Commandshttps://thecodeforge.io/python/python-keywords-identifiers/#v2-triage-commands
Pythonhttps://thecodeforge.io/python/introduction-python/
functionshttps://thecodeforge.io/python/functions-python/
numpyhttps://thecodeforge.io/python/numpy-basics/
operatorshttps://thecodeforge.io/python/operators-python/
magic methodshttps://thecodeforge.io/python/magic-methods-python/
for loophttps://thecodeforge.io/python/for-loop-python/
stringshttps://thecodeforge.io/python/strings-python/
singletonhttps://thecodeforge.io/java/singleton-pattern-java/
recordshttps://thecodeforge.io/java/records-java16/
code reviewhttps://thecodeforge.io/cs-fundamentals/code-review-best-practices/
→*args and **kwargs — Silent Typo Bugs in PythonA 'emai' typo passed through **kwargs for 8 months, corrupting user records with defaults. See when explicit parametershttps://thecodeforge.io/python/args-kwargs-python/
→Python Docs: The Missing Slash Behind a TypeErrorA missing '/' in str.split caused a costly TypeError. This article reveals how version annotations and markers in docs.phttps://thecodeforge.io/python/python-documentation/
→Python Variables — NameError That Broke a Payment Pipeline10% of payments crashed with NameError because total_charges was only defined in an if block. Avoid this production bughttps://thecodeforge.io/python/variables-python/
→Misindentation Disables Alerts - Python's Silent BugA misindented line in production silenced all alerts for three days - no error, exit code 0. Python never warns. Only unhttps://thecodeforge.io/python/python-indentation-syntax/
Feature Stores ExplainedAdvancedhttps://thecodeforge.io/ml-ai/feature-stores-explained/
Follow https://www.linkedin.com/in/thecodeforge-io-a0676b3b5/
←PreviousPython Indentation and Syntaxhttps://thecodeforge.io/python/python-indentation-syntax/
NextPython vs Other Languages→https://thecodeforge.io/python/python-vs-other-languages/
LinkedIn https://www.linkedin.com/in/thecodeforge-io-a0676b3b5/
Facebook https://www.facebook.com/profile.php?id=61583020033815
YouTube https://www.youtube.com/channel/UCMar7CF2EmCF1I2tw1tNVuQ
Javahttps://thecodeforge.io/java/
Pythonhttps://thecodeforge.io/python/
C / C++https://thecodeforge.io/c-cpp/
JavaScripthttps://thecodeforge.io/javascript/
DSAhttps://thecodeforge.io/dsa/
Databasehttps://thecodeforge.io/database/
System Designhttps://thecodeforge.io/system-design/
DevOpshttps://thecodeforge.io/devops/
C# / .NEThttps://thecodeforge.io/csharp/
PHPhttps://thecodeforge.io/php/
ML / AIhttps://thecodeforge.io/ml-ai/
Interviewhttps://thecodeforge.io/interview/
CS Fundamentalshttps://thecodeforge.io/cs-fundamentals/
Rusthttps://thecodeforge.io/rust/
Toolshttps://thecodeforge.io/tools/
Cheatsheetshttps://thecodeforge.io/cheatsheets/
Mobilehttps://thecodeforge.io/mobile/
Data Analyticshttps://thecodeforge.io/data-analytics/
Securityhttps://thecodeforge.io/security/
Frontendhttps://thecodeforge.io/frontend/
Data Engineeringhttps://thecodeforge.io/data-engineering/
Testinghttps://thecodeforge.io/testing/
Cloudhttps://thecodeforge.io/cloud/
Observabilityhttps://thecodeforge.io/observability/
Web Platformhttps://thecodeforge.io/web-platform/
🧯 Errors Explainedhttps://thecodeforge.io/errors/
⚒ Blueprintshttps://thecodeforge.io/blueprints/
⌨ Practicehttps://thecodeforge.io/practice/
Interview Prephttps://thecodeforge.io/interview/
DSA Problemshttps://thecodeforge.io/dsa/
Developer Toolshttps://thecodeforge.io/tools/
Cheat Sheetshttps://thecodeforge.io/cheatsheets/
Abouthttps://thecodeforge.io/about/
Sitemaphttps://thecodeforge.io/sitemap.xml
Privacyhttps://thecodeforge.io/privacy.html

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

Robots: max-image-preview:large


URLs of crawlers that visited me.