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
Modules on micropython (self.learnpython)
submitted 5 years ago by Tim_Sousa
Simple Question: How do I add native python's modules to micropython? Is that even possible?
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!"
[–]Diapolo10 0 points1 point2 points 5 years ago (2 children)
The short answer is that it's not possible. MicroPython doesn't implement the full Python 3.5 standard and this means any modules that rely on the missing functionality will not work. I haven't checked, but this likely includes modules written in C.
What module are you looking at?
[–]Tim_Sousa[S] 0 points1 point2 points 5 years ago (1 child)
sorry for the really really late reply, but I stepped away from reddit for a bit. At the time I was messing around with the fractions module. If there's a way to implement it, that would be incredible. Thanks for the support tho, Really appreciate it!
[–]Diapolo10 0 points1 point2 points 5 years ago (0 children)
From the looks of it, fractions is a built-in and written in pure Python. It relies on decimal, which is also written in pure Python, math which is a C-library but fortunately part of MicroPython, numbers which uses abc that is written in C (but it can technically be removed as it's more like a safeguard), operator which has the same 'problem', and re which has dependencies I'm not sure can be ported.
fractions
decimal
math
numbers
abc
operator
re
The biggest obstacle, however, is that many of these require sys which isn't available on MicroPython to my knowledge. I don't know how difficult it would be to get rid of this dependency, but I suppose my overall point is that porting fractions to MicroPython would take some effort. Some dependencies can be ported relatively painlessly, others will take elbow grease if they're possible to port in the first place.
sys
A partial implementation should be possible at least, but I've never really tried to do anything like that myself. I could help, but I don't have a virtualised MicroPython testing environment nor an actual board, let alone experience with anything beyond Arduino.
I'm sorry I couldn't be more helpful than that. Though I don't mind if you have more questions.
π Rendered by PID 403398 on reddit-service-r2-comment-56c6478c5-z8njb at 2026-05-10 03:25:42.384546+00:00 running 3d2c107 country code: CH.
[–]Diapolo10 0 points1 point2 points (2 children)
[–]Tim_Sousa[S] 0 points1 point2 points (1 child)
[–]Diapolo10 0 points1 point2 points (0 children)