CARVIEW |
Select Language
HTTP/2 200
date: Sat, 26 Jul 2025 08:39:24 GMT
content-type: text/html; charset=utf-8
cf-ray: 96529617488fa8b0-BLR
cf-cache-status: DYNAMIC
cache-control: private
set-cookie: prov=a5edc5fd-38af-45cb-924c-40030d1f2465; expires=Sun, 26 Jul 2026 08:39:24 GMT; domain=.stackexchange.com; path=/; secure; httponly
strict-transport-security: max-age=31536000; includeSubDomains
vary: Accept-Encoding
content-security-policy: upgrade-insecure-requests; frame-ancestors 'self' https://stackexchange.com
x-clacks-overhead: GNU Terry Pratchett
x-frame-options: SAMEORIGIN
x-request-guid: 67bde776-b8ab-4c1d-8d3f-a64e133ad1a7
x-worker-origin-response-time: 599000000
x-dns-prefetch-control: off
set-cookie: prov=a5edc5fd-38af-45cb-924c-40030d1f2465; Path=/; HttpOnly; Domain=stackexchange.com
set-cookie: __cf_bm=W4YqB1nMIC8ZNRxv5DBGPBm.ky2eUEH0fRDDDYbcmds-1753519164-1.0.1.1-.c8Yx.QPACzSn7vtHe1U_xb7aXuisM2nCpTfLxattzG5leZKFnjx8dITmPgqHsUsmWRLh37qF59UXYjxGBW.Xge8kL_xs3nxNcFGhDEj_2g; path=/; expires=Sat, 26-Jul-25 09:09:24 GMT; domain=.stackexchange.com; HttpOnly; Secure; SameSite=None
set-cookie: _cfuvid=HpxsKGtKhmYHEcR4X_Lo03Sipn9RAlcVwLxEURQ2M.U-1753519164679-0.0.1.1-604800000; path=/; domain=.stackexchange.com; HttpOnly; Secure; SameSite=None
server: cloudflare
content-encoding: gzip
Newest 'python-3.x' Questions - Code Review Stack Exchange
Skip to main content
Stack Exchange Network
Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Visit Stack ExchangeTeams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Learn more about TeamsQuestions tagged [python-3.x]
Python 3 is the latest version of the Python programming language and was formally released on December 3rd, 2008. Use this tag along with the main python tag to denote programs that are meant to be run on a Python 3 interpreter only. Do not mix this tag with the python-2.x tag.
5,349 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
5
votes
2
answers
406
views
Weakly-Referencing Tree Structure in Python
For another project of mine, I decided that it would be handy to have a tree structure to dictate hierarchy between pieces of data, but I didn't want to unnecessarily keep that data alive if it would ...
4
votes
2
answers
261
views
Reading a webpage for its list of sites, but getting only the sites I want
Currently, I have this "leave only the urls that don't have unwanted substrings inside" code. I originally tried to use a comprehension to filter the unwanted urls.
...
2
votes
1
answer
120
views
ABC/XYZ business process analysis
I have written a code that deals with ABC/XYZ analysis. I want to use it in my application and would like to find out how the code can be improved, its readability and it will be better to implement ...
12
votes
4
answers
1k
views
Simple mutation simulation for use in science class
I've been giving my grade tens an introduction to computational phylogenomics, based around computing dissimilarity between DNA strands, and a simplified model of mutation. They've been exploring how ...
9
votes
2
answers
327
views
Simple Node.js version manager v2
As a followup to my previous version, I decided to try make this more cross-platform. I considered several languages: C++ is pretty cross platform, Rust is gaining popularity (and the language used by ...
4
votes
3
answers
161
views
Function to calculate energy where all parameters must be positive
I have a function which requires all parameters to be positive:
...
1
vote
0
answers
114
views
Runtime function overloading / dynamic dispatch for Python (2nd revision)
Second revision of the original post: Function overloading / dynamic dispatch for Python
TL;DR:
Improved version of this library[^1] based on previous reviews and criticism. It provides runtime ...
7
votes
5
answers
1k
views
Prime number finder below the limit specified
Is this an optimal solution? I doubt it is. Can someone please critique my code?
...
7
votes
4
answers
961
views
Project Euler #54: class for poker hands
I'm working right now on Project Euler problem 54, and I figured that this was the perfect opportunity to try to work with classes. This is my first time, so I'm sure that there are a lot of style, ...
8
votes
2
answers
955
views
2D block game like Minecraft
I have been working on a 2D block game. I like the progress I am making, but I would like to improve the performance and the overall quality of the code. The code and textures are stored in my GitHub ...
2
votes
2
answers
81
views
Finding partial match table
I am trying to write code that creates a partial match table given a list. The following seems to produce the correct outputs, but it looks quite clunky to me. In particular, it feels strange to me to ...
3
votes
2
answers
133
views
Running yolov to detect class on many files in-memory accumulate RAM on Google Colab T4 GPU
I have thousands of files and I am detecting with YOLOV some classes on them with my own model file. My files are inside a zip file.
I must usually extracting json files which have vector data, then ...
6
votes
2
answers
255
views
(HackerRank) Project Euler+ #250: 250250
Link to problem: linkNumber of solvers: 27 out of 844Solve rate (per person): 3.199%Success rate (over all submissions): 1.78%
Project Euler+ on HackerRank is basically supposed to be a generalization ...
7
votes
1
answer
104
views
Pygame self-made sprite loader
I just wanted to put this out here and see what people think and potential improvements I could make. I've been learning spritesheets in pygame as I was really scared to use them as I thought they ...
5
votes
2
answers
1k
views
Function overloading / dynamic dispatch for Python
UPDATE: Second revision on separate post. Runtime function overloading / dynamic dispatch for Python (2nd revision)
When I first started using Python I had a rough time dealing with some of it's ...
- The Overflow Blog
-
-
- Featured on Meta
-
-
Related Tags
python × 5183
beginner × 821
performance × 628
programming-challenge × 447
algorithm × 324
object-oriented × 277
web-scraping × 205
game × 203
numpy × 178
pandas × 155
time-limit-exceeded × 144
tkinter × 138
strings × 135
reinventing-the-wheel × 106
parsing × 87
tic-tac-toe × 84
beautifulsoup × 82
console × 80
csv × 80
random × 80
file × 74
file-system × 74
mathematics × 74
hash-map × 73
regex × 73
more related tags
Hot Network Questions
- How can I evenly space my instances after they've been progressively scaled?
- Can one engage with physics (or science) without touching philosophy?
- Why is 0.0 printed as 0.00001 when rounding upward?
- The pea and the sun paradox
- Not your ordinary affix riddle
- Does Philosophy Need Quotes?
- Why is time reversal not a natural part of the Galilean group?
- Vector Bundle and the fiber-preserving condition
- Dystopian 80s sci-fi movie about the USA choosing mediocrity
- In Jurassic Park, is the lysine dependency intentionally fake (in-universe)?
- Sterilizing Medical Device with Electronic Components
- How much of a really big a spaceship could a nuke take out?
- Where did the name of Windows XP come from? Was it connected to the Cairo project?
- Is a chemistry-first technological paradigm as plausible as one focused on physics or biology?
- Source that Eliyahu Hanavi was an angel at the creation
- Can a humanoid that fell supine and is then Levitated alter his orientation?
- Why does the "gap method" give 35 instead of the correct answer 50 for non-adjacent arrangements in a circle?
- What Isp can be gotten from a napthalene (mothball) hot gas thruster? Did it work in space?
- How do I set up a recursive algorithm to repeatedly square root a positive real number?
- Mars colony book I read in the 80's. The name?
- Anonymizing a submission for double-blind review
- Statistics – Linear Inference – What is the moment generating function of non-central t-distribution?
- Meaning of 芭蕉 in Tang age
- Word order for a phrase with a number, adjective and noun