aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bot/resources/tags/args-kwargs.md10
-rw-r--r--bot/resources/tags/ask.md8
-rw-r--r--bot/resources/tags/codeblock.md8
-rw-r--r--bot/resources/tags/decorators.md6
-rw-r--r--bot/resources/tags/foo.md4
-rw-r--r--bot/resources/tags/inline.md6
-rw-r--r--bot/resources/tags/mutable-default-args.md2
-rw-r--r--bot/resources/tags/names.md18
-rw-r--r--bot/resources/tags/off-topic.md8
-rw-r--r--bot/resources/tags/open.md8
-rw-r--r--bot/resources/tags/pathlib.md24
-rw-r--r--bot/resources/tags/positional-keyword.md8
-rw-r--r--bot/resources/tags/quotes.md4
-rw-r--r--bot/resources/tags/return.md10
-rw-r--r--bot/resources/tags/round.md10
-rw-r--r--bot/resources/tags/scope.md6
-rw-r--r--bot/resources/tags/seek.md4
-rw-r--r--bot/resources/tags/traceback.md6
18 files changed, 75 insertions, 75 deletions
diff --git a/bot/resources/tags/args-kwargs.md b/bot/resources/tags/args-kwargs.md
index fb19d39fd..de883dea8 100644
--- a/bot/resources/tags/args-kwargs.md
+++ b/bot/resources/tags/args-kwargs.md
@@ -8,10 +8,10 @@ These special parameters allow functions to take arbitrary amounts of positional
**Double asterisk**
`**kwargs` will ingest an arbitrary amount of **keyword arguments**, and store it in a dictionary. There can be **no** additional parameters **after** `**kwargs` in the parameter list.
-**Use cases**
-• **Decorators** (see `!tags decorators`)
-• **Inheritance** (overriding methods)
-• **Future proofing** (in the case of the first two bullet points, if the parameters change, your code won't break)
-• **Flexibility** (writing functions that behave like `dict()` or `print()`)
+**Use cases**
+• **Decorators** (see `!tags decorators`)
+• **Inheritance** (overriding methods)
+• **Future proofing** (in the case of the first two bullet points, if the parameters change, your code won't break)
+• **Flexibility** (writing functions that behave like `dict()` or `print()`)
*See* `!tags positional-keyword` *for information about positional and keyword arguments* \ No newline at end of file
diff --git a/bot/resources/tags/ask.md b/bot/resources/tags/ask.md
index 07f9bd84d..ed651e8c5 100644
--- a/bot/resources/tags/ask.md
+++ b/bot/resources/tags/ask.md
@@ -1,9 +1,9 @@
Asking good questions will yield a much higher chance of a quick response:
-• Don't ask to ask your question, just go ahead and tell us your problem.
-• Don't ask if anyone is knowledgeable in some area, filtering serves no purpose.
-• Try to solve the problem on your own first, we're not going to write code for you.
-• Show us the code you've tried and any errors or unexpected results it's giving.
+• Don't ask to ask your question, just go ahead and tell us your problem.
+• Don't ask if anyone is knowledgeable in some area, filtering serves no purpose.
+• Try to solve the problem on your own first, we're not going to write code for you.
+• Show us the code you've tried and any errors or unexpected results it's giving.
• Be patient while we're helping you.
You can find a much more detailed explanation [on our website](https://pythondiscord.com/pages/asking-good-questions/). \ No newline at end of file
diff --git a/bot/resources/tags/codeblock.md b/bot/resources/tags/codeblock.md
index 816bb8232..34db060ef 100644
--- a/bot/resources/tags/codeblock.md
+++ b/bot/resources/tags/codeblock.md
@@ -6,10 +6,10 @@ To do this, use the following method:
print('Hello world!')
\```
-Note:
-• **These are backticks, not quotes.** Backticks can usually be found on the tilde key.
-• You can also use py as the language instead of python
-• The language must be on the first line next to the backticks with **no** space between them
+Note:
+• **These are backticks, not quotes.** Backticks can usually be found on the tilde key.
+• You can also use py as the language instead of python
+• The language must be on the first line next to the backticks with **no** space between them
This will result in the following:
```py
diff --git a/bot/resources/tags/decorators.md b/bot/resources/tags/decorators.md
index 3ff1db16c..9b53af064 100644
--- a/bot/resources/tags/decorators.md
+++ b/bot/resources/tags/decorators.md
@@ -26,6 +26,6 @@ Time elapsed: 3.000307321548462
Finished!
```
-More information:
-• [Corey Schafer's video on decorators](https://youtu.be/FsAPt_9Bf3U)
-• [Real python article](https://realpython.com/primer-on-python-decorators/) \ No newline at end of file
+More information:
+• [Corey Schafer's video on decorators](https://youtu.be/FsAPt_9Bf3U)
+• [Real python article](https://realpython.com/primer-on-python-decorators/) \ No newline at end of file
diff --git a/bot/resources/tags/foo.md b/bot/resources/tags/foo.md
index 58bc4b78f..2b5b659fd 100644
--- a/bot/resources/tags/foo.md
+++ b/bot/resources/tags/foo.md
@@ -5,6 +5,6 @@ A specific word or set of words identified as a placeholder used in programming.
Common examples include `foobar`, `foo`, `bar`, `baz`, and `qux`.
Python has its own metasyntactic variables, namely `spam`, `eggs`, and `bacon`. This is a reference to a [Monty Python](https://en.wikipedia.org/wiki/Monty_Python) sketch (the eponym of the language).
-More information:
-• [History of foobar](https://en.wikipedia.org/wiki/Foobar)
+More information:
+• [History of foobar](https://en.wikipedia.org/wiki/Foobar)
• [Monty Python sketch](https://en.wikipedia.org/wiki/Spam_%28Monty_Python%29) \ No newline at end of file
diff --git a/bot/resources/tags/inline.md b/bot/resources/tags/inline.md
index 4670256bc..d0c9d1b5e 100644
--- a/bot/resources/tags/inline.md
+++ b/bot/resources/tags/inline.md
@@ -10,7 +10,7 @@ And results in the following:
The `__init__` method customizes the newly created instance.
-**Note:**
-• These are **backticks** not quotes
-• Avoid using them for multiple lines
+**Note:**
+• These are **backticks** not quotes
+• Avoid using them for multiple lines
• Useful for negating formatting you don't want \ No newline at end of file
diff --git a/bot/resources/tags/mutable-default-args.md b/bot/resources/tags/mutable-default-args.md
index 49f536b78..7b16e6b82 100644
--- a/bot/resources/tags/mutable-default-args.md
+++ b/bot/resources/tags/mutable-default-args.md
@@ -43,6 +43,6 @@ function is **called**:
**Note**:
• This behavior can be used intentionally to maintain state between
-calls of a function (eg. when writing a caching function).
+calls of a function (eg. when writing a caching function).
• This behavior is not unique to mutable objects, all default
arguments are evaulated only once when the function is defined. \ No newline at end of file
diff --git a/bot/resources/tags/names.md b/bot/resources/tags/names.md
index b7b914d53..462c550bc 100644
--- a/bot/resources/tags/names.md
+++ b/bot/resources/tags/names.md
@@ -22,16 +22,16 @@ y ━━━┛
x ━━ 2
y ━━ 1
```
-**Names are created in multiple ways**
-You might think that the only way to bind a name to an object is by using assignment, but that isn't the case. All of the following work exactly the same as assignment:
-• `import` statements
-• `class` and `def`
-• `for` loop headers
-• `as` keyword when used with `except`, `import`, and `with`
-• formal parameters in function headers
+**Names are created in multiple ways**
+You might think that the only way to bind a name to an object is by using assignment, but that isn't the case. All of the following work exactly the same as assignment:
+• `import` statements
+• `class` and `def`
+• `for` loop headers
+• `as` keyword when used with `except`, `import`, and `with`
+• formal parameters in function headers
There is also `del` which has the purpose of *unbinding* a name.
-**More info**
-• Please watch [Ned Batchelder's talk](https://youtu.be/_AEJHKGk9ns) on names in python for a detailed explanation with examples
+**More info**
+• Please watch [Ned Batchelder's talk](https://youtu.be/_AEJHKGk9ns) on names in python for a detailed explanation with examples
• [Official documentation](https://docs.python.org/3/reference/executionmodel.html#naming-and-binding) \ No newline at end of file
diff --git a/bot/resources/tags/off-topic.md b/bot/resources/tags/off-topic.md
index 8fa70bf6e..004adfa17 100644
--- a/bot/resources/tags/off-topic.md
+++ b/bot/resources/tags/off-topic.md
@@ -1,8 +1,8 @@
**Off-topic channels**
-There are three off-topic channels:
-• <#291284109232308226>
-• <#463035241142026251>
-• <#463035268514185226>
+There are three off-topic channels:
+• <#291284109232308226>
+• <#463035241142026251>
+• <#463035268514185226>
Their names change randomly every 24 hours, but you can always find them under the `OFF-TOPIC/GENERAL` category in the channel list. \ No newline at end of file
diff --git a/bot/resources/tags/open.md b/bot/resources/tags/open.md
index 74150dbc7..1ba19dedd 100644
--- a/bot/resources/tags/open.md
+++ b/bot/resources/tags/open.md
@@ -2,10 +2,10 @@
The built-in function `open()` is one of several ways to open files on your computer. It accepts many different parameters, so this tag will only go over two of them (`file` and `mode`). For more extensive documentation on all these parameters, consult the [official documentation](https://docs.python.org/3/library/functions.html#open). The object returned from this function is a [file object or stream](https://docs.python.org/3/glossary.html#term-file-object), for which the full documentation can be found [here](https://docs.python.org/3/library/io.html#io.TextIOBase).
-See also:
-• `!tags with` for information on context managers
-• `!tags pathlib` for an alternative way of opening files
-• `!tags seek` for information on changing your position in a file
+See also:
+• `!tags with` for information on context managers
+• `!tags pathlib` for an alternative way of opening files
+• `!tags seek` for information on changing your position in a file
**The `file` parameter**
diff --git a/bot/resources/tags/pathlib.md b/bot/resources/tags/pathlib.md
index 37913951d..468945cc5 100644
--- a/bot/resources/tags/pathlib.md
+++ b/bot/resources/tags/pathlib.md
@@ -4,18 +4,18 @@ Python 3 comes with a new module named `Pathlib`. Since Python 3.6, `pathlib.Pat
**Feature spotlight**:
-• Normalizes file paths for all platforms automatically
-• Has glob-like utilites (eg. `Path.glob`, `Path.rglob`) for searching files
-• Can read and write files, and close them automatically
-• Convenient syntax, utilising the `/` operator (e.g. `Path('~') / 'Documents'`)
-• Can easily pick out components of a path (eg. name, parent, stem, suffix, anchor)
-• Supports method chaining
-• Move and delete files
-• And much more
+• Normalizes file paths for all platforms automatically
+• Has glob-like utilites (eg. `Path.glob`, `Path.rglob`) for searching files
+• Can read and write files, and close them automatically
+• Convenient syntax, utilising the `/` operator (e.g. `Path('~') / 'Documents'`)
+• Can easily pick out components of a path (eg. name, parent, stem, suffix, anchor)
+• Supports method chaining
+• Move and delete files
+• And much more
**More Info**:
-• [**Why you should use pathlib** - Trey Hunner](https://treyhunner.com/2018/12/why-you-should-be-using-pathlib/)
-• [**Answering concerns about pathlib** - Trey Hunner](https://treyhunner.com/2019/01/no-really-pathlib-is-great/)
-• [**Official Documentation**](https://docs.python.org/3/library/pathlib.html)
-• [**PEP 519** - Adding a file system path protocol](https://www.python.org/dev/peps/pep-0519/) \ No newline at end of file
+• [**Why you should use pathlib** - Trey Hunner](https://treyhunner.com/2018/12/why-you-should-be-using-pathlib/)
+• [**Answering concerns about pathlib** - Trey Hunner](https://treyhunner.com/2019/01/no-really-pathlib-is-great/)
+• [**Official Documentation**](https://docs.python.org/3/library/pathlib.html)
+• [**PEP 519** - Adding a file system path protocol](https://www.python.org/dev/peps/pep-0519/) \ No newline at end of file
diff --git a/bot/resources/tags/positional-keyword.md b/bot/resources/tags/positional-keyword.md
index 3faec32ca..bc7f68ee0 100644
--- a/bot/resources/tags/positional-keyword.md
+++ b/bot/resources/tags/positional-keyword.md
@@ -32,7 +32,7 @@ The reverse is also true:
2 1
```
-**More info**
-• [Keyword only arguments](https://www.python.org/dev/peps/pep-3102/)
-• [Positional only arguments](https://www.python.org/dev/peps/pep-0570/)
-• `!tags param-arg` (Parameters vs. Arguments) \ No newline at end of file
+**More info**
+• [Keyword only arguments](https://www.python.org/dev/peps/pep-3102/)
+• [Positional only arguments](https://www.python.org/dev/peps/pep-0570/)
+• `!tags param-arg` (Parameters vs. Arguments) \ No newline at end of file
diff --git a/bot/resources/tags/quotes.md b/bot/resources/tags/quotes.md
index 609b6d2d2..bb6e2a009 100644
--- a/bot/resources/tags/quotes.md
+++ b/bot/resources/tags/quotes.md
@@ -15,6 +15,6 @@ Example:
**Note:**
If you need both single and double quotes inside your string, use the version that would result in the least amount of escapes. In the case of a tie, use the quotation you use the most.
-**References:**
-• [pep-8 on quotes](https://www.python.org/dev/peps/pep-0008/#string-quotes)
+**References:**
+• [pep-8 on quotes](https://www.python.org/dev/peps/pep-0008/#string-quotes)
• [convention for triple quoted strings](https://www.python.org/dev/peps/pep-0257/) \ No newline at end of file
diff --git a/bot/resources/tags/return.md b/bot/resources/tags/return.md
index 7e0cdaa98..c944dddf2 100644
--- a/bot/resources/tags/return.md
+++ b/bot/resources/tags/return.md
@@ -28,8 +28,8 @@ None
>>> print(x)
None
```
-**Things to note**
-• `print()` and `return` do **not** accomplish the same thing. `print()` will only print the value, it will not be accessible outside of the function afterwards.
-• A function will return `None` if it ends without reaching an explicit `return` statement.
-• When you want to print a value calculated in a function, instead of printing inside the function, it is often better to return the value and print the *function call* instead.
-• [Official documentation for `return`](https://docs.python.org/3/reference/simple_stmts.html#the-return-statement) \ No newline at end of file
+**Things to note**
+• `print()` and `return` do **not** accomplish the same thing. `print()` will only print the value, it will not be accessible outside of the function afterwards.
+• A function will return `None` if it ends without reaching an explicit `return` statement.
+• When you want to print a value calculated in a function, instead of printing inside the function, it is often better to return the value and print the *function call* instead.
+• [Official documentation for `return`](https://docs.python.org/3/reference/simple_stmts.html#the-return-statement) \ No newline at end of file
diff --git a/bot/resources/tags/round.md b/bot/resources/tags/round.md
index 3e33c8ff7..28a12469a 100644
--- a/bot/resources/tags/round.md
+++ b/bot/resources/tags/round.md
@@ -17,8 +17,8 @@ The round half up technique creates a slight bias towards the larger number. Wit
It should be noted that round half to even distorts the distribution by increasing the probability of evens relative to odds, however this is considered less important than the bias explained above.
-**References:**
-• [Wikipedia article about rounding](https://en.wikipedia.org/wiki/Rounding#Round_half_to_even)
-• [Documentation on `round` function](https://docs.python.org/3/library/functions.html#round)
-• [`round` in what's new in python 3](https://docs.python.org/3/whatsnew/3.0.html#builtins) (4th bullet down)
-• [How to force rounding technique](https://stackoverflow.com/a/10826537/4607272) \ No newline at end of file
+**References:**
+• [Wikipedia article about rounding](https://en.wikipedia.org/wiki/Rounding#Round_half_to_even)
+• [Documentation on `round` function](https://docs.python.org/3/library/functions.html#round)
+• [`round` in what's new in python 3](https://docs.python.org/3/whatsnew/3.0.html#builtins) (4th bullet down)
+• [How to force rounding technique](https://stackoverflow.com/a/10826537/4607272) \ No newline at end of file
diff --git a/bot/resources/tags/scope.md b/bot/resources/tags/scope.md
index ff9d96637..c1eeb3b84 100644
--- a/bot/resources/tags/scope.md
+++ b/bot/resources/tags/scope.md
@@ -18,7 +18,7 @@ Alternatively if a variable is defined within a function block for example, it i
>>> inner() # prints variable foo without issue
bar
```
-**Official Documentation**
-**1.** [Program structure, name binding and resolution](https://docs.python.org/3/reference/executionmodel.html#execution-model)
-**2.** [`global` statement](https://docs.python.org/3/reference/simple_stmts.html#the-global-statement)
+**Official Documentation**
+**1.** [Program structure, name binding and resolution](https://docs.python.org/3/reference/executionmodel.html#execution-model)
+**2.** [`global` statement](https://docs.python.org/3/reference/simple_stmts.html#the-global-statement)
**3.** [`nonlocal` statement](https://docs.python.org/3/reference/simple_stmts.html#the-nonlocal-statement) \ No newline at end of file
diff --git a/bot/resources/tags/seek.md b/bot/resources/tags/seek.md
index ada23fd00..ff6569a0c 100644
--- a/bot/resources/tags/seek.md
+++ b/bot/resources/tags/seek.md
@@ -17,6 +17,6 @@ Now lets do `f.seek(4, 1)`. This will move our stream position 4 bytes forward r
Finally, lets do `f.seek(-4, 2)`, moving our stream position *backwards* 4 bytes relative to the **end** of the stream. Now if we did `f.read()` to read everything after our position in the file, it would return the string `'eggs'` and also move our stream position to the end of the file.
-**Note**
-• For the second argument in `seek()`, use `os.SEEK_SET`, `os.SEEK_CUR`, and `os.SEEK_END` in place of 0, 1, and 2 respectively.
+**Note**
+• For the second argument in `seek()`, use `os.SEEK_SET`, `os.SEEK_CUR`, and `os.SEEK_END` in place of 0, 1, and 2 respectively.
• `os.SEEK_CUR` is only usable when the file is in byte mode. \ No newline at end of file
diff --git a/bot/resources/tags/traceback.md b/bot/resources/tags/traceback.md
index 74401abf0..678ba1991 100644
--- a/bot/resources/tags/traceback.md
+++ b/bot/resources/tags/traceback.md
@@ -11,8 +11,8 @@ ZeroDivisionError: integer division or modulo by zero
```
The best way to read your traceback is bottom to top.
-• Identify the exception raised (e.g. ZeroDivisonError)
-• Make note of the line number, and navigate there in your program.
-• Try to understand why the error occurred.
+• Identify the exception raised (e.g. ZeroDivisonError)
+• Make note of the line number, and navigate there in your program.
+• Try to understand why the error occurred.
To read more about exceptions and errors, please refer to the [PyDis Wiki](https://pythondiscord.com/pages/asking-good-questions/#examining-tracebacks) or the [official Python tutorial.](https://docs.python.org/3.7/tutorial/errors.html) \ No newline at end of file