Tag

pep8

0 views collected around this technical thread.

php中文网 Courses
php中文网 Courses
May 9, 2025 · Fundamentals

Standard Python Project Structure and Code Style Guidelines (PEP 8)

This article explains how to organize a Python project with a conventional directory layout, follow PEP 8 naming and formatting rules, and use automated tools such as Flake8, Black, and isort to enforce code quality and streamline collaboration.

Project StructurePythoncode quality
0 likes · 6 min read
Standard Python Project Structure and Code Style Guidelines (PEP 8)
Python Programming Learning Circle
Python Programming Learning Circle
Feb 19, 2025 · Fundamentals

Understanding Python Underscore Naming Conventions and Name Mangling

This article explains the meaning and conventions of single and double leading, trailing, and surrounding underscores in Python identifiers, shows how name mangling works, and provides practical code examples illustrating their effects on classes, modules, and REPL usage.

Name ManglingNaming Conventionscode examples
0 likes · 11 min read
Understanding Python Underscore Naming Conventions and Name Mangling
Code Mala Tang
Code Mala Tang
Jan 7, 2025 · Fundamentals

Master Python Imports: Choose import, from, or * and Avoid Common Pitfalls

This guide explains the differences between Python's import statements—including "import X", "from X import Y", and "from X import *"—covers dynamic imports with __import__, sys.path handling, PYTHONPATH, PEP8 import ordering, __all__ usage, and the role of __name__ in module execution, helping you write cleaner, conflict‑free code.

ModulesPythondynamic-import
0 likes · 10 min read
Master Python Imports: Choose import, from, or * and Avoid Common Pitfalls
Python Programming Learning Circle
Python Programming Learning Circle
Jul 8, 2024 · Fundamentals

Python Variable Usage, Naming Conventions, and Common Operations

This article teaches Python developers how to write cleaner, more elegant code by mastering variable unpacking, underscore placeholders, type annotations, PEP 8 naming rules, numeric literals, floating‑point precision handling with Decimal, boolean arithmetic tricks, and a wide range of string manipulation techniques, all illustrated with practical code examples.

DecimalPythonType Annotations
0 likes · 10 min read
Python Variable Usage, Naming Conventions, and Common Operations
Python Programming Learning Circle
Python Programming Learning Circle
Dec 9, 2022 · Fundamentals

Using Pylint for Python Linting: A Practical Guide

This tutorial demonstrates how to set up a Python project, install and run Pylint, interpret its messages, and improve code quality by adding docstrings, fixing formatting issues, and configuring suppression, while also covering linting on single files, directories, and common pitfalls.

Static Analysiscode qualitylinting
0 likes · 11 min read
Using Pylint for Python Linting: A Practical Guide
Python Programming Learning Circle
Python Programming Learning Circle
Aug 1, 2022 · Fundamentals

Understanding Python Underscore Naming Conventions and Name Mangling

This article explains the various meanings of single and double underscores in Python, outlines the five common underscore naming patterns, demonstrates how name mangling works for double‑leading underscores, and shows practical uses of the underscore as a throwaway variable and REPL placeholder.

Name ManglingNaming ConventionsUnderscores
0 likes · 11 min read
Understanding Python Underscore Naming Conventions and Name Mangling
Python Programming Learning Circle
Python Programming Learning Circle
Oct 20, 2021 · Fundamentals

Python Coding Style Guidelines (Applicable to Django)

This guide presents comprehensive Python coding conventions—including indentation, line length, quoting, blank lines, encoding, import ordering, spacing, line‑break handling, comment styles, docstring rules, and naming standards—providing clear examples and best‑practice recommendations for clean, maintainable code.

Best PracticesDjangoPython
0 likes · 7 min read
Python Coding Style Guidelines (Applicable to Django)
Python Programming Learning Circle
Python Programming Learning Circle
May 20, 2021 · Fundamentals

Essential Python Skills that Separate Beginners from Intermediate Programmers

This article outlines the key competencies that distinguish beginner from intermediate Python programmers, covering problem‑solving techniques, the XY problem, string and list manipulation, functions, object‑oriented programming, and the importance of following PEP‑8 conventions, all illustrated with clear code examples.

BeginnerIntermediateOOP
0 likes · 11 min read
Essential Python Skills that Separate Beginners from Intermediate Programmers
Qunar Tech Salon
Qunar Tech Salon
Feb 2, 2016 · Fundamentals

Python Coding Style Guide: Best Practices and Conventions

This comprehensive guide explains Python coding style best practices, covering PEP 8 extensions, flexible line length, naming conventions, docstring standards, functional versus object‑oriented design, testing, standard library usage, third‑party tools, and project structure to produce readable, maintainable code.

Best PracticesCode readabilityProject Structure
0 likes · 22 min read
Python Coding Style Guide: Best Practices and Conventions