Update README.md
Signed-off-by: David Rotermund <54365609+davrot@users.noreply.github.com>
This commit is contained in:
parent
406daf5dcd
commit
74d85a5383
1 changed files with 2 additions and 1 deletions
|
@ -39,6 +39,7 @@ I can not stress enough: Use a good editor!!! Then you don't even read this text
|
||||||
## [PEP 20 – The Zen of Python](https://peps.python.org/pep-0020/)
|
## [PEP 20 – The Zen of Python](https://peps.python.org/pep-0020/)
|
||||||
|
|
||||||
The rules behind Python are:
|
The rules behind Python are:
|
||||||
|
|
||||||
||
|
||
|
||||||
|---|
|
|---|
|
||||||
|**Beautiful is better than ugly.**|
|
|**Beautiful is better than ugly.**|
|
||||||
|
@ -174,7 +175,7 @@ from foo.bar.yourclass import YourClass
|
||||||
|
|
||||||
## [Module Level Dunder Names](https://peps.python.org/pep-0008/#module-level-dunder-names)
|
## [Module Level Dunder Names](https://peps.python.org/pep-0008/#module-level-dunder-names)
|
||||||
|
|
||||||
Module level “dunders” (i.e. names with two leading and two trailing underscores) such as __all__, __author__, __version__, etc. should be placed after the module docstring but before any import statements except from __future__ imports. Python mandates that future-imports must appear in the module before any other code except docstrings:
|
Module level “dunders” (i.e. names with two leading and two trailing underscores) such as \_\_all\_\_, \_\_author\_\_, \_\_version\_\_, etc. should be placed after the module docstring but before any import statements except from \_\_future\_\_ imports. Python mandates that future-imports must appear in the module before any other code except docstrings:
|
||||||
|
|
||||||
```python
|
```python
|
||||||
"""This is the example module.
|
"""This is the example module.
|
||||||
|
|
Loading…
Reference in a new issue