Commit Graph

26 Commits

Author SHA1 Message Date
Victor Stinner 06fbcf543c
PEP 587: PyConfig_InitPythonConfig() cannot fail anymore (#1187)
PyConfig_InitPythonConfig() and PyConfig_InitIsolatedConfig() no
longer return PyStatus: they cannot fail anymore.
2019-10-01 12:19:09 +02:00
Victor Stinner 5c8b380387 PEP 587: Remove struct_size (#1185) 2019-10-01 08:39:34 +10:00
Victor Stinner 16bc2821ee PEP 587: Fix warnings options priority 2019-09-30 02:19:42 +02:00
Victor Stinner afa38c0bef PEP 587: add PyConfig.struct_size
Add a new struct_size field to PyPreConfig and PyConfig structures to
allow to modify these structures in the future without breaking the
backward compatibility.

Remove _config_version fields, replaced by struct_size.
2019-09-28 04:17:01 +02:00
Victor Stinner 71141db288 PEP 587 implementation is done: set status to Final 2019-08-23 19:00:52 +02:00
Min ho Kim 19b5d9586a Fixed typos (#1144) 2019-08-11 08:53:20 -07:00
Min ho Kim cfb7bd74db Fix typos (#1113) 2019-07-03 11:20:45 -07:00
Min ho Kim e54097d3c4 Fix typos in various PEPs (#1111) 2019-06-24 21:58:50 -07:00
Victor Stinner 48499b5ff4 PEP 587: Minor fixes 2019-06-03 00:23:46 +02:00
Victor Stinner a26411994d PEP 587: Accepted 2019-06-03 00:23:17 +02:00
Victor Stinner 7e4e28483f
PEP 587: Fix a few minor issues (#1087)
* Fix _init_main=0 example: set config._init_main to 0!
* Document special builds needed by some speficic options like
  show_alloc_count.
* Specify that preconfiguration only requires command line arguments
  for the "Python Configuration" (not for "Isolated Configuration").
2019-05-25 11:45:42 +02:00
Victor Stinner fcdd72d719
PEP 587 version 5 (#1086)
* Add "Experimental Multi-Phase Initialization API" section
* Add PyPreConfig._config_init private field.
* Rename PyInitError to PyStatus.
* Rename PyInitError_Failed() to PyStatus_Exception()
* Rename Py_ExitInitError() to Py_ExitStatusException()
* Fix Python Configuration default values: isolated=0
  and use_environment=1, instead of -1.
* Document isolated field and #ifdef MS_WINDOWS
* Define path conf function
2019-05-24 21:21:05 +02:00
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