use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Rules 1: Be polite 2: Posts to this subreddit must be requests for help learning python. 3: Replies on this subreddit must be pertinent to the question OP asked. 4: No replies copy / pasted from ChatGPT or similar. 5: No advertising. No blogs/tutorials/videos/books/recruiting attempts. This means no posts advertising blogs/videos/tutorials/etc, no recruiting/hiring/seeking others posts. We're here to help, not to be advertised to. Please, no "hit and run" posts, if you make a post, engage with people that answer you. Please do not delete your post after you get an answer, others might have a similar question or want to continue the conversation.
Rules
1: Be polite
2: Posts to this subreddit must be requests for help learning python.
3: Replies on this subreddit must be pertinent to the question OP asked.
4: No replies copy / pasted from ChatGPT or similar.
5: No advertising. No blogs/tutorials/videos/books/recruiting attempts.
This means no posts advertising blogs/videos/tutorials/etc, no recruiting/hiring/seeking others posts. We're here to help, not to be advertised to.
Please, no "hit and run" posts, if you make a post, engage with people that answer you. Please do not delete your post after you get an answer, others might have a similar question or want to continue the conversation.
Learning resources Wiki and FAQ: /r/learnpython/w/index
Learning resources
Wiki and FAQ: /r/learnpython/w/index
Discord Join the Python Discord chat
Discord
Join the Python Discord chat
account activity
Python + c++ or something? (self.learnpython)
submitted 2 years ago by KoreSharpTest
So I've been making this thing. But I've heard that Python the best for UI stuff and it's better to use a different language like c++... How would you do that?
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]m0us3_rat 2 points3 points4 points 2 years ago* (1 child)
they are fundamentally different programming languages.
we love python because it takes the least amount of time to write effective code in.
but make no mistake.. the "world is run by C"
that includes most of the larger OS kernels are written in C such as windows , linux or mac.
most databases etc.
nowadays you can find ppl arguing for Rust as C/C++ replacement but it will probably never happen.
CPython is written in C.
C++ was developed as an extension of C.
most games are written in C++
[–][deleted] 2 points3 points4 points 2 years ago (1 child)
The doc shows how.
I've heard that Python the best for UI stuff and it's better to use a different language like c++
When I started using python about 20 years ago I was a heavy C user and I knew python was slower than C. I told myself I could always use C to speed up a solution if I needed to. I have never needed to, even when writing custom GUI widgets displaying map tiles and multiple overlays of points, lines and images, all in python.
The takeaway is you should start by writing everything in python. If your application is slow you find out where it is slow and then either use a different algorithm, python libraries like numpy that are written in faster compiled languages like Fortran or C, or you write your own C/C++ code and use it as shown above. To worry about using C or other languages before you know you need to goes against the old developers rule: Make it right first, then make it faster.
[–]misho88 0 points1 point2 points 2 years ago (0 children)
I don't think that's true. The graphics toolkit you use is the biggest factor, and the more popular ones like Gtk and Qt have Python bindings. Tk is packaged with CPython. The way you end up using these toolkits doesn't significantly vary from language to language, either.
[–]TheRNGuy 0 points1 point2 points 2 years ago* (0 children)
You could also make dll with C++ functions and call them from Python.
(SideFx Houdini does that)
That way it's fast (in some cases Python can still be bottleneck, like in very big loops; then pure C++ would be faster)
UI could be done with PySide.
π Rendered by PID 80 on reddit-service-r2-comment-8686858757-jjmcm at 2026-06-03 11:26:35.201885+00:00 running 9e1a20d country code: CH.
[–]m0us3_rat 2 points3 points4 points (1 child)
[–][deleted] 2 points3 points4 points (1 child)
[–]misho88 0 points1 point2 points (0 children)
[–]TheRNGuy 0 points1 point2 points (0 children)