Skip to content

Commit f1c4019

Browse files
committed
fixed long term spelling mistakes
1 parent ab12c22 commit f1c4019

File tree

1 file changed

+23
-23
lines changed

1 file changed

+23
-23
lines changed

README.md

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1607,7 +1607,7 @@ From the Python 3 [documentation](https://docs.python.org/3/tutorial/datastructu
16071607
16081608
### Initializing a set
16091609

1610-
There are two ways to create sets: using curly braces `{}` and the bult-in function `set()`
1610+
There are two ways to create sets: using curly braces `{}` and the built-in function `set()`
16111611

16121612
```python
16131613
>>> s = {1, 2, 3}
@@ -1740,7 +1740,7 @@ KeyError: 3
17401740

17411741
## itertools Module
17421742

1743-
The _itertools_ module is a colection of tools intented to be fast and use memory efficiently when handling iterators (like [lists](#lists) or [dictionaries](#dictionaries-and-structuring-data)).
1743+
The _itertools_ module is a collection of tools intended to be fast and use memory efficiently when handling iterators (like [lists](#lists) or [dictionaries](#dictionaries-and-structuring-data)).
17441744

17451745
From the official [Python 3.x documentation](https://docs.python.org/3/library/itertools.html):
17461746

@@ -3152,23 +3152,23 @@ The dot-star will match everything except a newline. By passing re.DOTALL as the
31523152

31533153
### Review of Regex Symbols
31543154

3155-
| Symbol | Matches |
3156-
| ------------------------ | ------------------------------------------------------------ |
3157-
| `?` | zero or one of the preceding group. |
3158-
| `*` | zero or more of the preceding group. |
3159-
| `+` | one or more of the preceding group. |
3160-
| `{n}` | exactly n of the preceding group. |
3161-
| `{n,}` | n or more of the preceding group. |
3162-
| `{,m}` | 0 to m of the preceding group. |
3163-
| `{n,m}` | at least n and at most m of the preceding p. |
3164-
| `{n,m}?` or `*?` or `+?` | performs a nongreedy match of the preceding p. |
3165-
| `^spam` | means the string must begin with spam. |
3166-
| `spam$` | means the string must end with spam. |
3167-
| `.` | any character, except newline characters. |
3168-
| `\d`, `\w`, and `\s` | a digit, word, or space character, respectively. |
3169-
| `\D`, `\W`, and `\S` | anything except a digit, word, or space acter, respectively. |
3170-
| `[abc]` | any character between the brackets (such as a, b, ). |
3171-
| `[^abc]` | any character that isn’t between the brackets. |
3155+
| Symbol | Matches |
3156+
| ------------------------ | ------------------------------------------------------ |
3157+
| `?` | zero or one of the preceding group. |
3158+
| `*` | zero or more of the preceding group. |
3159+
| `+` | one or more of the preceding group. |
3160+
| `{n}` | exactly n of the preceding group. |
3161+
| `{n,}` | n or more of the preceding group. |
3162+
| `{,m}` | 0 to m of the preceding group. |
3163+
| `{n,m}` | at least n and at most m of the preceding p. |
3164+
| `{n,m}?` or `*?` or `+?` | performs a nongreedy match of the preceding p. |
3165+
| `^spam` | means the string must begin with spam. |
3166+
| `spam$` | means the string must end with spam. |
3167+
| `.` | any character, except newline characters. |
3168+
| `\d`, `\w`, and `\s` | a digit, word, or space character, respectively. |
3169+
| `\D`, `\W`, and `\S` | anything except a digit, word, or space, respectively. |
3170+
| `[abc]` | any character between the brackets (such as a, b, ). |
3171+
| `[^abc]` | any character that isn’t between the brackets. |
31723172

31733173
[_Return to the Top_](#python-cheatsheet)
31743174

@@ -3958,9 +3958,9 @@ with open("filename.json", "w") as f:
39583958
### YAML
39593959

39603960
Compared to JSON, YAML allows for much better human maintainability and gives you the option to add comments.
3961-
It is a convinient choice for configuration files where humans will have to edit it.
3961+
It is a convenient choice for configuration files where humans will have to edit it.
39623962

3963-
There are two main librairies allowing to access to YAML files:
3963+
There are two main libraries allowing to access to YAML files:
39643964

39653965
- [PyYaml](https://pypi.python.org/pypi/PyYAML)
39663966
- [Ruamel.yaml](https://pypi.python.org/pypi/ruamel.yaml)
@@ -3984,7 +3984,7 @@ with open("filename.yaml") as f:
39843984

39853985
### Anyconfig
39863986

3987-
[Anyconfig](https://pypi.python.org/pypi/anyconfig) is a very handy package allowing to abstract completly the underlying configuration file format. It allows to load a Python dictionary from JSON, YAML, TOML, and so on.
3987+
[Anyconfig](https://pypi.python.org/pypi/anyconfig) is a very handy package allowing to abstract completely the underlying configuration file format. It allows to load a Python dictionary from JSON, YAML, TOML, and so on.
39883988

39893989
Install it with:
39903990

@@ -4020,7 +4020,7 @@ Traceback (most recent call last):
40204020
Exception: This is the error message.
40214021
```
40224022

4023-
Often it’s the code that calls the function, not the function itself, that knows how to handle an expection. So you will commonly see a raise statement inside a function and the try and except statements in the code calling the function.
4023+
Often it’s the code that calls the function, not the function itself, that knows how to handle an exception. So you will commonly see a raise statement inside a function and the try and except statements in the code calling the function.
40244024

40254025
```python
40264026
def box_print(symbol, width, height):

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy