Commit Graph

14 Commits

Author SHA1 Message Date
Victor Stinner 9d2abd5db3 PEP 587: fix typo 2019-05-20 14:05:52 +02:00
Victor Stinner 6062d2a6f3
PEP 587: version 4 (#1056)
The main change is the introduction of "Python Configuration" and
"Isolated Configuration" default configuration which are well better
defined. Replace all macros with functions.

Changes:

* PyPreConfig: no longer uses dynamically memory allocation,
  allocator type becomes an enum, add parse_argv and configure_locale
  field.
* PyConfig: Remove program field, rename module_search_path_env to
  pythonpath_env
* New functions:

  * PyPreConfig_InitIsolatedConfig()
  * PyPreConfig_InitPythonConfig()
  * PyConfig_InitIsolatedConfig()
  * PyConfig_InitPythonConfig()

* parse_argv default becomes 0
* Replace Py_INIT_xxx() macros with functions
* Document default values
* Remove PyConfig.dll_path
* Explain how PyConfig preinitializes Python and the relationship
  between command line arguments and the pre-initialization.
* Rename use_module_search_paths to module_search_paths_set
* Rename PyInitError_Err() to PyInitError_Error()
* "Pre-initialization" => "Preinitialization"
* Reject preconfig=NULL and config=NULL
* Replace "wchar_t**" with "wchar_t * const *", same for "char**".
2019-05-20 13:11:42 +02:00
T. Wouters 4e0a7443f4 Minor textual edits of PEP 587. (#1055) 2019-05-16 15:12:46 +02:00
Victor Stinner aceed0d7c0 PEP 587: fix typos in Version History 2019-05-16 00:28:16 +02:00
Victor Stinner 107af3a323 PEP 587: Cleanup 2019-05-16 00:17:40 +02:00
Victor Stinner 4cefacceba
PEP 587: API v3 (#1052)
* Thomas Wouters is now the BDFL-delegate
* Elaborate the Rationale
* New "Path configuration" section
* New "Python Issues" section
* Add PyWideStringList_Insert() function
* Add PyConfig.configure_c_stdio option.
* Add PyConfig.parse_argv field
* Rename bytes/wide functions. Add "Bytes" to functions taking char*,
  remove "Wide" from functions taking wchar_t*. Rename
  PyConfig_DecodeLocale() to PyConfig_SetBytesString().
* PyConfig: Rename '_frozen' to 'pathconfig_warnings'
* Re-introduce PyConfig._init_main
* Complete tables of global configuration variables; annotate
  variable values which are negated.
* Add default values of all PyPreConfig and PyConfig fields
* Elaborate the Rationale
* Add a few more issues
* Add PyPreConfig.legacy_windows_fs_encoding rules
* Add "Isolate Python" section
* PyConfig_SetString() and PyConfig_SetBytesString() now requires the
  configuration as the first argument.
* Rename Py_UnixMain() to Py_BytesMain()
2019-05-15 18:50:11 +02:00
Victor Stinner ad68d00ba1 PEP 587: fix typo 2019-05-02 16:45:44 -04:00
Victor Stinner 8763930784
PEP 587: Init API v2 (#1018) 2019-05-02 15:14:06 -04:00
Nick Coghlan 1b0e8221be
PEP 432: Update based on the extracted PEP 587 API (#965)
The overall PEP 432 design is still a work in progress,
but the parts that Victor extracted out to PEP 587 should
be pretty solid at this point.
2019-04-16 23:58:12 +10:00
Victor Stinner fa666656ce PEP 587: Add Py_RunMain() 2019-03-29 23:59:32 +01:00
Victor Stinner f350734f80 PEP 587: Clarify relationship with PEP 432 (#955)
* PEP 587: Clarify relationship with PEP 432

* Update pep-0587.rst

Co-Authored-By: vstinner <vstinner@redhat.com>
2019-03-29 07:05:34 +10:00
Victor Stinner e435865373 PEP 587: Fix creation date 2019-03-28 09:46:32 +01:00
Victor Stinner 4b3e509818 PEP 587: shorter Abstract 2019-03-28 02:17:12 +01:00
Victor Stinner 16a6dfc9ac New PEP 587: Python Initialization Configuration
Change Victor Stinner email to vstinner@redhat.com.
2019-03-28 02:15:55 +01:00