Victor Stinner
0327bde9da
bpo-32030: Rewrite calculate_path() ( #4521 )
...
* calculate_path() rewritten in Modules/getpath.c and PC/getpathp.c
* Move global variables into a new PyPathConfig structure.
* calculate_path():
* Split the huge calculate_path() function into subfunctions.
* Add PyCalculatePath structure to pass data between subfunctions.
* Document PyCalculatePath fields.
* Move cleanup code into a new calculate_free() subfunction
* calculate_init() now handles Py_DecodeLocale() failures properly
* calculate_path() is now atomic: only replace PyPathConfig
(path_config) at once on success.
* _Py_GetPythonHomeWithConfig() now returns an error on failure
* Add _Py_INIT_NO_MEMORY() helper: report a memory allocation failure
* Coding style fixes (PEP 7)
2017-11-23 17:03:20 +01:00
..
2017-11-03 20:02:41 +01:00
2017-11-11 13:06:26 +02:00
2017-09-10 18:08:04 +02:00
2017-11-10 22:03:40 +01:00
2017-10-23 13:57:51 -07:00
2017-09-07 18:56:24 +02:00
2017-11-11 13:06:26 +02:00
2017-09-06 18:00:47 -07:00
2017-08-25 18:31:22 +02:00
2017-11-15 18:11:45 -08:00
2017-11-05 15:37:50 +02:00
2017-09-03 08:10:14 +03:00
2016-11-24 23:31:59 +01:00
2017-09-07 18:56:24 +02:00
2017-03-12 10:10:47 +02:00
2017-09-26 20:18:21 -07:00
2017-10-25 23:55:14 -07:00
2017-03-23 17:53:47 +02:00
2017-01-23 09:47:21 +02:00
2017-11-11 13:06:26 +02:00
2017-11-02 20:32:54 +10:00
2017-04-16 10:46:38 +03:00
2017-10-10 23:26:24 +03:00
2017-09-17 21:11:04 +03:00
2017-04-16 10:46:38 +03:00
2017-11-08 14:44:44 -08:00
2016-04-15 02:27:11 +00:00
2017-09-24 12:07:12 +03:00
2017-06-28 08:30:06 +03:00
2017-01-23 09:47:21 +02:00
2017-09-07 18:56:24 +02:00
2016-10-18 16:29:27 +02:00
2016-10-18 16:29:27 +02:00
2016-07-07 17:35:15 +03:00
2017-06-08 14:41:19 +03:00
2017-11-16 09:44:43 +02:00
2017-11-05 15:37:50 +02:00
2017-09-28 10:50:01 +03:00
2017-01-23 09:47:21 +02:00
2017-10-24 23:31:42 +03:00
2017-10-15 12:28:31 -07:00
2017-09-14 10:33:26 +08:00
2017-04-08 09:53:51 +03:00
2017-11-11 13:06:26 +02:00
2017-01-23 09:47:21 +02:00
2017-11-08 14:44:44 -08:00
2017-11-05 15:37:50 +02:00
2017-11-15 18:11:45 -08:00
2017-11-08 23:09:16 +03:00
2016-12-27 14:19:20 +01:00
2017-11-08 06:18:59 -08:00
2016-09-06 10:46:49 -07:00
2017-11-14 08:00:54 +02:00
2017-06-12 08:25:04 +03:00
2017-08-20 18:35:36 +03:00
2017-07-26 15:17:57 -07:00
2016-08-29 13:56:58 +01:00
2017-11-15 18:11:45 -08:00
2017-04-16 10:46:38 +03:00
2017-11-11 13:06:26 +02:00
2017-01-23 09:47:21 +02:00
2017-11-11 13:06:26 +02:00
2017-11-11 13:06:26 +02:00
2017-03-04 00:19:55 -05:00
2017-11-23 17:03:20 +01:00
2017-06-28 08:30:06 +03:00
2017-09-07 18:56:24 +02:00
2017-11-08 14:44:44 -08:00
2016-09-13 20:22:02 +02:00
2017-11-11 15:51:42 +02:00
2016-11-20 07:56:37 +00:00
2017-11-23 17:03:20 +01:00
2017-05-27 18:25:03 +02:00
2017-09-14 18:13:16 -07:00
2017-01-23 09:47:21 +02:00
2017-11-11 13:06:26 +02:00
2017-06-28 08:30:06 +03:00
2017-11-11 13:06:26 +02:00
2017-10-26 16:59:40 +03:00
2017-11-02 20:32:54 +10:00
2017-10-27 05:27:06 -07:00
2017-06-28 08:30:06 +03:00
2017-09-15 16:35:20 -06:00
2017-11-12 12:45:59 +01:00
2017-03-12 13:08:30 +02:00
2017-11-02 20:32:54 +10:00
2017-09-07 18:56:24 +02:00
2017-01-23 09:47:21 +02:00
2017-01-23 09:47:21 +02:00
2017-02-04 11:53:22 +02:00
2017-11-03 19:58:46 +01:00
2017-11-09 18:00:38 +02:00
2017-11-09 18:00:38 +02:00
2017-06-28 08:30:06 +03:00
2017-10-24 23:31:42 +03:00
2017-10-24 23:31:42 +03:00
2017-10-24 23:31:42 +03:00
2017-02-04 12:13:20 +02:00
2017-01-23 09:47:21 +02:00
2017-01-23 09:47:21 +02:00
2017-11-15 22:52:21 +01:00
2017-06-22 22:31:08 -07:00
2017-11-05 15:37:50 +02:00
2017-06-22 22:31:08 -07:00
2016-08-04 02:38:59 +00:00
2017-01-31 23:31:10 -08:00
2017-09-22 17:44:58 +02:00
2017-10-20 13:42:35 -07:00
2017-11-03 11:09:00 +02:00