To implement the setup process like Python does ? #8
litlighilit
started this conversation in
Polls
Replies: 2 comments
-
In fact in amount of code, it can be said I've finished about 90 percent, but I think the code really requires hard tests, so it's quite a long way to really implement it. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Also, I'm currently working on branch which also means enlarging the runtime of pylib |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
A few months ago,
when I was about to implement
sys.getfilesystemencoding()
,I didn't think it would be quite hard.
However,
sys.getfilesystemencoding()
has cuased me to devote quite a lot of efforts to inspectsysmodule.c
, then pyreconfig.c, pyconfig.c, pylifecycle.c,...I gradually found it's
sys
module that in fact requires the infomation from the whole Python's setup process, which, includes: read config, get env, setup interpreter, etc. Hard to enumerate, quite a few!Half in this way, I've decided even though the whole
sys
module is implemented inpylib
,it shall be optional, and even disabled by default and only opened if a compile flag is given.
Back to it, I'm thinking whether it meaningful or how much it meaningful for a Nim program to reading configure like Python does. e.g. optionally let
PYTHONIOENCODING
influenues program of pylib.0 votes ·
Beta Was this translation helpful? Give feedback.
All reactions