Questions tagged [python]
Python is an interpreted, general-purpose high-level programming language whose design philosophy emphasizes code readability. Use the python tag for all Python related questions. If you believe your question may be even more specific, you can include a version specific tag such as python-3.x.
15 questions from the last 30 days
0
votes
2
answers
18
views
Encrypted Messaging Protocol over FTP in Python
Project Overview
I have developed a project named FTPChat, which is a lightweight messaging protocol that uses a shared file hosted on an FTP server as its transport layer. The project is intended for ...
3
votes
4
answers
321
views
The project logger
I have written a small function that will be imported in each working file of my project and will make logging uniform for the project, allowing for centralized editing of logging settings.
What can I ...
12
votes
5
answers
1k
views
Efficiency when converting camelCase to snake_case
I have just finished the 'camel' task of CS50 Introduction to Programming with Python where you have to convert camelCase to snake_case. After, I like to look online and compare my code to others to ...
5
votes
5
answers
504
views
PART 4 - of Compare CCT (Correlated Color Temperature) values of Tanner/McCamy/Charity and Siess in tkinter GUI application
Here we are Part-4. I didn't expected this exercise to take me so long, but your criticism made me wanna do it.
I'm very grateful for all of your time and great suggestions and I'm also happy I found ...
0
votes
4
answers
119
views
PART 3 - of Compare CCT (Correlated Color Temperature) values of Tanner/McCamy/Charity and Siess in tkinter GUI application
At this stage (I think) I've worked in all the given feedback, except for vectors which will (maybe) appear in part 4 of this series.
For now, the program has changed quite drastically and mc camy ...
3
votes
3
answers
312
views
PART 2 - of Compare CCT (Correlated Color Temperature) values of Tanner/McCamy/Charity and Siess in tkinter GUI application
This is a follow-up question to the previous on.
Compare CCT (Correlated Color Temperature) values of Tanner/McCamy/Charity and Siess in tkinter GUI application
I have worked in all of the suggestions ...
4
votes
2
answers
147
views
Compare CCT (Correlated Color Temperature) values of Tanner/McCamy/Charity and Siess in tkinter GUI application
So I'm actually not absolutely sure if this questions fits the needs of this site, but a quick look into ontopic says it's okish
So I played around with the cct and the public available datasets to ...
3
votes
4
answers
1k
views
Print all distinct words found in a text file
Python code
The python code that appends the words to a list and displays it to the user.
Don't criticize me for nested loops and if statements.
...
6
votes
7
answers
2k
views
Simple Clicker Game in Python
Here is a clicker game I made using Python. The code is so readable, I don't even need to explain.
...
5
votes
3
answers
555
views
Matrix row operation mental practice tool
I want to practice mentally computing matrix row operations for a linear algebra course I just started. As such, I'm developing a program that randomly generates matrices and row operations, then lets ...
5
votes
5
answers
531
views
A Simple Command-Line Calculator with Input Validation in Python
Here is the source code:
...
8
votes
6
answers
918
views
8
votes
6
answers
1k
views
Python class for arbitrary-precision natural number
So as a fun weekend project, I decided to implement from scratch without AI assistance a (probably useless) Python class for handling basic arithmetic (addition, subtraction, multiplication and ...
7
votes
2
answers
527
views
Test that tests that the docker image can be created and it runs
I created a test that creates the docker image based on a Dockerfile, and test that the web app is running. I did it because sometimes during the development of this project, I broke the creation of ...
7
votes
1
answer
117
views
Proper cleanup in asyncio's __aexit__ in the case of cancellation
The following python code sample simulates an asyncio program which reads from a unix domain socket and prints its output (and additional debug output for later use)...