Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Do I need to merge commit: Implement PEP587 Python Initialzation Configuration. #486

Closed Answered by pyscripter
Alexey-T asked this question in Q&A
Discussion options

@pyscripter
I did not merge commit
9d4a980
yet to Python4Lazarus.
but still, CudaText (based on python4lazarus) supports Python 3.13 on windows if I write the option "pylib": "python313.dll".

so commit is not required for 3.13 support for my app?

You must be logged in to vote

The reasons for this commit (see https://docs.python.org/3/whatsnew/3.13.html)

Remove the following old functions to configure the Python initialization, deprecated in Python 3.11:

  • PySys_SetPath(): Set PyConfig.module_search_paths instead.
  • Py_SetPath()
  • _Py_SetProgramFullPath

**Pending Removal in Python 3.14 (originally scheduled for removal in 3.13) **

  • PySys_SetArgvEx(): Set PyConfig.argv instead.
  • PySys_SetArgv(): Set PyConfig.argv instead.
  • Py_SetProgramName(): Set PyConfig.program_name instead.
  • Py_SetPythonHome(): Set PyConfig.home instead.
  • Py_DebugFlag: Use PyConfig.parser_debug instead.
  • Py_VerboseFlag: Use PyConfig.verbose instead.
  • Py_QuietFlag: Use PyConfig.quiet instead.
  • Py_Intera...

Replies: 2 comments

Comment options

The reasons for this commit (see https://docs.python.org/3/whatsnew/3.13.html)

Remove the following old functions to configure the Python initialization, deprecated in Python 3.11:

  • PySys_SetPath(): Set PyConfig.module_search_paths instead.
  • Py_SetPath()
  • _Py_SetProgramFullPath

**Pending Removal in Python 3.14 (originally scheduled for removal in 3.13) **

  • PySys_SetArgvEx(): Set PyConfig.argv instead.
  • PySys_SetArgv(): Set PyConfig.argv instead.
  • Py_SetProgramName(): Set PyConfig.program_name instead.
  • Py_SetPythonHome(): Set PyConfig.home instead.
  • Py_DebugFlag: Use PyConfig.parser_debug instead.
  • Py_VerboseFlag: Use PyConfig.verbose instead.
  • Py_QuietFlag: Use PyConfig.quiet instead.
  • Py_InteractiveFlag: Use PyConfig.interactive instead.
  • Py_InspectFlag: Use PyConfig.inspect instead.
  • Py_OptimizeFlag: Use PyConfig.optimization_level instead.
  • Py_NoSiteFlag: Use PyConfig.site_import instead.
  • Py_BytesWarningFlag: Use PyConfig.bytes_warning instead.
  • Py_FrozenFlag: Use PyConfig.pathconfig_warnings instead.
  • Py_IgnoreEnvironmentFlag: Use PyConfig.use_environment instead.
  • Py_DontWriteBytecodeFlag: Use PyConfig.write_bytecode instead.
  • Py_NoUserSiteDirectory: Use PyConfig.user_site_directory instead.
  • Py_UnbufferedStdioFlag: Use PyConfig.buffered_stdio instead.
  • Py_HashRandomizationFlag: Use PyConfig.use_hash_seed and PyConfig.hash_seed instead.
  • Py_IsolatedFlag: Use PyConfig.isolated instead.

So sooner or later this commit will be needed. PySys_SetArgv(), Py_SetProgramName(), Py_SetPythonHome() are definitely needed.

You must be logged in to vote
0 replies
Answer selected by Alexey-T
Comment options

thanks. but for the work of Py 3.13, this commit is not needed, seems.

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /