From 0e2400c8e34a1ac27da383f1b67a8ccacf002008 Mon Sep 17 00:00:00 2001 From: David Reilly Date: Fri, 12 Sep 2025 01:42:25 -0400 Subject: [PATCH 01/10] Add rest of facts from GitHub thread Source: https://github.com/python-discord/meta/discussions/93 Edited for grammar, formatting, and inline code. --- bot/resources/utilities/python_facts.txt | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/bot/resources/utilities/python_facts.txt b/bot/resources/utilities/python_facts.txt index 0abd971b73..f266445f06 100644 --- a/bot/resources/utilities/python_facts.txt +++ b/bot/resources/utilities/python_facts.txt @@ -1,3 +1,17 @@ Python was named after Monty Python, a British Comedy Troupe, which Guido van Rossum likes. If you type `import this` in the Python REPL, you'll get a poem about the philosophies about Python. (check it out by doing !zen in <#267659945086812160>) If you type `import antigravity` in the Python REPL, you'll be directed to an [xkcd comic](https://xkcd.com/353/) about how easy Python is. +Python was first released in 1991, even a few years before Java! +Python was invented by Guido Van Rossum, affectionately known as the 'Benevolent Dictator For Life' of Python (BDFL) until he stepped down in 2018. +If you type `from __future__ import braces` in the REPL, you’ll get an interesting `SyntaxError` about whether it will be implemented. +Not only did Guido van Rossum name Python after Monty Python, the Python docs are riddled with Monty Python skit references. +Python is a multi-paradigm programming language providing support for procedural, object-oriented, and even functional paradigms. +A blank Python file has some built-in hidden variables by default. These are: `__doc__, __name__, __cached__, __spec__, __loader__, __package__, __annotations__, __file__`, and `__builtins__` +Python Libraries and Packages are a set of useful modules and functions that minimize the use of code in our day-to-day life. +There are more than 137k libraries and 198k packages in Python. +There are many implementations of Python; like Jython, which runs on the Java Virtual Machine; IronPython, which runs on .NET; and pypy, which uses a just-in-time compiler. +There is an unofficial port of python for the PS2. +There is a module named `turtledemo` that animates and creates things with the `turtle` module. An example animation is `turtledemo.sorting_animate`, which can be tested using `from turtledemo.sorting_animate import main; main()`. +When you do `hash(float('inf'))` or `hash(math.inf)`, you'll get the first few digits of pi but as an int: `314159`. +Did you know the GOAT of python, Ned, commonly hangs around and help users in python discord!! +Apparently, pythons are known to have eaten goats. From 3fd94952241c96fba727420ac73ce31abc6b11f9 Mon Sep 17 00:00:00 2001 From: David Reilly Date: Fri, 12 Sep 2025 01:48:55 -0400 Subject: [PATCH 02/10] Add Ned's last name --- bot/resources/utilities/python_facts.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot/resources/utilities/python_facts.txt b/bot/resources/utilities/python_facts.txt index f266445f06..910389196c 100644 --- a/bot/resources/utilities/python_facts.txt +++ b/bot/resources/utilities/python_facts.txt @@ -13,5 +13,5 @@ There are many implementations of Python; like Jython, which runs on the Java Vi There is an unofficial port of python for the PS2. There is a module named `turtledemo` that animates and creates things with the `turtle` module. An example animation is `turtledemo.sorting_animate`, which can be tested using `from turtledemo.sorting_animate import main; main()`. When you do `hash(float('inf'))` or `hash(math.inf)`, you'll get the first few digits of pi but as an int: `314159`. -Did you know the GOAT of python, Ned, commonly hangs around and help users in python discord!! +Did you know the GOAT of python, Ned Batchelder, commonly hangs around and help users in python discord!! Apparently, pythons are known to have eaten goats. From c25ed82966299e4ae39a3c3e81f2db46b4cf5d3e Mon Sep 17 00:00:00 2001 From: David Reilly Date: Fri, 12 Sep 2025 02:07:03 -0400 Subject: [PATCH 03/10] Update formatting for Ned's fact --- bot/resources/utilities/python_facts.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bot/resources/utilities/python_facts.txt b/bot/resources/utilities/python_facts.txt index 910389196c..b8f1f87fc6 100644 --- a/bot/resources/utilities/python_facts.txt +++ b/bot/resources/utilities/python_facts.txt @@ -13,5 +13,6 @@ There are many implementations of Python; like Jython, which runs on the Java Vi There is an unofficial port of python for the PS2. There is a module named `turtledemo` that animates and creates things with the `turtle` module. An example animation is `turtledemo.sorting_animate`, which can be tested using `from turtledemo.sorting_animate import main; main()`. When you do `hash(float('inf'))` or `hash(math.inf)`, you'll get the first few digits of pi but as an int: `314159`. -Did you know the GOAT of python, Ned Batchelder, commonly hangs around and help users in python discord!! +Did you know the GOAT of python, [Ned Batchelder](), commonly hangs around and help users in python discord!! Apparently, pythons are known to have eaten goats. +Python is From 337f804858c6b164ea3449f6ee5a56cb42fd59ac Mon Sep 17 00:00:00 2001 From: David Reilly Date: Fri, 12 Sep 2025 02:07:57 -0400 Subject: [PATCH 04/10] Grammar fix --- bot/resources/utilities/python_facts.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot/resources/utilities/python_facts.txt b/bot/resources/utilities/python_facts.txt index b8f1f87fc6..414e354b10 100644 --- a/bot/resources/utilities/python_facts.txt +++ b/bot/resources/utilities/python_facts.txt @@ -13,6 +13,6 @@ There are many implementations of Python; like Jython, which runs on the Java Vi There is an unofficial port of python for the PS2. There is a module named `turtledemo` that animates and creates things with the `turtle` module. An example animation is `turtledemo.sorting_animate`, which can be tested using `from turtledemo.sorting_animate import main; main()`. When you do `hash(float('inf'))` or `hash(math.inf)`, you'll get the first few digits of pi but as an int: `314159`. -Did you know the GOAT of python, [Ned Batchelder](), commonly hangs around and help users in python discord!! +Did you know the GOAT of python, [Ned Batchelder](), commonly hangs around and helps users in python discord!! Apparently, pythons are known to have eaten goats. Python is From 26754a935e7fd14e15c583fd44a45971a4fc168d Mon Sep 17 00:00:00 2001 From: David Reilly Date: Fri, 12 Sep 2025 02:16:09 -0400 Subject: [PATCH 05/10] Add a few more facts --- bot/resources/utilities/python_facts.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bot/resources/utilities/python_facts.txt b/bot/resources/utilities/python_facts.txt index 414e354b10..31230db5a0 100644 --- a/bot/resources/utilities/python_facts.txt +++ b/bot/resources/utilities/python_facts.txt @@ -15,4 +15,8 @@ There is a module named `turtledemo` that animates and creates things with the ` When you do `hash(float('inf'))` or `hash(math.inf)`, you'll get the first few digits of pi but as an int: `314159`. Did you know the GOAT of python, [Ned Batchelder](), commonly hangs around and helps users in python discord!! Apparently, pythons are known to have eaten goats. -Python is +The Python logo itself spells 'py'! +Small integers (from -5 to 256) are cached and reused, so they will always compare identically (`a is b` will be `True` if two variables are the same number and that number is in this range). +Dictionaries are guaranteed to preserve insertion order since Python 3.7. +The canonical implementation of Python is written in C, known as CPython (available from [python.org]()! +The assignment expression operator (`:=`), introduced in Python 3.8, is known as the "walrus operator" due to its shape! From eb4f7496bce0613e2241130424a95610db7d851a Mon Sep 17 00:00:00 2001 From: David Reilly Date: Fri, 12 Sep 2025 02:28:34 -0400 Subject: [PATCH 06/10] Add bool fact --- bot/resources/utilities/python_facts.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bot/resources/utilities/python_facts.txt b/bot/resources/utilities/python_facts.txt index 31230db5a0..2afcbd48a6 100644 --- a/bot/resources/utilities/python_facts.txt +++ b/bot/resources/utilities/python_facts.txt @@ -20,3 +20,6 @@ Small integers (from -5 to 256) are cached and reused, so they will always compa Dictionaries are guaranteed to preserve insertion order since Python 3.7. The canonical implementation of Python is written in C, known as CPython (available from [python.org]()! The assignment expression operator (`:=`), introduced in Python 3.8, is known as the "walrus operator" due to its shape! +In Python, `bool` is actually a subclass of `int` (and you can perform math with `True` and `False` just as though they were `1` and `0`)! + + From 01ad5e68c4e92339c0ca30c09850adea148ba7c6 Mon Sep 17 00:00:00 2001 From: David Reilly Date: Fri, 12 Sep 2025 02:39:07 -0400 Subject: [PATCH 07/10] Add object fact --- bot/resources/utilities/python_facts.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bot/resources/utilities/python_facts.txt b/bot/resources/utilities/python_facts.txt index 2afcbd48a6..2a8616c063 100644 --- a/bot/resources/utilities/python_facts.txt +++ b/bot/resources/utilities/python_facts.txt @@ -15,11 +15,11 @@ There is a module named `turtledemo` that animates and creates things with the ` When you do `hash(float('inf'))` or `hash(math.inf)`, you'll get the first few digits of pi but as an int: `314159`. Did you know the GOAT of python, [Ned Batchelder](), commonly hangs around and helps users in python discord!! Apparently, pythons are known to have eaten goats. -The Python logo itself spells 'py'! +The python logo is based on a Mayan representation of a snake! Small integers (from -5 to 256) are cached and reused, so they will always compare identically (`a is b` will be `True` if two variables are the same number and that number is in this range). Dictionaries are guaranteed to preserve insertion order since Python 3.7. The canonical implementation of Python is written in C, known as CPython (available from [python.org]()! The assignment expression operator (`:=`), introduced in Python 3.8, is known as the "walrus operator" due to its shape! In Python, `bool` is actually a subclass of `int` (and you can perform math with `True` and `False` just as though they were `1` and `0`)! - +Unlike many other languages, Python has no primitive types: every value really *is* an object! From e6f533d85c3d60c3cdefaa4c0dceb493757c4c34 Mon Sep 17 00:00:00 2001 From: David Reilly Date: Fri, 12 Sep 2025 15:26:15 -0400 Subject: [PATCH 08/10] Remove fact about Ned --- bot/resources/utilities/python_facts.txt | 1 - 1 file changed, 1 deletion(-) diff --git a/bot/resources/utilities/python_facts.txt b/bot/resources/utilities/python_facts.txt index 2a8616c063..e82cde7855 100644 --- a/bot/resources/utilities/python_facts.txt +++ b/bot/resources/utilities/python_facts.txt @@ -13,7 +13,6 @@ There are many implementations of Python; like Jython, which runs on the Java Vi There is an unofficial port of python for the PS2. There is a module named `turtledemo` that animates and creates things with the `turtle` module. An example animation is `turtledemo.sorting_animate`, which can be tested using `from turtledemo.sorting_animate import main; main()`. When you do `hash(float('inf'))` or `hash(math.inf)`, you'll get the first few digits of pi but as an int: `314159`. -Did you know the GOAT of python, [Ned Batchelder](), commonly hangs around and helps users in python discord!! Apparently, pythons are known to have eaten goats. The python logo is based on a Mayan representation of a snake! Small integers (from -5 to 256) are cached and reused, so they will always compare identically (`a is b` will be `True` if two variables are the same number and that number is in this range). From dce7188768961b03cc31b7a1953019f2efc4043b Mon Sep 17 00:00:00 2001 From: David Reilly Date: Sun, 14 Sep 2025 00:12:49 -0400 Subject: [PATCH 09/10] Update python_facts.txt Remove last line --- bot/resources/utilities/python_facts.txt | 1 - 1 file changed, 1 deletion(-) diff --git a/bot/resources/utilities/python_facts.txt b/bot/resources/utilities/python_facts.txt index e82cde7855..23882d48db 100644 --- a/bot/resources/utilities/python_facts.txt +++ b/bot/resources/utilities/python_facts.txt @@ -21,4 +21,3 @@ The canonical implementation of Python is written in C, known as CPython (availa The assignment expression operator (`:=`), introduced in Python 3.8, is known as the "walrus operator" due to its shape! In Python, `bool` is actually a subclass of `int` (and you can perform math with `True` and `False` just as though they were `1` and `0`)! Unlike many other languages, Python has no primitive types: every value really *is* an object! - From 86a6230dac8daa72715f4178c509a4d4a935d922 Mon Sep 17 00:00:00 2001 From: David Reilly Date: Mon, 15 Sep 2025 16:30:54 -0400 Subject: [PATCH 10/10] Incorporate updates from wookie184's code review --- bot/resources/utilities/python_facts.txt | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/bot/resources/utilities/python_facts.txt b/bot/resources/utilities/python_facts.txt index 23882d48db..f02fcd1620 100644 --- a/bot/resources/utilities/python_facts.txt +++ b/bot/resources/utilities/python_facts.txt @@ -1,23 +1,17 @@ Python was named after Monty Python, a British Comedy Troupe, which Guido van Rossum likes. If you type `import this` in the Python REPL, you'll get a poem about the philosophies about Python. (check it out by doing !zen in <#267659945086812160>) If you type `import antigravity` in the Python REPL, you'll be directed to an [xkcd comic](https://xkcd.com/353/) about how easy Python is. -Python was first released in 1991, even a few years before Java! -Python was invented by Guido Van Rossum, affectionately known as the 'Benevolent Dictator For Life' of Python (BDFL) until he stepped down in 2018. +Python's first public release was in 1991, making it a few years older than Java! +Python was invented by Guido van Rossum, affectionately known as the 'Benevolent Dictator For Life' (BDFL) of Python until he stepped down in 2018. If you type `from __future__ import braces` in the REPL, you’ll get an interesting `SyntaxError` about whether it will be implemented. Not only did Guido van Rossum name Python after Monty Python, the Python docs are riddled with Monty Python skit references. Python is a multi-paradigm programming language providing support for procedural, object-oriented, and even functional paradigms. -A blank Python file has some built-in hidden variables by default. These are: `__doc__, __name__, __cached__, __spec__, __loader__, __package__, __annotations__, __file__`, and `__builtins__` -Python Libraries and Packages are a set of useful modules and functions that minimize the use of code in our day-to-day life. -There are more than 137k libraries and 198k packages in Python. There are many implementations of Python; like Jython, which runs on the Java Virtual Machine; IronPython, which runs on .NET; and pypy, which uses a just-in-time compiler. -There is an unofficial port of python for the PS2. There is a module named `turtledemo` that animates and creates things with the `turtle` module. An example animation is `turtledemo.sorting_animate`, which can be tested using `from turtledemo.sorting_animate import main; main()`. When you do `hash(float('inf'))` or `hash(math.inf)`, you'll get the first few digits of pi but as an int: `314159`. -Apparently, pythons are known to have eaten goats. -The python logo is based on a Mayan representation of a snake! -Small integers (from -5 to 256) are cached and reused, so they will always compare identically (`a is b` will be `True` if two variables are the same number and that number is in this range). +The Python logo is based on Mayan representations of snakes! +At the time of writing, small integers in Python (from -5 to 256) are cached and reused, so they will always compare identically (`a is b` will be `True` if `a` and `b` are the same number and in this range). Dictionaries are guaranteed to preserve insertion order since Python 3.7. The canonical implementation of Python is written in C, known as CPython (available from [python.org]()! The assignment expression operator (`:=`), introduced in Python 3.8, is known as the "walrus operator" due to its shape! In Python, `bool` is actually a subclass of `int` (and you can perform math with `True` and `False` just as though they were `1` and `0`)! -Unlike many other languages, Python has no primitive types: every value really *is* an object!